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

[BUG] 404 Error when installing PiSugar 3 software #108

Open
jockm opened this issue Mar 22, 2024 · 4 comments
Open

[BUG] 404 Error when installing PiSugar 3 software #108

jockm opened this issue Mar 22, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@jockm
Copy link

jockm commented Mar 22, 2024

Environment

  • Pi hardware version: zero
  • OS version: any
  • Application version: don't know

To Reproduce

wget https://cdn.pisugar.com/release/pisugar-power-manager.sh
bash pisugar-power-manager.sh -c release

Expected behavior
The software to install

Console Result

wget https://cdn.pisugar.com/release/pisugar-power-manager.sh
bash pisugar-power-manager.sh -c release
--2024-03-22 09:09:11--  https://cdn.pisugar.com/release/pisugar-power-manager.sh
Resolving cdn.pisugar.com (cdn.pisugar.com)... 8.45.176.227, 8.45.176.231, 8.45.176.230, ...
Connecting to cdn.pisugar.com (cdn.pisugar.com)|8.45.176.227|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4449 (4.3K) [text/plain]
Saving to: ‘pisugar-power-manager.sh’

pisugar-power-manager.sh           100%[=============================================================>]   4.34K  --.-KB/s    in 0s      

2024-03-22 09:09:12 (12.7 MB/s) - ‘pisugar-power-manager.sh’ saved [4449/4449]

Download PiSugar-server and PiSugar-poweroff package 
--2024-03-22 09:09:12--  http://cdn.pisugar.com/release/pisugar-server_1.7.6_armhf.deb
Resolving cdn.pisugar.com (cdn.pisugar.com)... 8.45.176.225, 8.45.176.232, 8.45.176.226, ...
Connecting to cdn.pisugar.com (cdn.pisugar.com)|8.45.176.225|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-03-22 09:09:14 ERROR 404: Not Found.
@jockm jockm added the bug Something isn't working label Mar 22, 2024
@jockm
Copy link
Author

jockm commented Mar 22, 2024

Also: I get the same result when I choose nightly and not release

Specifically it fails on the line:

wget -O "$TEMPDIR/${package_server}" "http://cdn.pisugar.com/${channel}/${package_server}"

which works out to:

wget -O /tmp/pisugar.8KsEVL/pisugar-server_1.7.6_armhf.deb http://cdn.pisugar.com/release/pisugar-server_1.7.6_armhf.deb

I have a hard time believing the actual install instructions were actually tested

@Alcedema
Copy link

Have had this issue since 1.7.6 was released. Need this as 1.7.5 frontend can't communicate with the API.

@J-CMartin
Copy link

J-CMartin commented Mar 22, 2024

Came here to report the same problem. Version 1.7.6 doesn't seem to be on CDN.
I changed the script to point to 1.7.5 and it worked fine.

@AnonymousxiosdeV
Copy link

AnonymousxiosdeV commented Mar 23, 2024

I have made PR to fix this #107 but for now you can run the following.

bash pisugar-power-manager.sh -v 1.7.6-1

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

5 participants