Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: 500 error on redirect from Upload to Info page #42

Open
kqmaverick opened this issue Jan 12, 2025 · 11 comments
Open

Fix: 500 error on redirect from Upload to Info page #42

kqmaverick opened this issue Jan 12, 2025 · 11 comments
Labels
bug Something isn't working

Comments

@kqmaverick
Copy link

Getting weird 500 errors. Mostly seeing them on upload. If I refresh the page it will load fine.

image

@andrii-kryvoviaz
Copy link
Owner

Are you seeing any errors in your container logs? Could you provide more details, such as how often these errors occur and under what circumstances, e.g., uploading a certain image format, image size, etc.

@kqmaverick
Copy link
Author

Sorry here are the logs:

2025-01-12 12:25:00.514588-08:002025-01-12 12:25:00,511 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2025-01-12 12:25:00.514620-08:002025-01-12 12:25:00,511 INFO Included extra file "/etc/supervisor/conf.d/production.conf" during parsing
2025-01-12 12:25:00.514627-08:002025-01-12 12:25:00,513 INFO supervisord started with pid 1
2025-01-12 12:25:01.535834-08:002025-01-12 12:25:01,514 INFO spawned: 'client-app' with pid 7
2025-01-12 12:25:01.535876-08:002025-01-12 12:25:01,516 INFO spawned: 'redis' with pid 8
2025-01-12 12:25:01.535884-08:002025-01-12 12:25:01,517 INFO spawned: 'startup' with pid 9
2025-01-12 12:25:01.535890-08:002025-01-12 12:25:01,519 INFO spawned: 'swoole-runtime' with pid 10
2025-01-12 12:25:01.535895-08:002025-01-12 12:25:01,521 INFO spawned: 'symfony_about' with pid 11
2025-01-12 12:25:01.614376-08:00[Startup] Skipping creation of Projection Database as DATABASE_URL uses SQLite.
2025-01-12 12:25:01.614386-08:002025-01-12 12:25:01,556 INFO success: startup entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2025-01-12 12:25:01.614391-08:00[Startup] Skipping creation of Event Store Database as ES_DATABASE_URL uses SQLite.
2025-01-12 12:25:02.044419-08:00Listening on 0.0.0.0:3000
2025-01-12 12:25:02.998758-08:002025-01-12 12:25:02,998 INFO success: client-app entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2025-01-12 12:25:02.998778-08:002025-01-12 12:25:02,998 INFO success: redis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2025-01-12 12:25:02.998784-08:002025-01-12 12:25:02,998 INFO success: swoole-runtime entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2025-01-12 12:25:02.998796-08:002025-01-12 12:25:02,998 INFO success: symfony_about entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2025-01-12 12:25:03.061569-08:002025-01-12T12:25:03.061569861-08:00
2025-01-12 12:25:03.080796-08:00[OK] Already at the latest version                                             
2025-01-12 12:25:03.080814-08:00("Slink\Shared\Infrastructure\Persistence\EventStore\Migrations\Version202
2025-01-12 12:25:03.080820-08:0031029174455")                                                             
2025-01-12 12:25:03.080830-08:002025-01-12T12:25:03.080830864-08:00
2025-01-12 12:25:03.136571-08:002025-01-12 12:25:03,136 WARN exited: symfony_about (exit status 1; not expected)
2025-01-12 12:25:03.378595-08:002025-01-12T12:25:03.378595854-08:00
2025-01-12 12:25:03.380924-08:00[OK] Successfully migrated to version:                                         
2025-01-12 12:25:03.380941-08:00Slink\Shared\Infrastructure\Persistence\Doctrine\Migrations\Version2024101
2025-01-12 12:25:03.380955-08:006200959                                                                   
2025-01-12 12:25:03.380960-08:002025-01-12T12:25:03.380960548-08:00
2025-01-12 12:25:03.380965-08:002025-01-12T12:25:03.380965524-08:00
2025-01-12 12:25:03.617628-08:002025-01-12T12:25:03.617628614-08:00
2025-01-12 12:25:03.618361-08:00[OK] Done!                                                                     
2025-01-12 12:25:03.618546-08:002025-01-12T12:25:03.618546948-08:00
2025-01-12 12:25:03.637510-08:002025-01-12 12:25:03,627 INFO exited: startup (exit status 0; expected)
2025-01-12 12:31:31.442991-08:00SvelteKitError: Not found: /admin
2025-01-12 12:31:31.443029-08:00at resolve2 (file:///app/svelte-kit/server/index.js:4696:18)
2025-01-12 12:31:31.443036-08:00at resolve (file:///app/svelte-kit/server/index.js:4529:34)
2025-01-12 12:31:31.443042-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:42:16)
2025-01-12 12:31:31.443054-08:00at applyClientTheme (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:137:10)
2025-01-12 12:31:31.443060-08:00at apply_handle (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:24:14)
2025-01-12 12:31:31.443065-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:38:35)
2025-01-12 12:31:31.443070-08:00at setCookieSettingsOnLocals (file:///app/svelte-kit/server/chunks/index4-BbzIcfTO.js:194:10)
2025-01-12 12:31:31.443081-08:00at apply_handle (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:24:14)
2025-01-12 12:31:31.443086-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:38:35)
2025-01-12 12:31:31.443091-08:00at file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:68:14 {
2025-01-12 12:31:31.443096-08:00status: 404,
2025-01-12 12:31:31.443101-08:00text: 'Not Found'
2025-01-12 12:31:31.443110-08:00}
2025-01-12 12:38:28.390350-08:00SvelteKitError: Not found: /favicon.ico
2025-01-12 12:38:28.390452-08:00at resolve2 (file:///app/svelte-kit/server/index.js:4696:18)
2025-01-12 12:38:28.390470-08:00at resolve (file:///app/svelte-kit/server/index.js:4529:34)
2025-01-12 12:38:28.390484-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:42:16)
2025-01-12 12:38:28.390513-08:00at applyClientTheme (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:137:10)
2025-01-12 12:38:28.390528-08:00at apply_handle (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:24:14)
2025-01-12 12:38:28.390541-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:38:35)
2025-01-12 12:38:28.390554-08:00at setCookieSettingsOnLocals (file:///app/svelte-kit/server/chunks/index4-BbzIcfTO.js:194:10)
2025-01-12 12:38:28.390575-08:00at apply_handle (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:24:14)
2025-01-12 12:38:28.390588-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:38:35)
2025-01-12 12:38:28.390602-08:00at file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:68:14 {
2025-01-12 12:38:28.390614-08:00status: 404,
2025-01-12 12:38:28.390635-08:00text: 'Not Found'
2025-01-12 12:38:28.390649-08:00}
2025-01-12 12:44:13.661559-08:00SvelteKitError: Not found: /favicon.ico
2025-01-12 12:44:13.661631-08:00at resolve2 (file:///app/svelte-kit/server/index.js:4696:18)
2025-01-12 12:44:13.661639-08:00at resolve (file:///app/svelte-kit/server/index.js:4529:34)
2025-01-12 12:44:13.661644-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:42:16)
2025-01-12 12:44:13.661660-08:00at applyClientTheme (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:137:10)
2025-01-12 12:44:13.661665-08:00at apply_handle (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:24:14)
2025-01-12 12:44:13.661670-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:38:35)
2025-01-12 12:44:13.661676-08:00at setCookieSettingsOnLocals (file:///app/svelte-kit/server/chunks/index4-BbzIcfTO.js:194:10)
2025-01-12 12:44:13.661685-08:00at apply_handle (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:24:14)
2025-01-12 12:44:13.661690-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:38:35)
2025-01-12 12:44:13.661695-08:00at file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:68:14 {
2025-01-12 12:44:13.661700-08:00status: 404,
2025-01-12 12:44:13.661710-08:00text: 'Not Found'
2025-01-12 12:44:13.661715-08:00}
2025-01-12 12:53:36.612470-08:00SvelteKitError: Not found: /admin
2025-01-12 12:53:36.612530-08:00at resolve2 (file:///app/svelte-kit/server/index.js:4696:18)
2025-01-12 12:53:36.612537-08:00at resolve (file:///app/svelte-kit/server/index.js:4529:34)
2025-01-12 12:53:36.612543-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:42:16)
2025-01-12 12:53:36.612556-08:00at applyClientTheme (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:137:10)
2025-01-12 12:53:36.612561-08:00at apply_handle (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:24:14)
2025-01-12 12:53:36.612566-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:38:35)
2025-01-12 12:53:36.612571-08:00at setCookieSettingsOnLocals (file:///app/svelte-kit/server/chunks/index4-BbzIcfTO.js:194:10)
2025-01-12 12:53:36.612579-08:00at apply_handle (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:24:14)
2025-01-12 12:53:36.612585-08:00at resolve (file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:38:35)
2025-01-12 12:53:36.612591-08:00at file:///app/svelte-kit/server/chunks/hooks.server-DlopOSSQ.js:68:14 {
2025-01-12 12:53:36.612596-08:00status: 404,
2025-01-12 12:53:36.612604-08:00text: 'Not Found'
2025-01-12 12:53:36.612609-08:00}

@kqmaverick
Copy link
Author

kqmaverick commented Jan 12, 2025

Also images are jpg 1-2MB. Happens on upload.

@andrii-kryvoviaz
Copy link
Owner

I see. Are those errors random, or do they correlate with the browser tab being inactive for some time?

@kqmaverick
Copy link
Author

Every time I do an upload. I've tried both my PC and iPad

@andrii-kryvoviaz
Copy link
Owner

I don’t see any issues that could be causing this problem. There are only a couple of 404 errors in your log, which don’t seem to be related to the issue itself. I may need to debug it on a fresh system and will follow up later. It would also be helpful to know what system you’re running on.

Additionally, you could submit your Docker or Docker Compose configuration (without any sensitive information).

@kqmaverick
Copy link
Author

Running kubernetes not docker. Another thing I've noticed is the admin links usually get sent to /profile page. I have to type url manually or open as a new tab instead. Really odd. I tried a fresh install just to be sure something didn't get broken during migration from an older version. Seeing the same issues.

@andrii-kryvoviaz
Copy link
Owner

I haven’t tested the project to see if it can run on kubernetes. I believe the main challenge would be correctly setting up the persistent volumes. Additionally, if you have multiple replicas, there could be issues with session handling between different pods. So yeah, most likely it won't run on k8s by default.

I definitely want to add kubernetes support down the road. However, I don’t currently have it set up in my homelab, as I had to disassemble it. This makes it challenging to test at the moment.

@kqmaverick
Copy link
Author

Should not be an issue with the PVCs as the images are being uploaded just need to F5 that 500 page and it works fine after. More wondering if it's some kind of hiccup with traefik.

@andrii-kryvoviaz
Copy link
Owner

Oh, so the images are eventually being uploaded. I’ll try to recreate the issue and see if I can fix it from the application layer.

@kqmaverick
Copy link
Author

Yea the actual upload is fine. I get the 500 error then just refresh the page and it shows the image info page as it should. I can then set private/public and delete and everything without issue.

@andrii-kryvoviaz andrii-kryvoviaz changed the title 500 Errors Fix: 500 error on redirect from Upload to Info page Jan 13, 2025
@andrii-kryvoviaz andrii-kryvoviaz added the bug Something isn't working label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants