8 months 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
It seems that the issue occurred after I signed up for hobby plan, and disabled serverless mode
8 months ago
What environment should I be looking into?
8 months ago
Im seeing logs from this hour for that service?
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.
It seems that changing plans has affected where my webserver redirects output to? I understand the webserver should redirect output to STDOUT.
8 months 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.
Nor do I or have I explicitly stated where logs should redirect output in my codebase
8 months ago
Since this is unlikely to be a platform issue, we would need an MRE to be able to look into this.
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?
8 months ago
Minimal reproducible example
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.
8 months 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.
Is there any way to access the container to see where logging may be redirected to?
8 months ago
railway ssh but that wouldn't help here unfortunately
8 months ago
No worries!
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?
8 months ago
Not much to it, just run the command.
I'm getting an interactive shell but no input or output. Ctrl C creates the error message.> Select a service database ✓ 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 ...||...
8 months ago
What version of the CLI?
8 months ago
Gotcha
8 months 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
database is what I named the SurrealDB 2.x template instance, see https://discord.com/channels/713503345364697088/1394105001894215800
8 months ago
Yep, but that doesn't change my recommendation.
8 months ago
Correct.
According to CLI, I would be sshing into the service which happens to be called database… Perhaps I'm misunderstanding
8 months ago
Right, I do not think you should be doing that.
8 months ago
^
Can you clarify what you mean by the service itself? you likely want to SSH into the service itself
8 months ago
delivery-saas is what you would want to SSH into.
How would I start the surreal process with a file from a different container?
8 months ago
You access the database over the network.
8 months ago
SurrealDB is a networked database, not an on disk database like sqlite.
I was going to https://surrealdb.com/docs/surrealdb/cli/import
8 months ago
Then you don't even need railway SSH simply run the command locally.