· 4 years ago · May 27, 2021, 10:28 AM
1pi@raspberrypi:~/IOTstack $ git pull && git checkout experimental && ./menu.sh
2Already up to date.
3Already on 'experimental'
4Your branch is up to date with 'origin/experimental'.
5Please enter sudo pasword if prompted
6Checking for project update
7From https://github.com/SensorsIot/IOTstack
8 * branch experimental -> FETCH_HEAD
9Project is up to date
10
11Checking Container keys... Keys file found.
12Checking Host Authorised keys... Key found in authorized_keys file.
13
14Checking Docker state...
15Checking User groups ['bluetooth', 'docker']: User in required groups.
16
17Checking menu container state... Rebuild required. All running menu containers will be restarted.
18You either recently installed or upgraded IOTstack. The menu docker images need to be rebuilt in order for the menu to run correctly. This will take about 10 minutes and is completely automatic.
19
20Spinning down container instances
21docker stop $(docker images -q --format "{{.Repository}}:{{.Tag}} {{.ID}}" | grep "iostack_api" | cut -d ' ' -f2)
22docker stop $(docker ps -q --format "{{.Image}} {{.ID}}" | grep "iostack_api" | cut -d ' ' -f2)
23docker stop $(docker ps -q --format "{{.ID}} {{.Ports}}" | grep "32128" | cut -d ' ' -f1)
24docker stop $(docker images -q --format "{{.Repository}}:{{.Tag}} {{.ID}}" | grep "iostack_wui" | cut -d ' ' -f2)
25docker stop $(docker ps -q --format "{{.Image}} {{.ID}}" | grep "iostack_wui" | cut -d ' ' -f2)
26docker stop $(docker ps -q --format "{{.ID}} {{.Ports}}" | grep "32777" | cut -d ' ' -f1)
27docker stop $(docker images -q --format "{{.Repository}}:{{.Tag}} {{.ID}}" | grep "iostack_pycli" | cut -d ' ' -f2)
28docker stop $(docker ps -q --format "{{.Image}} {{.ID}}" | grep "iostack_pycli" | cut -d ' ' -f2)
29
30Beginning menu build process now.
31
32
33...........................................................
3460 seconds passed. Still building...
35...........................................................
36120 seconds passed. Still building...
37...........................................................
38180 seconds passed. Still building...
39...........................................................
40240 seconds passed. Still building...
41...........................................................
42300 seconds passed. Still building...
43...........................................................
44360 seconds passed. Still building...
45...........................................................
46420 seconds passed. Still building...
47...........................................................
48480 seconds passed. Still building...
49...........................................................
50540 seconds passed. Still building...
51..................
52iostack_api:v0.0.1 build complete
53.........................................
54600 seconds passed. Still building...
55...........................................................
56660 seconds passed. Still building...
57...........................................................
58720 seconds passed. Still building...
59.
60
61Build timeout occured
62It's possible the container(s) just need a little more time to finish building.
63This error can occur if your system is busy running other processes while building the containers.
64Only the API and PyCLI containers need to build to run the CLI menu.
65Only the API and WUI containers need to build to view the web UI.
66You can also try rerunning the menu after waiting a short time.
67
68API Build: completed
69PyCLI Build: not completed
70WUI Build: not completed
71
72Press any key to continue Menu check completed.
73
74Spinning up menu containers...
75Build for 'iostack_api:v0.0.1' already exists. Skipping...
76Starting IOTstack API Server on port: 32128
77docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/pi/IOTstack/.internal/.internal/templates.
78See 'docker run --help'.
79React WUI production build not found.
80Building 'iostack_wui:v0.0.1'
81This may take 5 to 10 minutes.
8214: Pulling from library/node
83Digest: sha256:317c1f6bfcd0037c593cf0e1c4f6c844a81441b95603365aabb9ac1cd3bd5aef
84Status: Image is up to date for node:14
85docker.io/library/node:14
86
87unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/pi/IOTstack/.internal/.internal: no such file or directory
88
89-----------------------------------
90
91Docker build encountered an error when building 'iostack_wui:v0.0.1'.
92If this error is stating that there's no permission to read a file or directory then change the permissions or owner to one that the 'pi' user can read.
93
94Examples:
95 Update owner:
96 sudo chown -R pi /home/pi/IOTstack/.internal/.internal/
97
98 Update permissions:
99 sudo chmod -R 755 /home/pi/IOTstack/.internal/.internal/
100
101 Checking owner and permissions:
102 ls -ahl /home/pi/IOTstack/.internal/.internal/
103
104-----------------------------------
105
106Build for 'iostack_pycli:v0.0.1' already exists. Skipping...
107Starting IOTstack PyCLI instance
108docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/pi/IOTstack/.internal/.internal/saved_builds.
109See 'docker run --help'.
110pi@raspberrypi:~/IOTstack $
111