Project

General

Profile

Actions

Server sanity checks » History » Revision 1

Revision 1/2 | Next »
Olivier Bitsch, 06/25/2021 10:57 AM


This step permits to check that your server is ready to receive builds.

Check if Builder-CI services are up and running

As soon as Debian packages are installed, two services should be started automatically :

  • builder-ci-api : Exposed web API used to trigger pipeline and builds.
  • builder-ci-worker : Listens and run builds.

To check status of both server, just use the following command:

systemctl status builder-ci-api builder-ci-worker

You should the similar output

● builder-ci-api.service - Builder CI API
   Loaded: loaded (/lib/systemd/system/builder-ci-api.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-06-21 21:23:59 CEST; 3 days ago
 Main PID: 2314 (gunicorn3)
    Tasks: 13 (limit: 4698)
   Memory: 33.7M
   CGroup: /system.slice/builder-ci-api.service
           ├─2314 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app
           ├─2336 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app
           ├─2337 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app
           ├─2345 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app
           └─2347 /usr/bin/python3 /usr/bin/gunicorn3 --workers 4 --bind 127.0.0.1:5000 wsgi:app

jun 21 21:23:59 builder systemd[1]: Started Builder CI API.
jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2314] [INFO] Starting gunicorn 19.9.0
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)
jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2314] [INFO] Using worker: sync
jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2336] [INFO] Booting worker with pid: 2336
jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2337] [INFO] Booting worker with pid: 2337
jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2345] [INFO] Booting worker with pid: 2345
jun 21 21:23:59 builder gunicorn3[2314]: [2021-06-21 21:23:59 +0200] [2347] [INFO] Booting worker with pid: 2347

● builder-ci-worker.service - Builder CI Worker
   Loaded: loaded (/lib/systemd/system/builder-ci-worker.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-06-21 21:23:59 CEST; 3 days ago
 Main PID: 2343 (python3)
    Tasks: 5 (limit: 4698)
   Memory: 421.3M
   CGroup: /system.slice/builder-ci-worker.service
           └─2343 /usr/bin/python3 listener.py

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
jun 25 01:51:29 builder python3[2343]: 2021-06-25 01:51:29,033:INFO:Removing build folder
jun 25 01:51:29 builder python3[2343]: 2021-06-25 01:51:29,038:INFO:### Running step: notify
jun 25 01:51:29 builder python3[2343]: 2021-06-25 01:51:29,039:DEBUG:builder.yml not present

Check if API port is opened

Builder-CI API is listening on port 5000 by default. This is now hard coded, but will be soon configurable into /etc/builder-ci/builder-ci.conf.

ss -tnl

And check the presence of port 5000.

LISTEN        0             128                       127.0.0.1:5000                       0.0.0.0:*

Check docker images

Local docker images should be ready to use. They all start with the name "builder-*", you can simply do:

docker images

Some base images should be present as well.

REPOSITORY         TAG        IMAGE ID       CREATED        SIZE
builder-bullseye   latest     bddfdcdb75f7   3 days ago     725MB
builder-focal      latest     246411c9c854   8 days ago     496MB
builder-npm        latest     2f3118f1cb00   9 days ago     567MB
builder-ionic      latest     8c2862ead175   9 days ago     2.2GB
builder-flutter    latest     2de0b0442067   9 days ago     4.04GB
builder-centos8    latest     c516c5be1fb1   9 days ago     425MB
builder-centos7    latest     38544ac09758   9 days ago     446MB
debian             9          acf04b8ccc37   6 weeks ago    101MB
debian             10         4a7a1f401734   6 weeks ago    114MB
debian             bullseye   a44283d28873   6 weeks ago    124MB
ubuntu             focal      7e0aa2d69a15   2 months ago   72.7MB
centos             centos8    300e315adb2f   6 months ago   209MB
centos             centos7    8652b9f0cb4c   7 months ago   204MB

Updated by Olivier Bitsch almost 3 years ago · 1 revisions