[CONNECTION ERROR] Auth error at 'http://192.168.1.109/api/health': 502 - Bad Gateway
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
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 :(
Could you try the upgrade again with the new v0.7.1? It improves migration in several ways.
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