Suddenly not seeing any console.log output in new deployments
geodox
HOBBYOP

a year ago

ProjectID: c25d4e9c-92f8-4421-8d28-63ff94abc9a7

Filtering by @service:f10a0dba-d0d7-4880-aa06-509bb1bdefaa for the past 3 hours you can see previous deployment 542c7f8b-40c8-43b7-af1c-3066946ba394 I have successful console.log output. In deployments 4dfe0854-896f-4fdf-9ba2-5956c7be272f and e4846d1c-c1a4-4b99-87fd-eee133c6c542 I no longer see any console.log output. I am hitting functions that do console.log, In fact, moreso than in 542c7f8b-40c8-43b7-af1c-3066946ba394 deployment.

42 Replies

geodox
HOBBYOP

a year ago

It seems that the issue occurred after I signed up for hobby plan, and disabled serverless mode


geodox
HOBBYOP

a year ago

As implicitly mentioned, I have tried redeploying.


a year ago

What environment should I be looking into?


geodox
HOBBYOP

a year ago

Staging


a year ago

Im seeing logs from this hour for that service?


geodox
HOBBYOP

a year ago

I tried turning serverless back on and am not seeing anything different.


geodox
HOBBYOP

a year ago

I am seeing some logs, such as assets not exist, skipping serving prerendered pages and Not found: /app.css. I should be seeing logging output such as No driverId provided, using user ID: ... and PATCH request received: {. As my code changes still include those logging statements.


geodox
HOBBYOP

a year ago

It seems that changing plans has affected where my webserver redirects output to? I understand the webserver should redirect output to STDOUT.


a year ago

Changing plans would not chance that fact, if you are not seeing the output you want to see, then your logs are not being sent to stdout.


geodox
HOBBYOP

a year ago

Nothing on my end has changed where logs are being sent


geodox
HOBBYOP

a year ago

Nor do I or have I explicitly stated where logs should redirect output in my codebase


a year ago

Since this is unlikely to be a platform issue, we would need an MRE to be able to look into this.


geodox
HOBBYOP

a year ago

It seems more likely to me that it's a platform issue given that it only started occurring after changing plans. I'm also not sure what you mean by MRE?


a year ago

Minimal reproducible example


geodox
HOBBYOP

a year ago

I'd be happy to look into this further myself, however I already have a hobby plan. It's not really feasible for me to create a new account just to have the free plan again.


a year ago

I'm not sure why that would be necessary, you are on the Hobby plan right now and are experiencing this issue, we do not handle logging differently on any plan.


geodox
HOBBYOP

a year ago

Is there any way to access the container to see where logging may be redirected to?


a year ago

railway ssh but that wouldn't help here unfortunately


geodox
HOBBYOP

a year ago

I'll admit my wrong. It seems the issue was indeed on my end. My apologies


a year ago

No worries!


geodox
HOBBYOP

a year ago

I am curious about railway ssh though, I need to initialize my database with a script. I wasn't sure how that would be possible without any way to access the database service's files. Can you point me to docs regarding how I might accomplish this?


a year ago

Not much to it, just run the command.


geodox
HOBBYOP

a year ago

I'm getting an interactive shell but no input or output. Ctrl C creates the error message.

  ✓ Connected to interactive shell                                                                          Error: container create failed (no logs from conmon): conmon bytes "": readObjectStart: expect { or n, but found , error found in #0 byte of ...||..., bigger context ...||...

a year ago

What version of the CLI?


geodox
HOBBYOP

a year ago

railway 4.5.4


a year ago

Gotcha


a year ago

I don't think you should be SSH'ing into the database, you likely want to SSH into the service itself, since that is where the script would be located


geodox
HOBBYOP

a year ago

database is what I named the SurrealDB 2.x template instance, see https://discord.com/channels/713503345364697088/1394105001894215800


a year ago

Yep, but that doesn't change my recommendation.


geodox
HOBBYOP

a year ago

? Select a service
> database
  delivery-saas

geodox
HOBBYOP

a year ago

They are containerized, correct?


a year ago

Correct.


geodox
HOBBYOP

a year ago

According to CLI, I would be sshing into the service which happens to be called database... Perhaps I'm misunderstanding


a year ago

Right, I do not think you should be doing that.


a year ago

^


geodox
HOBBYOP

a year ago

Can you clarify what you mean by the service itself? you likely want to SSH into the service itself


a year ago

delivery-saas is what you would want to SSH into.


geodox
HOBBYOP

a year ago

How would I start the surreal process with a file from a different container?


a year ago

You access the database over the network.


a year ago

SurrealDB is a networked database, not an on disk database like sqlite.


geodox
HOBBYOP

a year ago


a year ago

Then you don't even need railway SSH simply run the command locally.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...