-
Notifications
You must be signed in to change notification settings - Fork 17
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
Missing binaries and hanging setup on HypriotOS #1
Comments
Well, right now there is no built-in way to debug, but could you tell me the results when you run I will try to add support for HypriotOS, but no guarantees. |
Thank you. Hm. It seems i have the wrong lsof version installed or something is wrong with lsof itself on my HypriotOS. When i run
I have lsof 4.86 installed. Is this correct? |
Ok. I have searched for lsof using google. I think i dont have to use the space after the Also if I run Maybe this topic should be asked to the hypriot team. |
Whoops! I meant If it doesn't print anything, maybe you should talk to the hypriot team about this issue. I'm running revision 4.89 on my mac, and the command works perfectly. I'll do some more research, but I suspect this might be a Hypriot problem. Try updating hypriot/lsof. |
Sorry. my mistake :-) I meant |
Hm :-) Ok. On my Rapberry pi at the office (running raspbian) it works. But I had to install lsof too. It seems it is not installed by default on raspbian. running I will double check the root privileges on HypriotOs later. Maybe its a sudo problem. |
Okay. I added sudo to all the lsof commands, which should now allow it to work. Also, I made it install lsof, if it isn't detected on the system. I didn't get a chance to test it, but it should work. |
Thank you. I will check it later. |
Puh :-) Ok. First of all sorry for the hassle :-) The problem was not lsof. The problem was me. If i run lsof is not the problem anymore. The problem occurs now at the ufw statement. Ufw isnt installed at raspbian and Hypriot by default. That means there should be no need to set up a firewall rule. That line is the reason the script will hang because the ufw command will fail. But if you try to run the script the secont time the docker container is already created. This will then throw a new error. Because the name cannot be reused. Then it will hang up again at this point. I had to delete the pivpn container and uncomment the ufw line in my copy of your script. So far :-) Now it hangs up on "Writing random data". I will check it too. |
Do you have openssl on Hypriot? |
Jup. Its installed by default:
|
There ist something strange with the |
Well, I haven't tested it on a Raspberry Pi, but it does work on ubuntu. You do need to interact with your computer to generate entropy for the system. /dev/random will block if there isn't enough entropy. |
I will probably change it to /dev/urandom because that will not block. |
@steampixel I've redid the scripts, so see if it works now on Hypriot. |
Hey. Sorry for my late response. I'am very busy at the moment :-) I followed your new little setup guide but got some error messages: ` Already up-to-date. Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...] Restart one or more containers |
I also tried checking out the repo and running the seup from there. But the error is almost the same: ` must specify at least one container source Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...] Restart one or more containers |
Hi!
First of all: Great work!
I was using pivpn for a while. Now i want to move my complete rpi infrastructure to docker. Iam a big fan of HypriotOS for rpi. (https://blog.hypriot.com/downloads/) This os allows me to run docker out of the box on my rpi. Currently iam using HypriotOS (Debian GNU/Linux 8)
Unfornatelly it does not work with your install script (curl -s -L https://bit.ly/2vpfRx9 | sudo bash).
The first thing is: hypriot is very minimalistic. For example i have to install lsof befor using your script by using "apt-get install lsof". It would be nice if your script could check if the binary exists.
The second thing is: the script seems to be hanging after i have typed in the port number.
If i have the time i will provide you more informations about the issue. But i have no idea where and how to start the debugging. Iam not so experienced in writing complex sh-scripts.
The text was updated successfully, but these errors were encountered: