AppStore loading loop after adding Big Bear CasaOS App Store

Ran the health check and got this ^^^
Had trouble updating immich to the latest version, so I removed the App Store as well as uninstalled the app(without deleting user data). But when I tried to add the App Store back again, it now stays in a loop. The only way to regain access to the app store is by running the “casaos-cli app-management unregister app-store #” script on the bigbear App store.

heres a text dump of the terminal in case there is problems with the image.

Any help would be appreciated! :smiley:


-------------------
CasaOS Healthcheck:
-------------------
The local IP address is: 192.168.0.12
The port number is: 80
You can access it in the browser at: http://192.168.0.12:80
[sudo] password for casaos: 
sudo: ufw: command not found
The port 80 is not blocked by UFW.
Service casaos-app-management.service is running.
Service casaos-gateway.service is running.
Service casaos-local-storage.service is running.
Service casaos-message-bus.service is running.
Service casaos-user-service.service is running.
Service casaos.service is running.
Errors in casaos-app-management.service logs:
Jul 06 12:33:37 CasaOS casaos-app-management[3436]: {"time":"2024-07-06T12:33:37.445632308-04:00","id":"","remote_ip":"192.168.0.90","host":"192.168.0.12","method":"GET","uri":"/v2/app_management/web/appgrid","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0","status":200,"error":"","latency":285970906,"latency_human":"285.970906ms","bytes_in":0,"bytes_out":2543}
Jul 06 12:33:42 CasaOS casaos-app-management[3436]: {"time":"2024-07-06T12:33:42.425970264-04:00","id":"","remote_ip":"192.168.0.90","host":"192.168.0.12","method":"GET","uri":"/v2/app_management/web/appgrid","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0","status":200,"error":"","latency":254483475,"latency_human":"254.483475ms","bytes_in":0,"bytes_out":2543}
Jul 06 12:33:47 CasaOS casaos-app-management[3436]: {"time":"2024-07-06T12:33:47.541127253-04:00","id":"","remote_ip":"192.168.0.90","host":"192.168.0.12","method":"GET","uri":"/v2/app_management/web/appgrid","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0","status":200,"error":"","latency":245335267,"latency_human":"245.335267ms","bytes_in":0,"bytes_out":2543}
Jul 06 12:33:52 CasaOS casaos-app-management[3436]: {"time":"2024-07-06T12:33:52.567041704-04:00","id":"","remote_ip":"192.168.0.90","host":"192.168.0.12","method":"GET","uri":"/v2/app_management/web/appgrid","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0","status":200,"error":"","latency":241172370,"latency_human":"241.17237ms","bytes_in":0,"bytes_out":2543}
Jul 06 12:33:58 CasaOS casaos-app-management[3436]: {"time":"2024-07-06T12:33:58.574479365-04:00","id":"","remote_ip":"192.168.0.90","host":"192.168.0.12","method":"GET","uri":"/v2/app_management/web/appgrid","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0","status":200,"error":"","latency":1229899142,"latency_human":"1.229899142s","bytes_in":0,"bytes_out":2543}
Jul 06 12:34:02 CasaOS casaos-app-management[3436]: {"time":"2024-07-06T12:34:02.640994955-04:00","id":"","remote_ip":"192.168.0.90","host":"192.168.0.12","method":"GET","uri":"/v2/app_management/web/appgrid","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0","status":200,"error":"","latency":254169624,"latency_human":"254.169624ms","bytes_in":0,"bytes_out":2543}
-----
Errors in casaos-local-storage.service logs:
Jul 06 12:33:48 CasaOS casaos-local-storage[1162]:         "severity": "error"
Jul 06 12:33:48 CasaOS casaos-local-storage[1162]: 2024-07-06T12:33:48.355-0400        error        failed to exec shell - smartctl exec error        {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 149}
-----
Errors in casaos-message-bus.service logs:
Jul 06 12:33:18 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:33:18.043768198-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":1021158,"latency_human":"1.021158ms","bytes_in":630,"bytes_out":787}
Jul 06 12:33:23 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:33:23.039669516-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":955281,"latency_human":"955.281µs","bytes_in":632,"bytes_out":789}
Jul 06 12:33:28 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:33:28.043652606-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":937017,"latency_human":"937.017µs","bytes_in":632,"bytes_out":789}
Jul 06 12:33:33 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:33:33.044092002-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":1132060,"latency_human":"1.13206ms","bytes_in":632,"bytes_out":789}
Jul 06 12:33:38 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:33:38.044081521-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":960432,"latency_human":"960.432µs","bytes_in":632,"bytes_out":789}
Jul 06 12:33:43 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:33:43.043946781-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":981201,"latency_human":"981.201µs","bytes_in":632,"bytes_out":789}
Jul 06 12:33:48 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:33:48.039601648-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":921908,"latency_human":"921.908µs","bytes_in":632,"bytes_out":789}
Jul 06 12:33:53 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:33:53.039840515-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":984461,"latency_human":"984.461µs","bytes_in":632,"bytes_out":789}
Jul 06 12:33:58 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:33:58.039608206-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":917862,"latency_human":"917.862µs","bytes_in":632,"bytes_out":789}
Jul 06 12:34:03 CasaOS casaos-message-bus[838]: {"time":"2024-07-06T12:34:03.043338886-04:00","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:32941","method":"POST","uri":"/v2/message_bus/event/casaos/casaos:system:utilization","user_agent":"Go-http-client/1.1","status":200,"error":"","latency":920486,"latency_human":"920.486µs","bytes_in":632,"bytes_out":789}
-----
Service Logs: Errors Found 
All casaos services are up and running.
casaos@CasaOS:~$ casaos-cli app-management list app-stores
ID   URL                                                                                                    STORE ROOT
--   ---                                                                                                    ----------
0    https://github.com/IceWhaleTech/_appstore/archive/refs/heads/main.zip                                  /var/lib/casaos/appstore/github.com/018a559f310f03f24f3f829b462356a2/_appstore-main
1    https://github.com/IceWhaleTech/CasaOS-AppStore/archive/19b9149ce0bd50ffb8c898e283dc441605a3a369.zip   /var/lib/casaos/appstore/github.com/cb44723efc17582291f29d4f1559f24d/CasaOS-AppStore-19b9149ce0bd50ffb8c898e283dc441605a3a369
2    https://paodayag.dev/casaos-appstore-edge.zip                                                          /var/lib/casaos/appstore/paodayag.dev/992f549a895d9bea5303950c9f4c6bc3/CasaOS-AppStore-Edge-main
3    https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip 

The Internal Server Error store root not found. It seems to happen when you add the store, then remove it again, and then add it back. It seems to be a bug. It happens to Coolstore as well.

Have you tried to reboot the server?

Can you look in the browser developer tools and see the network request when opening the app store?

Here is my test lab, and you can see Coolstore now has a error. It’s not stopping the app store from loading, though.

You can also look for errors in:

cat /var/log/casaos/app-management.log

When i go to the network tab on the browser dev tools this is what i see.

Can you remove the store and read it?

It seems to be an issue here.

I removed Diun for now.

You can unregister the appstore:

Get the app store id:

casaos-cli app-management list app-stores

then replace [app-store-id-here] with the app store ID.

casaos-cli app-management unregister app-store [app-store-id-here]

Removed the app store, did a system reboot for good measure, went to the app store through the casaOS ui and hit enter the search bar to the right after pasting the store’s URL
https://github.com/bigbeartechworld/big-bear-casaos/archive/refs/heads/master.zip
and it worked!
Pretty sure I tried this multiple times, so I guess what you did solved it. Thanks! :partying_face:

Awesome! Glad to hear! You’re welcome; feel free to reach out if any more issues pop up.

1 Like

Hello, the App Store doesn’t work for me either. I haven’t really understood what I need to do to make it work again, where do I get the App Store ID? And how should I proceed?

Have you rebooted your CasaOS server?