Comments (15)
@ArneTR I want to collect all bug reports here for power hog v0.2
from hog.
Bug #1 happened while the Hog.app was already on the system and I was following the install instructions from the welcome screen.
First step failes:
curl -fsSL https://raw.githubusercontent.com/green-coding-berlin/hog/main/install.sh | sudo bash
Xcode Command Line Tools are already installed!
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6100 100 6100 0 0 14721 0 --:--:-- --:--:-- --:--:-- 14987
Archive: /tmp/latest_release.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /tmp/latest_release.zip or
/tmp/latest_release.zip.zip, and cannot find /tmp/latest_release.zip.ZIP, period.
from hog.
The problem might be that the unzip operation will unzip also to a folder that is only sudo writeable. Somehere there needs to be a sudo call in the file at least
from hog.
Next up I tried to manually go through the install file one by one to install the hog.
I encountered the sed command, which does not work for me. I have the default BSD sed. The following change was necessary:
sed -i "s|PATH_PLASE_CHANGE|/usr/local/bin/hog/|g" /Library/LaunchDaemons/berlin.green-coding.hog.plist
to
sed -i '' "s|PATH_PLASE_CHANGE|/usr/local/bin/hog/|g" /Library/LaunchDaemons/berlin.green-coding.hog.plist
Otherwise I get sed: 1: "/Library/LaunchDaemons/ ...": invalid command code L
from hog.
Mini Note: Maybe change type from PATH_PLASE_CHANGE to PATH_PLEASE_CHANGE
from hog.
The hog is running. First interesting find: energy_impact and avg cpu time can be greatly differing
from hog.
Bug #3: The settings in my settings file in the HOME directory are not picked up. I did not create a settings file in /usr/local/bin/hog
![Screenshot 2023-09-23 at 1 23 55 AM](https://private-user-images.githubusercontent.com/250671/270073414-1b680b76-d511-4e67-b05b-ca92f1516ffa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleT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ZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyNFQyMzIwMzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZTM2NDRkNWNkZTQwZTc0MGMyZmRiMTNhOGI1MWFjZDExMmMyOWEwOWQ5ZjU1NTUyODczMmM4Y2IzYjQxMDgzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.3FsQBgV1slvr_WXCL8yaQL3MiaF9LYmJuMzcDvBkQxU)
In my firewall I see that the requests actually go out wrongly to the live domain
from hog.
Bug #4: I blocked the request to the online domain and the power logger crashed.
Even after 10 Minutes it is not coming back up. The service is still running, but apparently in an endless loop.
![Screenshot 2023-09-23 at 1 32 39 AM](https://private-user-images.githubusercontent.com/250671/270074003-cb78eb5f-e106-4f02-b010-094d6cc2f26d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg4MTcxMzcsIm5iZiI6MTcwODgxNjgzNywicGF0aCI6Ii8yNTA2NzEvMjcwMDc0MDAzLWNiNzhlYjVmLWUxMDYtNGYwMi1iMDEwLTA5NGQ2Y2MyZjI2ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyNFQyMzIwMzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYjY3MzBlZmExZjEzNmIwNTAxNWZlMmExMDZhZTUxYTNjZmIxZWM3MDk1MjVlMTNjMmVhM2ZkNDIwOGVjMDY2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.YBSZmk0QVmjTq8IdgLhk9T4oDIJTLwok5703PSitRHM)
![Screenshot 2023-09-23 at 1 31 43 AM](https://private-user-images.githubusercontent.com/250671/270074008-655acee1-d59a-4000-9d6e-67c9bcce6c26.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg4MTcxMzcsIm5iZiI6MTcwODgxNjgzNywicGF0aCI6Ii8yNTA2NzEvMjcwMDc0MDA4LTY1NWFjZWUxLWQ1OWEtNDAwMC05ZDZlLTY3YzliY2NlNmMyNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMjI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDIyNFQyMzIwMzdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03ZGYzN2E1YzYxY2VmYzE5M2JhNThlNjMwOTE4ZmY5ODVjNGRkODQ0NDY4ZTZhNDU5MWQ3NTEwZDA1YjU2MTJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.a8InHqmcYuBB-ln9w5J5bMgGPx2JZSCv4Ry7tmcSU6g)
If I unload the service I can see again data in the Hog macOS panel. However only until the next data upload is tried and blocked.
In order for you to reproduce it I then tried disabling my Wifi. Here the same issue happens, after 5 Minutes and no Internet the hog power logger crashes
from hog.
The problem might be that the unzip operation will unzip also to a folder that is only sudo writeable. Somehere there needs to be a sudo call in the file at least
The installer pipes the script to sudo bash
curl -fsSL https://raw.githubusercontent.com/green-coding-berlin/hog/main/install.sh | sudo bash
should be the command that is show in the hog? Can you please recheck?
The hog is running. First interesting find: energy_impact and avg cpu time can be greatly differing
It could be that it really depends on what core the process is running. Performance cores take up to 10 times more energy. I am currently looking into the cpu_time
as something seems to be off anyway.
from hog.
The problem might be that the unzip operation will unzip also to a folder that is only sudo writeable. Somehere there needs to be a sudo call in the file at least
The installer pipes the script to sudo bash
curl -fsSL https://raw.githubusercontent.com/green-coding-berlin/hog/main/install.sh | sudo bash
should be the command that is show in the hog? Can you please recheck?
The hog is running. First interesting find: energy_impact and avg cpu time can be greatly differing
It could be that it really depends on what core the process is running. Performance cores take up to 10 times more energy. I am currently looking into the
cpu_time
as something seems to be off anyway.
You see in my CLI paste here that the pipe is as said to sudo bash
. I also retried it just now, error is still current.
To answer your follow up question: In the hog it shows correctly as sudo bash
also
from hog.
Can you try:
curl -s https://api.github.com/repos/green-coding-berlin/hog/releases/latest | grep '/hog_power_logger.zip' | cut -d\" -f4
from hog.
from hog.
Hmmm? Why am I getting
# curl -s https://api.github.com/repos/green-coding-berlin/hog/releases/latest | grep '/hog_power_logger.zip' | cut -d\" -f4
https://github.com/green-coding-berlin/hog/releases/download/0.2/hog_power_logger.zip
it seems like the |
is not working. But why?
from hog.
For the record:
The settings file was not picked up as @ArneTR put it in his home directory but the power_logger script runs as root. The documentation and implementation were not clear here. Fixed
from hog.
For the record. The curl download was not working as GitHub once in while as an error, that delivers a different version of the json without newlines and the json double.
from hog.
Related Issues (20)
- "measurement systems not running" in the morning HOT 7
- Show subprocesses? HOT 1
- Make process coalitions configurable HOT 4
- Hog doesn't fill settings dialog HOT 1
- Energy Impact goes down when closing the power_logger HOT 1
- track usage by website? HOT 1
- Hog crashes and is not restarted by OS
- Add grid intensity to the hog interface
- Data upload delay due to hanging thread HOT 7
- Add debugging for no disk HOT 1
- Make table fixed with
- Add duplicate detection to the backend
- reduce disk space usage HOT 1
- Reduce server database size
- Add path resolution to process names
- can't run latest release any more HOT 3
- Modify the install.sh script to handle more cases
- Sprint 2 HOT 1
- Refactor the app to use SQLite.swift
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hog.