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

SSE: installed_app_status doesn't update when app was installed/uninstalled #184

Closed
cstenglein opened this issue Dec 22, 2022 · 4 comments · Fixed by #208
Closed

SSE: installed_app_status doesn't update when app was installed/uninstalled #184

cstenglein opened this issue Dec 22, 2022 · 4 comments · Fixed by #208
Assignees
Labels
bug Something isn't working platform:raspiblitz All issues only affecting RaspiBlitz platform SSE An issue only in the SSE stream v0.5.1-beta
Milestone

Comments

@cstenglein
Copy link
Collaborator

cstenglein commented Dec 22, 2022

With 1.9.0rc

To reproduce: Uninstall app over webUI. Message will not disappear.

@rootzoll
Copy link
Collaborator

rootzoll commented Feb 3, 2023

@fusion44 any updates on this bug? Would be great to have it fixed for RC2

fusion44 added a commit that referenced this issue Feb 5, 2023
@fusion44 fusion44 self-assigned this Feb 5, 2023
@fusion44 fusion44 added the bug Something isn't working label Feb 5, 2023
@fusion44 fusion44 added this to the v0.5.1-beta milestone Feb 5, 2023
@fusion44 fusion44 added v0.5.1-beta platform:raspiblitz All issues only affecting RaspiBlitz platform labels Feb 5, 2023
@fusion44 fusion44 added SSE An issue only in the SSE stream REST An issue only appearing when using the REST interface and removed REST An issue only appearing when using the REST interface labels May 11, 2023
@fusion44 fusion44 changed the title installed_app_status doesn't update when app was uninstalled SSE: installed_app_status doesn't update when app was uninstalled May 11, 2023
@fusion44 fusion44 changed the title SSE: installed_app_status doesn't update when app was uninstalled SSE: installed_app_status doesn't update when app was installed/uninstalled May 11, 2023
@fusion44
Copy link
Owner

I'll take another look at this throughout the coming weekend.

@fusion44
Copy link
Owner

fusion44 commented May 14, 2023

I guess installed_app_status is never pushed to the SSE channel because it seems like every app uninstall fails currently API wise, but succeeds on the Blitz. Here's what I get when I install JAM:

output.mp4

Blitz API logs:

May 14 18:19:03 python[4081732]: 2023-05-14 18:19:03 | ℹ️ | logging.py:87 | 127.0.0.1:40034 - "POST /apps/uninstall/jam HTTP/1.0" 200
May 14 18:19:03 sudo[267127]: blitzapi : PWD=/home/blitzapi/blitz_api ; USER=root ; COMMAND=/usr/bin/ls /etc/systemd/system/joinmarket-api.service
May 14 18:19:03 sudo[267127]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1003)
May 14 18:19:03 sudo[267127]: pam_unix(sudo:session): session closed for user root
May 14 18:19:03 sudo[267138]: blitzapi : PWD=/home/blitzapi/blitz_api ; USER=root ; COMMAND=/usr/bin/systemctl stop joinmarket-api
May 14 18:19:03 sudo[267138]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1003)
May 14 18:19:04 sudo[267138]: pam_unix(sudo:session): session closed for user root
May 14 18:19:04 sudo[267234]: blitzapi : PWD=/home/blitzapi/blitz_api ; USER=root ; COMMAND=/usr/bin/systemctl disable joinmarket-api
May 14 18:19:04 sudo[267234]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1003)
May 14 18:19:05 sudo[267234]: pam_unix(sudo:session): session closed for user root
May 14 18:19:05 sudo[267316]: blitzapi : PWD=/home/blitzapi/blitz_api ; USER=root ; COMMAND=/usr/bin/rm -f /etc/systemd/system/joinmarket-api.service
May 14 18:19:05 sudo[267316]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1003)
May 14 18:19:05 sudo[267316]: pam_unix(sudo:session): session closed for user root
May 14 18:19:05 sudo[267322]: blitzapi : PWD=/home/blitzapi/blitz_api ; USER=root ; COMMAND=/usr/sbin/ufw delete allow from any to any port 7500
May 14 18:19:05 sudo[267322]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1003)
... lots of similar messages hidden
May 14 18:19:18 python[4081732]: 2023-05-14 18:19:18 | ℹ️ | raspiblitz.py:232 | WRITING LOG FILE: /var/cache/raspiblitz/temp/install.jam.log
May 14 18:19:18 python[4081732]: 2023-05-14 18:19:18 | ❌ | raspiblitz.py:263 | NO `result=` returned by script:

And here's the generated log file for the uninstall (/var/cache/raspiblitz/temp/install.jam.log):

API triggered script: bash /home/admin/config.scripts/bonus.jam.sh off --delete-data
###### STDOUT #######
# *** DEACTIVATE JAM ***
# Cleaning up Jam install ...
# OK, Jam is removed

###### STDERR #######
Rule deleted
Rule deleted (v6)
Rule deleted
Rule deleted (v6)
rm: cannot remove '2/dev/null': No such file or directory
rm: cannot remove '2/dev/null': No such file or directory
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
# OK service is removed - reloading Tor ...
# Done

@rootzoll
Copy link
Collaborator

@fusion44 JAM is now returning a resilt status on uninstall - see
raspiblitz/raspiblitz#3844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform:raspiblitz All issues only affecting RaspiBlitz platform SSE An issue only in the SSE stream v0.5.1-beta
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants