R
Railwayβ€’3y ago
Rumon

Need Access To Apache Logs

I'm trying to make a template for Nextcloud, which is at https://github.com/msrumon/railwayapp-template-nextcloud. The deployment is successful, but I get 500 status when I try to reach it. It says that detailed information about the error can be found in the server logs, but I can't get access to it. Can anyone from the core team help me please? - Project ID: f58f914a-d00f-4ee2-9dd3-292599b66a19 (deleted) - URL: https://nextcloud-production-0234.up.railway.app/ (removed)
25 Replies
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
Rumon
RumonOPβ€’3y ago
'Cause only they have access to the underlying infrastructure.
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
Rumon
RumonOPβ€’3y ago
Do you mind checking by yourself?
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
Rumon
RumonOPβ€’3y ago
The issue is: the app only shows 500, but detail logs is written somewhere in the server.
Finn
Finnβ€’3y ago
the logs will be somewhere in your container right? getting them will be tricky / impossible cus theres no ssh or suchlike. does nextcloud not print errors to stdout?
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
Rumon
RumonOPβ€’3y ago
No. It just shows that an HTTP request has been made to a certain path, the user agent and the status code. Like so:
GET / HTTP/1.1" 500 1755 "https://nextcloud-production-0234.up.railway.app/"; "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
GET / HTTP/1.1" 500 1755 "https://nextcloud-production-0234.up.railway.app/"; "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Are the paths correct as shown in the 1st answer here? You mentioned /dev/stdout, but I don't see that there. Do I just copy-paste the whole thing from there?
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
Finn
Finnβ€’3y ago
this is neat. dam.
Rumon
RumonOPβ€’3y ago
Didn't work. Maybe Nextcloud uses a different path for writing the logs to.
Finn
Finnβ€’3y ago
use find or somthing to find the file
Unknown User
Unknown Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
Rumon
RumonOPβ€’3y ago
find where? I don't have access to the running container on Railway. mildpanic
Finn
Finnβ€’3y ago
start command or somthing but yeah cant you run this locally wyz said railway run. which sounds like it just uses nixpacks to spin up a container then you can exec onto that docker exec -it $(docker ps -q | grep next-cloud) bash or somthing
Rumon
RumonOPβ€’3y ago
Yeah. That's what I'm trying to do.
Finn
Finnβ€’3y ago
neat hows the railway run part going
Rumon
RumonOPβ€’3y ago
Just downloaded the prebuilt binary. I'm on it.
Finn
Finnβ€’3y ago
noicee
Rumon
RumonOPβ€’3y ago
./railway.exe run ls -l
total 9448
-rwxr-xr-x 1 master 197609 9673728 Sep 24 02:52 railway.exe

πŸš„ Looks good? Then put it on the train and deploy with `railway up`!
./railway.exe run ls -l
total 9448
-rwxr-xr-x 1 master 197609 9673728 Sep 24 02:52 railway.exe

πŸš„ Looks good? Then put it on the train and deploy with `railway up`!
LOL πŸ˜…
Finn
Finnβ€’3y ago
yea im not sure what railway run does maybe just build it with nixpacks
Rumon
RumonOPβ€’3y ago
Forget it. I'll wait for Railway to natively support deployment of Docker images directly. Meanwhile, I'll continue using Easypanel.
Finn
Finnβ€’3y ago
not sure that will help. cus railway is just deploying your docker image made from your dockerfile after this valo game ill find it for ya nvm the dockefile is not working and im about to fall asleap srryyy
Rumon
RumonOPβ€’3y ago
No problem. See ya later.
Want results from more Discord servers?
Add your server