Server sanity checks » History » Version 2
Olivier Bitsch, 07/06/2021 11:38 AM
1 | 2 | Olivier Bitsch | This step verifies that the server is ready to receive builds. |
---|---|---|---|
2 | 1 | Olivier Bitsch | |
3 | ## Check if Builder-CI services are up and running |
||
4 | |||
5 | 2 | Olivier Bitsch | The Builder-CI installation creates two services that should start automatically : |
6 | 1 | Olivier Bitsch | |
7 | 2 | Olivier Bitsch | * builder-ci-api: Exposed web API used to trigger pipeline and builds. |
8 | * builder-ci-worker: Listens and run builds. |
||
9 | 1 | Olivier Bitsch | |
10 | 2 | Olivier Bitsch | To check the status of both servers, use the following command: |
11 | 1 | Olivier Bitsch | |
12 | ~~~ bash |
||
13 | systemctl status builder-ci-api builder-ci-worker |
||
14 | ~~~ |
||
15 | |||
16 | 2 | Olivier Bitsch | The output should be similar to the below showing "Active: active" and no errors. |
17 | 1 | Olivier Bitsch | |
18 | ~~~ |
||
19 | ● builder-ci-api.service - Builder CI API |
||
20 | Loaded: loaded (/lib/systemd/system/builder-ci-api.service; enabled; vendor preset: enabled) |
||
21 | Active: active (running) since Mon 2021-06-21 21:23:59 CEST; 3 days ago |
||
22 | Main PID: 2314 (gunicorn3) |
||
23 | Tasks: 13 (limit: 4698) |
||
24 | Memory: 33.7M |
||
25 | CGroup: /system.slice/builder-ci-api.service |
||
26 | ├─2314 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app |
||
27 | ├─2336 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app |
||
28 | ├─2337 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app |
||
29 | ├─2345 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app |
||
30 | └─2347 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app |
||
31 | |||
32 | jun 21 21:23:59 builder systemd[1]: Started Builder CI API. |
||
33 | jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2314] [INFO] Starting gunicorn 19.9.0 |
||
34 | jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2314] [INFO] Listening at: http://127.0.0.1:5000 (2314) |
||
35 | jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2314] [INFO] Using worker: sync |
||
36 | jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2336] [INFO] Booting worker with pid: 2336 |
||
37 | jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2337] [INFO] Booting worker with pid: 2337 |
||
38 | jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2345] [INFO] Booting worker with pid: 2345 |
||
39 | jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2347] [INFO] Booting worker with pid: 2347 |
||
40 | |||
41 | ● builder-ci-worker.service - Builder CI Worker |
||
42 | Loaded: loaded (/lib/systemd/system/builder-ci-worker.service; enabled; vendor preset: enabled) |
||
43 | Active: active (running) since Mon 2021-06-21 21:23:59 CEST; 3 days ago |
||
44 | Main PID: 2343 (python3) |
||
45 | Tasks: 5 (limit: 4698) |
||
46 | Memory: 421.3M |
||
47 | CGroup: /system.slice/builder-ci-worker.service |
||
48 | └─2343 /usr/bin/python3 listener.py |
||
49 | |||
50 | jun 25 01:51:29 builder python3[2343]: 2021-06-25 01:51:29,032:WARNING:### This build already exist into DB with state success, stopping the build |
||
51 | jun 25 01:51:29 builder python3[2343]: 2021-06-25 01:51:29,033:INFO:Removing build folder |
||
52 | jun 25 01:51:29 builder python3[2343]: 2021-06-25 01:51:29,038:INFO:### Running step: notify |
||
53 | jun 25 01:51:29 builder python3[2343]: 2021-06-25 01:51:29,039:DEBUG:builder.yml not present |
||
54 | ~~~ |
||
55 | |||
56 | ## Check if API port is opened |
||
57 | |||
58 | 2 | Olivier Bitsch | Builder-CI API listens on port 5000 by default(this is hardcoded however it will soon be configured within `/etc/builder-ci/builder-ci.conf`). |
59 | 1 | Olivier Bitsch | |
60 | ~~~ |
||
61 | ss -tnl |
||
62 | ~~~ |
||
63 | |||
64 | 2 | Olivier Bitsch | Check the presence of port 5000. |
65 | 1 | Olivier Bitsch | |
66 | ~~~ |
||
67 | LISTEN 0 128 127.0.0.1:5000 0.0.0.0:* |
||
68 | ~~~ |
||
69 | |||
70 | ## Check docker images |
||
71 | |||
72 | Local docker images should be ready to use. They all start with the name "builder-*", you can simply do: |
||
73 | |||
74 | ~~~ |
||
75 | 2 | Olivier Bitsch | docker images builder-* |
76 | 1 | Olivier Bitsch | ~~~ |
77 | |||
78 | ~~~ |
||
79 | 2 | Olivier Bitsch | REPOSITORY TAG IMAGE ID CREATED SIZE |
80 | builder-npm latest a1667696a8a0 6 days ago 567MB |
||
81 | builder-ionic latest 7a5a459be1a0 6 days ago 2.2GB |
||
82 | builder-focal latest 217d0f6b42f0 6 days ago 513MB |
||
83 | builder-flutter latest ea3f0d523cae 6 days ago 4.04GB |
||
84 | builder-f34 latest 8832d10fb18f 6 days ago 890MB |
||
85 | builder-centos8 latest 866bf3f16a04 6 days ago 425MB |
||
86 | builder-centos7 latest 6f2e72ebc74c 6 days ago 446MB |
||
87 | builder-bullseye latest 4a5c04027262 6 days ago 712MB |
||
88 | 1 | Olivier Bitsch | ~~~ |