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

[CONNECTION ERROR] Auth error at 'http://192.168.1.109/api/health': 502 - Bad Gateway #62

Open
zen85 opened this issue May 30, 2024 · 2 comments
Labels
support request User support, not necessarily a bug

Comments

@zen85
Copy link

zen85 commented May 30, 2024

hello elonen,

i tried the install script now several times 0.6.1 - changed it to 0.7.0 on a fresh raspberry like before... but i have no success at all

it always is stuck at "connecting server"

browser console says:
Parsing URL params:
URLSearchParams(0)
index-REt1HGtN.js:227:87601
Config file 'clapshot_client.conf.json' parsed:
Object { ws_url: "ws://192.168.1.109/api/ws", upload_url: "http://192.168.1.109/api/upload", user_menu_extra_items: (1) […], user_menu_show_basic_auth_logout: true }
index-REt1HGtN.js:227:88310
Connecting to WS API at: ws://192.168.1.109/api/ws index-REt1HGtN.js:227:88387
XHRGET
http://192.168.1.109/api/health
[HTTP/1.1 502 Bad Gateway 1ms]

[CONNECTION ERROR] Auth error at 'http://192.168.1.109/api/health': 502 - Bad Gateway index-REt1HGtN.js:227:84611
cn http://192.168.1.109/assets/index-REt1HGtN.js:227
Cn http://192.168.1.109/assets/index-REt1HGtN.js:227
(Async: promise callback)
Cn http://192.168.1.109/assets/index-REt1HGtN.js:227
instance http://192.168.1.109/assets/index-REt1HGtN.js:227
(Async: promise callback)
instance http://192.168.1.109/assets/index-REt1HGtN.js:227
init$1 http://192.168.1.109/assets/index-REt1HGtN.js:4
App http://192.168.1.109/assets/index-REt1HGtN.js:227
http://192.168.1.109/assets/index-REt1HGtN.js:227

i can get this error in the console via ssh:
pi@clapshot:~ $ sudo tail -n 50 /var/log/clapshot.log
2024-05-30T16:18:32+02 INFO ORG: Spawning (shell cmd): "sh" "-c" "/usr/bin/clapshot-organizer-basic-folders /mnt/clapshot-data/data/grpc-srv-to-org.sock"
2024-05-30T16:18:32+02 ERROR run_clapshot() failed: Other DB error: Failed to get migrations: DatabaseError(Unknown, "database is locked")
2024-05-30T16:18:32+02 INFO ORG:terminating: Process 'organizer' terminated with status: signal: 15 (SIGTERM)

i tried a lot of things over the last week but always end up there :(

@elonen
Copy link
Owner

elonen commented Jun 2, 2024

Could you try the upgrade again with the new v0.7.1?
It improves migration in several ways.

@elonen
Copy link
Owner

elonen commented Jun 2, 2024

Deb 12 install script updated to 0.7.1 now, too. Apart from changing version number to "0.7.1", I only added Debian Multimedia apt repo though, which is needed for some FFmpeg audio file transcoding.
Tried on a pristine system and it worked fine.

It was written as an installation script, not upgrade, BTW, so I don't really know what happens if you re-run it on a previously configure system. Upgrade simply by downloading the new .deb files and issuing

service clapshot-server stop && dpkg -i *0.7.1*.deb && service clapshot-server start

@elonen elonen added the support request User support, not necessarily a bug label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request User support, not necessarily a bug
Projects
None yet
Development

No branches or pull requests

2 participants