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

battery.app fails to launch on M1 Air with Sonoma 14.5 #291

Open
jonathan-jbs opened this issue Jul 6, 2024 · 3 comments
Open

battery.app fails to launch on M1 Air with Sonoma 14.5 #291

jonathan-jbs opened this issue Jul 6, 2024 · 3 comments

Comments

@jonathan-jbs
Copy link

The issue is that battery.app fails with error "Error installing battery limiter: undefined".

I have installed with brew, also by download of dmg, same result.

I expected this to complete the installation and give me a CLI that runs.

image

Error logs
executable 'battery' does not exist.
File gui.log exists in ~/.battery... pasted below.

[ update-electron-app ]
feedURL
https://update.electronjs.org/actuallymentor/battery/darwin-arm64/1.2.2
Starting tray app
Found image: /Applications/battery.app/Contents/Resources/battery-active-100-Template.png
Triggering boot-time auto-update
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://github.com &> /dev/null
[ update-electron-app ]
checking-for-update
Display percentage 100 based on 100
[ update-electron-app ]
requestHeaders
[object Object]
Tray app boot complete
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://icanhazip.com &> /dev/null
Get active logo for 100
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which battery
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0I -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -w 02
Internet online: false
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0C -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which smc
Is installed?
false
Executing ps aux | grep "/usr/local/bin/battery " | wc -l | grep -Eo "\d*"
[ update-electron-app ]
requestHeaders
[object Object]
[ update-electron-app ]
feedURL
https://update.electronjs.org/actuallymentor/battery/darwin-arm64/1.2.2
Found image: /Applications/battery.app/Contents/Resources/battery-active-100-Template.png
Get active logo for 100
Display percentage 100 based on 100
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://github.com &> /dev/null
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://icanhazip.com &> /dev/null
[ update-electron-app ]
checking-for-update
Tray app boot complete
Starting tray app
Triggering boot-time auto-update
Internet online: false
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which battery
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which smc
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0C -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0I -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -w 02
Is installed?
false
Executing ps aux | grep "/usr/local/bin/battery " | wc -l | grep -Eo "\d*"
[ update-electron-app ]
requestHeaders
[object Object]
[ update-electron-app ]
feedURL
https://update.electronjs.org/actuallymentor/battery/darwin-arm64/1.2.2
Display percentage 100 based on 100
Triggering boot-time auto-update
[ update-electron-app ]
checking-for-update
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://github.com &> /dev/null
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://icanhazip.com &> /dev/null
Get active logo for 100
Tray app boot complete
Found image: /Applications/battery.app/Contents/Resources/battery-active-100-Template.png
Starting tray app
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which battery
Internet online: false
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which smc
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0C -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0I -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -w 02
Is installed?
false
Executing ps aux | grep "/usr/local/bin/battery " | wc -l | grep -Eo "\d*"
[ update-electron-app ]
feedURL
https://update.electronjs.org/actuallymentor/battery/darwin-arm64/1.2.2
Tray app boot complete
Triggering boot-time auto-update
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://github.com &> /dev/null
[ update-electron-app ]
requestHeaders
[object Object]
Get active logo for 100
Found image: /Applications/battery.app/Contents/Resources/battery-active-100-Template.png
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://icanhazip.com &> /dev/null
Starting tray app
Display percentage 100 based on 100
[ update-electron-app ]
checking-for-update
Internet online: false
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which battery
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -w 02
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which smc
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0C -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0I -r
Is installed?
false
Executing ps aux | grep "/usr/local/bin/battery " | wc -l | grep -Eo "\d*"
Starting tray app
Get active logo for 100
Triggering boot-time auto-update
[ update-electron-app ]
feedURL
https://update.electronjs.org/actuallymentor/battery/darwin-arm64/1.2.2
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://icanhazip.com &> /dev/null
Tray app boot complete
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://github.com &> /dev/null
[ update-electron-app ]
checking-for-update
[ update-electron-app ]
requestHeaders
[object Object]
Display percentage 100 based on 100
Found image: /Applications/battery.app/Contents/Resources/battery-active-100-Template.png
Internet online: false
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which battery
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which smc
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0C -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0I -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -w 02
Is installed?
false
Executing ps aux | grep "/usr/local/bin/battery " | wc -l | grep -Eo "\d*"
[ update-electron-app ]
requestHeaders
[object Object]
Display percentage 100 based on 100
Found image: /Applications/battery.app/Contents/Resources/battery-active-100-Template.png
Tray app boot complete
Triggering boot-time auto-update
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://icanhazip.com &> /dev/null
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin curl -I https://github.com &> /dev/null
[ update-electron-app ]
checking-for-update
[ update-electron-app ]
feedURL
https://update.electronjs.org/actuallymentor/battery/darwin-arm64/1.2.2
Get active logo for 100
Starting tray app
Internet online: false
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which battery
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k ACLC -w 02
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0C -r
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin which smc
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin sudo -n /usr/local/bin/smc -k CH0I -r
Is installed?
false
Executing ps aux | grep "/usr/local/bin/battery " | wc -l | grep -Eo "\d*"
Update/install error:
/Users/jbs/.bashrc: line 5: epithet: command not found

[ update-electron-app ]
update-not-available
Executing PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin battery status_csv
App initialisation process complete

@jonathan-jbs
Copy link
Author

The internet is working fine, this report filed on the same machine.

@sglavoie
Copy link

I got roughly the same log outputs on M1 Sonoma 14.6.1 (also says Internet online: false), by installing with Homebrew and also with the standalone DMG file. The CLI version installed with the installation script worked just fine for me, at least that's an option. Thank you!

@pencilcheck
Copy link

I'm also getting this error on M1 air on Sonoma as well. Would be nice if the DMG works out of box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants