I went ahead and tried to update my RPI with the new docker stuff, followed the instructions and flashed my sd-card with hypriot. I´ve got three issues, I think they might be connected.
I´ve only got brewpi-data in my home-folder, no brewpi-tools… It´s supposed to be included with the docker I understand.
Neither portianer nor dockerui will work, it only shows a 404 not found page at port 9000.
I can’t get wifi to work… The setup of the photon via Particle app on IOS goes as planned, but the RPI cannot connect to the Photon. stderr shows either one of the two below message:
“Could not open port socket://192.168.1.170:6666: [Errno 111] Connection refused”
“Could not open port socket://192.168.1.170:6666: [Errno 113] No route to host”
Re-deploying the docker with USB-interface works fine though, so my beer is in good hands
I also only have brewpi-data and everything is working fine. It is my understanding that you end up with different directories if you do the Docker install. This might be one of them.
Are you looking at the list of containers at IP:9000 and trying to click on the IP link for the brewpi and portainer containers? If so, that is a known issue. You have to click on “brewpi” then click on “console”.
Try unplugging the Brewpi for 30 seconds and plug it back in. I recently I had an issue with the rest of my network that seemed to cause the same messages. When I rebooted the Brewpi it came online.
In the latest docker image, BrewPi tools is installed in the home directory inside the container.
The container creates symlinks to the pirate users home directory to store data outside of the container so the container can be destroyed en created without losing data.
To access brewpi-tools or the /home/brewpi/utils dir, you first have to enter the container. This can be done with the portainer web interface by going to the BrewPi container and click console and connect.
Ok, managed to get portainer to work, for me to enter console in portioner I have to start the regular brewpi docker image. When I do, and run the dfu-docker it returns the below:
root@9100b99244d6:/home/brewpi# docker run -it --name brewpi-dfu --privileged -v ~/brewpi-data:/data --rm brewpi/brewpi-raspbian python util
s/flashDfu.py --tag=0.5.3 --noreset
bash: docker: command not found
If I run the DFU-docker in normal SSH (like the wiki page says) it returns the below:
$ docker run -it --name brewpi-dfu --privileged -v ~/brewpi-data:/data --rm brewpi/brewpi-raspbian python utils/flashDfu.py --tag=0.5.3 --noreset
Persistent files already present
Will try to download release '0.5.3’
dfu-util version 0.8 found installed on system.
Detecting DFU devices
Found 1 devices: [‘2b04:d006’]
Device identified as Particle Photon
Downloading release 0.5.3
tag ‘0.5.3’ not found
Traceback (most recent call last):
File “utils/flashDfu.py”, line 264, in
binFile = releases.getBin(tag, [device_type, ‘brewpi’, ‘.bin’])
File “/home/brewpi/utils/gitHubReleases.py”, line 88, in getBin
downloadUrl = self.getBinUrl(tag, wordsInFileName)
File “/home/brewpi/utils/gitHubReleases.py”, line 69, in getBinUrl
AllUrls = (asset[“browser_download_url”] for asset in release[“assets”])
TypeError: ‘NoneType’ object has no attribute ‘getitem’