Satan1c
Satan1c
Explore posts from servers
RRailway
Created by Satan1c on 10/20/2024 in #✋|help
VPN/Tunnel
Is it allowed to setup a public VPN/Tunnel service ?
6 replies
RRailway
Created by Satan1c on 7/20/2024 in #✋|help
/bin/sh: 1: ./archive.sh: Permission denied
I've my sh script, to download & extract archive with resources but "Permission denied", is it impossible to execute my sh scripts ?
18 replies
RRailway
Created by Satan1c on 4/12/2024 in #✋|help
Redis notification
How can I, or is it possible to, configure notify-keyspace-events ?
19 replies
RRailway
Created by Satan1c on 11/29/2023 in #✋|help
503 with no reason
when I'm trying to make POST to my app endpoint, I'm getting 503 I put in body fields to update in DB, like id and amounts but when code comes to DB interactions, Railway send me 503 cuz Railway doesn't allow my app to log into console, I'm doing it in response body I've wraped all db calls with try-catch, but I doesn't get any response from them, but 503 from Railway
37 replies
RRailway
Created by Satan1c on 11/28/2023 in #✋|help
CMake Configuring incomplete
I'm trying to run my drogon proj, but I see:
[11/12] RUN cmake -B /out -S . -DCMAKE_TOOLCHAIN_FILE=/vcpkg-boot/vcpkg/scripts/buildsystems/vcpkg.cmake:
1.937 -- Found OpenSSL: /vcpkg-boot/vcpkg/installed/x64-linux/debug/lib/libcrypto.a (found version "3.1.4")
1.968 -- Found UUID: /vcpkg-boot/vcpkg/installed/x64-linux/debug/lib/libuuid.a
1.977 -- Found ZLIB: /vcpkg-boot/vcpkg/installed/x64-linux/lib/libz.a (found version "1.3.0")
1.988 -- Found Brotli: /vcpkg-boot/vcpkg/installed/x64-linux/debug/lib/libbrotlidec.a
1.994 -- Looking for C++ include filesystem
2.976 -- Looking for C++ include filesystem - found
2.977 -- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED
4.136 -- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Success
4.207 -- Configuring incomplete, errors occurred!
4.207 See also "/out/CMakeFiles/CMakeOutput.log".
[11/12] RUN cmake -B /out -S . -DCMAKE_TOOLCHAIN_FILE=/vcpkg-boot/vcpkg/scripts/buildsystems/vcpkg.cmake:
1.937 -- Found OpenSSL: /vcpkg-boot/vcpkg/installed/x64-linux/debug/lib/libcrypto.a (found version "3.1.4")
1.968 -- Found UUID: /vcpkg-boot/vcpkg/installed/x64-linux/debug/lib/libuuid.a
1.977 -- Found ZLIB: /vcpkg-boot/vcpkg/installed/x64-linux/lib/libz.a (found version "1.3.0")
1.988 -- Found Brotli: /vcpkg-boot/vcpkg/installed/x64-linux/debug/lib/libbrotlidec.a
1.994 -- Looking for C++ include filesystem
2.976 -- Looking for C++ include filesystem - found
2.977 -- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED
4.136 -- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Success
4.207 -- Configuring incomplete, errors occurred!
4.207 See also "/out/CMakeFiles/CMakeOutput.log".
how can I read /out/CMakeFiles/CMakeOutput.log, or is there another way to figure out how to fix that ?
22 replies
DIAdiscord.js - Imagine an app
Created by Satan1c on 11/3/2023 in #djs-questions
[Unknown Interaction] from any deferReply, and from some editReply/reply
as an example of usage:
export class MyService {
constructor(@Inject('client') client: Client) {
this.client = client;
this.client.on('interactionCreate', this.onInteraction.bind(this));
}
async onInteraction(interaction: BaseInteraction) {
if (!interaction.isCommand()) return;
await interaction.deferReply({ ephemeral: true });
await this.serviceCommanbds.execute(interaction);
}
}
export class MyService {
constructor(@Inject('client') client: Client) {
this.client = client;
this.client.on('interactionCreate', this.onInteraction.bind(this));
}
async onInteraction(interaction: BaseInteraction) {
if (!interaction.isCommand()) return;
await interaction.deferReply({ ephemeral: true });
await this.serviceCommanbds.execute(interaction);
}
}
no matter where I put deferReply first 3-4 usage of command will trigger error, sometimes on 3+ usages it executes normally bot ping on host->discord 80-100ms, so it mustn't be a "long response"
14 replies
RRailway
Created by Satan1c on 7/14/2023 in #✋|help
can't reach site runs on Drogon
according to logs, Drogon runs successfully, but when I try to open the site, I get "Application failed to respond".
53 replies
RRailway
Created by Satan1c on 7/10/2023 in #✋|help
how can I publish cpp project
I'd like to ty to create a bot on dpp, installed from vcpkg how can I set a docker file, to build and run that bot on railway ? as main questions: 1. how & wich compile I must use, as I suggest I can't use VS build tools 2. how can I install and use vcpkg to install dpp from vcpkg 3. how can I cpecify -DCMAKE_TOOLCHAIN_FILE with vcpkg includes
126 replies
RRailway
Created by Satan1c on 4/4/2023 in #✋|help
Container Start Failure! "docker": executable file not found in $PATH: unknown
Tried to add Docker? but got error Here full log:
Sticky cache enabled
=========================
Using Detected Dockerfile
=========================
context: e92eeebadef5d576980bcd73c1c31616
#1 [internal] load .dockerignore
#1 transferring context: 52B done
#1 DONE 0.1s


#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 568B done

#2 DONE 0.2s


#3 [internal] load metadata for mcr.microsoft.com/dotnet/sdk:7.0

#3 DONE 0.1s

#4 [build 1/4] FROM mcr.microsoft.com/dotnet/sdk:7.0@sha256:f712881bafadf0e56250ece1da28ba2baedd03fb3dd49a67f209f9d0cf928e81
#4 CACHED

#5 [internal] load build context

#5 transferring context: 137.15kB 0.0s done
#5 DONE 0.1s

#6 [build 2/4] WORKDIR /app

#6 DONE 0.2s

#7 [build 3/4] COPY . .

#7 DONE 0.1s

#8 [build 4/4] RUN dotnet restore && dotnet publish ./Geno/Geno.csproj -o ./Geno/bin/Publish/linux-x64/ -c Release -r linux-x64 --sc /p:PublishReadyToRun=true /p:PublishSingleFile=true /p:PublishTrimmed=true /p:IncludeAllContent=true /p:ForSelfExtract=true /p:IncludeNativeLibrariesForSelfExtract=true

#8 1.837 Determining projects to restore...

#8 4.194 Restored /app/ShikimoriService/ShikimoriService.csproj (in 1.88 sec).
#8 4.195 Restored /app/Localization/Localization.csproj (in 1.88 sec).
#8 4.195 Restored /app/WaifuPicsApi/WaifuPicsApi.csproj (in 1.88 sec).

#8 8.009 Restored /app/Database/Database.csproj (in 5.71 sec).

#8 8.105 Restored /app/Geno/Geno.csproj (in 5.8 sec).

#8 8.445 MSBuild version 17.5.0+6f08c67f3 for .NET

#8 9.203 Determining projects to restore...

#8 12.41 Restored /app/WaifuPicsApi/WaifuPicsApi.csproj (in 2.4 sec).
#8 12.41 Restored /app/Localization/Localization.csproj (in 2.4 sec).
#8 12.41 Restored /app/ShikimoriService/ShikimoriService.csproj (in 2.4 sec).
#8 12.41 Restored /app/Database/Database.csproj (in 2.41 sec).

#8 13.01 Restored /app/Geno/Geno.csproj (in 3.02 sec).

#8 16.38 /app/Localization/RefList.cs(123,11): warning CS8601: Possible null reference assignment. [/app/Localization/Localization.csproj]
#8 16.38 /app/Localization/CommandsLocalizationManager.cs(72,16): warning CS8619: Nullability of reference types in value of type 'string' doesn't match target type 'string?'. [/app/Localization/Localization.csproj]
#8 16.40 WaifuPicsApi -> /app/WaifuPicsApi/bin/Release/net7.0/WaifuPicsApi.dll
#8 16.43 ShikimoriService -> /app/ShikimoriService/bin/Release/net7.0/ShikimoriService.dll

#8 16.45 Localization -> /app/Localization/bin/Release/net7.0/Localization.dll
#8 16.47 Database -> /app/Database/bin/Release/net7.0/Database.dll

#8 18.14 Geno -> /app/Geno/bin/Release/net7.0/linux-x64/Geno.dll

#8 18.42 Optimizing assemblies for size. This process might take a while.

#8 311.6 Geno -> /app/Geno/bin/Publish/linux-x64/

#8 DONE 312.2s


#9 [runtime 3/3] COPY --from=build /app/Geno/bin/Publish/linux-x64 /app

#9 DONE 0.5s

#10 exporting to image
#10 exporting layers

#10 exporting layers 1.1s done

#10 writing image sha256:8e02e48244943c0651c7a3b64795a3418dbf06c47f9650cc291ca26783875978 done
#10 naming to us-west1-docker.pkg.dev/railway-infra/railway-docker-users/project/492b874c-18a2-4eda-a8d8-14314830411f/service/8f5954a7-39af-46b0-bce7-5503a237e2bf:b0ef7b21-c85c-48ff-93f8-7b869b287adb 0.0s done
#10 DONE 1.1s

Build time: 315.56 seconds

================
Publishing Image
================

Pushing [==================================================>] 198.7MB d45653d2a724
Pushed d45653d2a724
b0ef7b21-c85c-48ff-93f8-7b869b287adb: digest: sha256:38bf83ba6d597a3a9c13168119c1483e6eb59e06b6d152162ab71a727b81cd49 size: 2428

Publish time: 11.60 seconds

========================
Container Start Failure!
========================
rpc error: code = Unknown desc = Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "docker": executable file not found in $PATH: unknown
Sticky cache enabled
=========================
Using Detected Dockerfile
=========================
context: e92eeebadef5d576980bcd73c1c31616
#1 [internal] load .dockerignore
#1 transferring context: 52B done
#1 DONE 0.1s


#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 568B done

#2 DONE 0.2s


#3 [internal] load metadata for mcr.microsoft.com/dotnet/sdk:7.0

#3 DONE 0.1s

#4 [build 1/4] FROM mcr.microsoft.com/dotnet/sdk:7.0@sha256:f712881bafadf0e56250ece1da28ba2baedd03fb3dd49a67f209f9d0cf928e81
#4 CACHED

#5 [internal] load build context

#5 transferring context: 137.15kB 0.0s done
#5 DONE 0.1s

#6 [build 2/4] WORKDIR /app

#6 DONE 0.2s

#7 [build 3/4] COPY . .

#7 DONE 0.1s

#8 [build 4/4] RUN dotnet restore && dotnet publish ./Geno/Geno.csproj -o ./Geno/bin/Publish/linux-x64/ -c Release -r linux-x64 --sc /p:PublishReadyToRun=true /p:PublishSingleFile=true /p:PublishTrimmed=true /p:IncludeAllContent=true /p:ForSelfExtract=true /p:IncludeNativeLibrariesForSelfExtract=true

#8 1.837 Determining projects to restore...

#8 4.194 Restored /app/ShikimoriService/ShikimoriService.csproj (in 1.88 sec).
#8 4.195 Restored /app/Localization/Localization.csproj (in 1.88 sec).
#8 4.195 Restored /app/WaifuPicsApi/WaifuPicsApi.csproj (in 1.88 sec).

#8 8.009 Restored /app/Database/Database.csproj (in 5.71 sec).

#8 8.105 Restored /app/Geno/Geno.csproj (in 5.8 sec).

#8 8.445 MSBuild version 17.5.0+6f08c67f3 for .NET

#8 9.203 Determining projects to restore...

#8 12.41 Restored /app/WaifuPicsApi/WaifuPicsApi.csproj (in 2.4 sec).
#8 12.41 Restored /app/Localization/Localization.csproj (in 2.4 sec).
#8 12.41 Restored /app/ShikimoriService/ShikimoriService.csproj (in 2.4 sec).
#8 12.41 Restored /app/Database/Database.csproj (in 2.41 sec).

#8 13.01 Restored /app/Geno/Geno.csproj (in 3.02 sec).

#8 16.38 /app/Localization/RefList.cs(123,11): warning CS8601: Possible null reference assignment. [/app/Localization/Localization.csproj]
#8 16.38 /app/Localization/CommandsLocalizationManager.cs(72,16): warning CS8619: Nullability of reference types in value of type 'string' doesn't match target type 'string?'. [/app/Localization/Localization.csproj]
#8 16.40 WaifuPicsApi -> /app/WaifuPicsApi/bin/Release/net7.0/WaifuPicsApi.dll
#8 16.43 ShikimoriService -> /app/ShikimoriService/bin/Release/net7.0/ShikimoriService.dll

#8 16.45 Localization -> /app/Localization/bin/Release/net7.0/Localization.dll
#8 16.47 Database -> /app/Database/bin/Release/net7.0/Database.dll

#8 18.14 Geno -> /app/Geno/bin/Release/net7.0/linux-x64/Geno.dll

#8 18.42 Optimizing assemblies for size. This process might take a while.

#8 311.6 Geno -> /app/Geno/bin/Publish/linux-x64/

#8 DONE 312.2s


#9 [runtime 3/3] COPY --from=build /app/Geno/bin/Publish/linux-x64 /app

#9 DONE 0.5s

#10 exporting to image
#10 exporting layers

#10 exporting layers 1.1s done

#10 writing image sha256:8e02e48244943c0651c7a3b64795a3418dbf06c47f9650cc291ca26783875978 done
#10 naming to us-west1-docker.pkg.dev/railway-infra/railway-docker-users/project/492b874c-18a2-4eda-a8d8-14314830411f/service/8f5954a7-39af-46b0-bce7-5503a237e2bf:b0ef7b21-c85c-48ff-93f8-7b869b287adb 0.0s done
#10 DONE 1.1s

Build time: 315.56 seconds

================
Publishing Image
================

Pushing [==================================================>] 198.7MB d45653d2a724
Pushed d45653d2a724
b0ef7b21-c85c-48ff-93f8-7b869b287adb: digest: sha256:38bf83ba6d597a3a9c13168119c1483e6eb59e06b6d152162ab71a727b81cd49 size: 2428

Publish time: 11.60 seconds

========================
Container Start Failure!
========================
rpc error: code = Unknown desc = Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "docker": executable file not found in $PATH: unknown
25 replies
RRailway
Created by Satan1c on 2/6/2023 in #✋|help
Can't deply dotnet 7 application
Hello. I'm trying to deply my dotnet application, but I get error: undefined variable 'dotnet-sdk_7_0' error. Is net7 not supported yet ?
49 replies
CC#
Created by Satan1c on 2/6/2023 in #help
❔ Can't use Aot publish format with MongoDB
Hello. I'd like to publish my bot with MongoDB, in AOT format, to make it consume less memory, but it runs into an error. Is the MongoDB not supported for AOT publishing ? I'm getting No suitable constructor found for serializer type: 'MongoDB.Bson.Serialization.Serializers.UInt64Serializer' error. May I use some SQL db ?
2 replies