openwrt / asu

An image on demand server for OpenWrt based distributions
https://sysupgrade.openwrt.org
GNU General Public License v2.0
326 stars 82 forks source link

I can't get a server up for the first time #512

Open castillofrancodamian opened 1 year ago

castillofrancodamian commented 1 year ago
[franco@pc ~]$ sudo pip install podman-compose
[sudo] contraseña para franco: 
sudo: a password is required
[franco@pc ~]$ pip install podman-compose
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: podman-compose in /usr/lib/python3.11/site-packages (1.0.6)
Requirement already satisfied: pyyaml in ./.local/lib/python3.11/site-packages (from podman-compose) (6.0)
Requirement already satisfied: python-dotenv in ./.local/lib/python3.11/site-packages (from podman-compose) (1.0.0)
[franco@pc ~]$ sudo systemctl status podman
[sudo] contraseña para franco: 
○ podman.service - Podman API Service
     Loaded: loaded (/usr/lib/systemd/system/podman.service; disabled; preset: disabled)
     Active: inactive (dead) since Thu 2023-06-01 18:01:39 -03; 6min ago
   Duration: 5.085s
TriggeredBy: ● podman.socket
       Docs: man:podman-system-service(1)
    Process: 1662 ExecStart=/usr/bin/podman $LOGGING system service (code=exited, status=0/SUCCESS)
   Main PID: 1662 (code=exited, status=0/SUCCESS)
        CPU: 97ms

jun 01 18:01:34 pc systemd[1]: Starting Podman API Service...
jun 01 18:01:34 pc systemd[1]: Started Podman API Service.
jun 01 18:01:34 pc podman[1662]: time="2023-06-01T18:01:34-03:00" level=info msg="/usr/bin/podman filtering at log level info"
jun 01 18:01:34 pc podman[1662]: 2023-06-01 18:01:34.560527786 -0300 -03 m=+0.058812418 system refresh
jun 01 18:01:34 pc podman[1662]: time="2023-06-01T18:01:34-03:00" level=info msg="Setting parallel job count to 13"
jun 01 18:01:34 pc podman[1662]: time="2023-06-01T18:01:34-03:00" level=info msg="Using systemd socket activation to determine API endpoint"
jun 01 18:01:34 pc podman[1662]: time="2023-06-01T18:01:34-03:00" level=info msg="API service listening on \"/run/podman/podman.sock\". URI: \"/run/podman/podman.sock\>
jun 01 18:01:39 pc systemd[1]: podman.service: Deactivated successfully.

[franco@pc ~]$ sudo systemctl start podman
[franco@pc ~]$ sudo systemctl status podman
● podman.service - Podman API Service
     Loaded: loaded (/usr/lib/systemd/system/podman.service; disabled; preset: disabled)
     Active: active (running) since Thu 2023-06-01 18:08:15 -03; 1s ago
TriggeredBy: ● podman.socket
       Docs: man:podman-system-service(1)
   Main PID: 2182 (podman)
      Tasks: 9 (limit: 9144)
     Memory: 19.3M
        CPU: 87ms
     CGroup: /system.slice/podman.service
             └─2182 /usr/bin/podman --log-level=info system service

jun 01 18:08:15 pc systemd[1]: Starting Podman API Service...
jun 01 18:08:15 pc systemd[1]: Started Podman API Service.
jun 01 18:08:15 pc podman[2182]: time="2023-06-01T18:08:15-03:00" level=info msg="/usr/bin/podman filtering at log level info"
jun 01 18:08:15 pc podman[2182]: time="2023-06-01T18:08:15-03:00" level=info msg="Setting parallel job count to 13"
jun 01 18:08:15 pc podman[2182]: time="2023-06-01T18:08:15-03:00" level=info msg="Using systemd socket activation to determine API endpoint"
jun 01 18:08:15 pc podman[2182]: time="2023-06-01T18:08:15-03:00" level=info msg="API service listening on \"/run/podman/podman.sock\". URI: \"/run/podman/podman.sock\>

[franco@pc ~]$ sudo systemctl enable podman
Created symlink /etc/systemd/system/default.target.wants/podman.service → /usr/lib/systemd/system/podman.service.
[franco@pc ~]$ sudo systemctl status podman
○ podman.service - Podman API Service
     Loaded: loaded (/usr/lib/systemd/system/podman.service; enabled; preset: disabled)
     Active: inactive (dead) since Thu 2023-06-01 18:08:21 -03; 1s ago
   Duration: 5.077s
TriggeredBy: ● podman.socket
       Docs: man:podman-system-service(1)
    Process: 2182 ExecStart=/usr/bin/podman $LOGGING system service (code=exited, status=0/SUCCESS)
   Main PID: 2182 (code=exited, status=0/SUCCESS)
        CPU: 105ms

jun 01 18:08:15 pc systemd[1]: Starting Podman API Service...
jun 01 18:08:15 pc systemd[1]: Started Podman API Service.
jun 01 18:08:15 pc podman[2182]: time="2023-06-01T18:08:15-03:00" level=info msg="/usr/bin/podman filtering at log level info"
jun 01 18:08:15 pc podman[2182]: time="2023-06-01T18:08:15-03:00" level=info msg="Setting parallel job count to 13"
jun 01 18:08:15 pc podman[2182]: time="2023-06-01T18:08:15-03:00" level=info msg="Using systemd socket activation to determine API endpoint"
jun 01 18:08:15 pc podman[2182]: time="2023-06-01T18:08:15-03:00" level=info msg="API service listening on \"/run/podman/podman.sock\". URI: \"/run/podman/podman.sock\>
jun 01 18:08:21 pc systemd[1]: podman.service: Deactivated successfully.

[franco@pc ~]$ https://github.com/openwrt/asu.git^C
[franco@pc ~]$ git clone https://github.com/openwrt/asu.git
Clonando en 'asu'...
remote: Enumerating objects: 6610, done.
remote: Counting objects: 100% (1211/1211), done.
remote: Compressing objects: 100% (389/389), done.
remote: Total 6610 (delta 818), reused 1077 (delta 783), pack-reused 5399
Recibiendo objetos: 100% (6610/6610), 1.81 MiB | 3.08 MiB/s, listo.
Resolviendo deltas: 100% (4329/4329), listo.
[franco@pc ~]$ cd asu/
[franco@pc asu]$ mkdir -p ./asu-service/public
[franco@pc asu]$ podman-compose up -d
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 4.5.1
** excluding:  set()
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'localhost/aparcar/asu:latest']
Error: inspecting object: localhost/aparcar/asu:latest: image not known
podman build -f ./Containerfile -t localhost/aparcar/asu:latest ./
STEP 1/8: FROM python:3.10-slim
Resolved "python" as an alias (/etc/containers/registries.conf.d/00-shortnames.conf)
Trying to pull docker.io/library/python:3.10-slim...
Getting image source signatures
Copying blob 661be8ca6397 done  
Copying blob 05c2151a829c done  
Copying blob cf2e0f30894f done  
Copying blob f03b40093957 done  
Copying blob 94970648c551 done  
Copying config 2167e148c9 done  
Writing manifest to image destination
Storing signatures
STEP 2/8: WORKDIR /app/
--> 90d012a4c77e
STEP 3/8: RUN pip install poetry
Collecting poetry
  Downloading poetry-1.5.1-py3-none-any.whl (225 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 225.2/225.2 kB 7.0 MB/s eta 0:00:00
Collecting dulwich<0.22.0,>=0.21.2
  Downloading dulwich-0.21.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (510 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 510.1/510.1 kB 13.7 MB/s eta 0:00:00
Collecting poetry-core==1.6.1
  Downloading poetry_core-1.6.1-py3-none-any.whl (450 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 450.5/450.5 kB 14.0 MB/s eta 0:00:00
Collecting pkginfo<2.0.0,>=1.9.4
  Downloading pkginfo-1.9.6-py3-none-any.whl (30 kB)
Collecting poetry-plugin-export<2.0.0,>=1.4.0
  Downloading poetry_plugin_export-1.4.0-py3-none-any.whl (10 kB)
Collecting requests<3.0,>=2.18
  Downloading requests-2.31.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 12.3 MB/s eta 0:00:00
Collecting urllib3<2.0.0,>=1.26.0
  Downloading urllib3-1.26.16-py2.py3-none-any.whl (143 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.1/143.1 kB 13.4 MB/s eta 0:00:00
Collecting platformdirs<4.0.0,>=3.0.0
  Downloading platformdirs-3.5.1-py3-none-any.whl (15 kB)
Collecting filelock<4.0.0,>=3.8.0
  Downloading filelock-3.12.0-py3-none-any.whl (10 kB)
Collecting virtualenv<21.0.0,>=20.22.0
  Downloading virtualenv-20.23.0-py3-none-any.whl (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 13.4 MB/s eta 0:00:00
Collecting pexpect<5.0.0,>=4.7.0
  Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.0/59.0 kB 10.4 MB/s eta 0:00:00
Collecting trove-classifiers>=2022.5.19
  Downloading trove_classifiers-2023.5.24-py3-none-any.whl (13 kB)
Collecting installer<0.8.0,>=0.7.0
  Downloading installer-0.7.0-py3-none-any.whl (453 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 453.8/453.8 kB 16.6 MB/s eta 0:00:00
Collecting tomli<3.0.0,>=2.0.1
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting pyproject-hooks<2.0.0,>=1.0.0
  Downloading pyproject_hooks-1.0.0-py3-none-any.whl (9.3 kB)
Collecting shellingham<2.0,>=1.5
  Downloading shellingham-1.5.0.post1-py2.py3-none-any.whl (9.4 kB)
Collecting build<0.11.0,>=0.10.0
  Downloading build-0.10.0-py3-none-any.whl (17 kB)
Collecting cleo<3.0.0,>=2.0.0
  Downloading cleo-2.0.1-py3-none-any.whl (77 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.3/77.3 kB 20.1 MB/s eta 0:00:00
Collecting jsonschema<5.0.0,>=4.10.0
  Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.4/90.4 kB 12.4 MB/s eta 0:00:00
Collecting packaging>=20.4
  Downloading packaging-23.1-py3-none-any.whl (48 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.9/48.9 kB 6.6 MB/s eta 0:00:00
Collecting keyring<24.0.0,>=23.9.0
  Downloading keyring-23.13.1-py3-none-any.whl (37 kB)
Collecting requests-toolbelt<2,>=0.9.1
  Downloading requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.5/54.5 kB 5.8 MB/s eta 0:00:00
Collecting crashtest<0.5.0,>=0.4.1
  Downloading crashtest-0.4.1-py3-none-any.whl (7.6 kB)
Collecting cachecontrol[filecache]<0.13.0,>=0.12.9
  Downloading CacheControl-0.12.11-py2.py3-none-any.whl (21 kB)
Collecting lockfile<0.13.0,>=0.12.2
  Downloading lockfile-0.12.2-py2.py3-none-any.whl (13 kB)
Collecting tomlkit<1.0.0,>=0.11.4
  Downloading tomlkit-0.11.8-py3-none-any.whl (35 kB)
Collecting html5lib<2.0,>=1.0
  Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.2/112.2 kB 14.3 MB/s eta 0:00:00
Collecting msgpack>=0.5.2
  Downloading msgpack-1.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (316 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 316.8/316.8 kB 17.7 MB/s eta 0:00:00
Collecting rapidfuzz<3.0.0,>=2.2.0
  Downloading rapidfuzz-2.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 13.2 MB/s eta 0:00:00
Collecting webencodings
  Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting six>=1.9
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting attrs>=17.4.0
  Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 21.2 MB/s eta 0:00:00
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
  Downloading pyrsistent-0.19.3-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.5/57.5 kB 8.8 MB/s eta 0:00:00
Collecting jeepney>=0.4.2
  Downloading jeepney-0.8.0-py3-none-any.whl (48 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.4/48.4 kB 11.1 MB/s eta 0:00:00
Collecting importlib-metadata>=4.11.4
  Downloading importlib_metadata-6.6.0-py3-none-any.whl (22 kB)
Collecting jaraco.classes
  Downloading jaraco.classes-3.2.3-py3-none-any.whl (6.0 kB)
Collecting SecretStorage>=3.2
  Downloading SecretStorage-3.3.3-py3-none-any.whl (15 kB)
Collecting ptyprocess>=0.5
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting charset-normalizer<4,>=2
  Downloading charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.3/199.3 kB 12.8 MB/s eta 0:00:00
Collecting idna<4,>=2.5
  Downloading idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 7.1 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
  Downloading certifi-2023.5.7-py3-none-any.whl (156 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.0/157.0 kB 11.8 MB/s eta 0:00:00
Collecting distlib<1,>=0.3.6
  Downloading distlib-0.3.6-py2.py3-none-any.whl (468 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.5/468.5 kB 13.8 MB/s eta 0:00:00
Collecting zipp>=0.5
  Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)
Collecting cryptography>=2.0
  Downloading cryptography-41.0.1-cp37-abi3-manylinux_2_28_x86_64.whl (4.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 13.1 MB/s eta 0:00:00
Collecting more-itertools
  Downloading more_itertools-9.1.0-py3-none-any.whl (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.2/54.2 kB 4.6 MB/s eta 0:00:00
Collecting cffi>=1.12
  Downloading cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 441.8/441.8 kB 14.1 MB/s eta 0:00:00
Collecting pycparser
  Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 11.7 MB/s eta 0:00:00
Installing collected packages: webencodings, trove-classifiers, ptyprocess, msgpack, lockfile, distlib, zipp, urllib3, tomlkit, tomli, six, shellingham, rapidfuzz, pyrsistent, pycparser, poetry-core, platformdirs, pkginfo, pexpect, packaging, more-itertools, jeepney, installer, idna, filelock, crashtest, charset-normalizer, certifi, attrs, virtualenv, requests, pyproject-hooks, jsonschema, jaraco.classes, importlib-metadata, html5lib, dulwich, cleo, cffi, requests-toolbelt, cryptography, cachecontrol, build, SecretStorage, keyring, poetry-plugin-export, poetry
Successfully installed SecretStorage-3.3.3 attrs-23.1.0 build-0.10.0 cachecontrol-0.12.11 certifi-2023.5.7 cffi-1.15.1 charset-normalizer-3.1.0 cleo-2.0.1 crashtest-0.4.1 cryptography-41.0.1 distlib-0.3.6 dulwich-0.21.5 filelock-3.12.0 html5lib-1.1 idna-3.4 importlib-metadata-6.6.0 installer-0.7.0 jaraco.classes-3.2.3 jeepney-0.8.0 jsonschema-4.17.3 keyring-23.13.1 lockfile-0.12.2 more-itertools-9.1.0 msgpack-1.0.5 packaging-23.1 pexpect-4.8.0 pkginfo-1.9.6 platformdirs-3.5.1 poetry-1.5.1 poetry-core-1.6.1 poetry-plugin-export-1.4.0 ptyprocess-0.7.0 pycparser-2.21 pyproject-hooks-1.0.0 pyrsistent-0.19.3 rapidfuzz-2.15.1 requests-2.31.0 requests-toolbelt-1.0.0 shellingham-1.5.0.post1 six-1.16.0 tomli-2.0.1 tomlkit-0.11.8 trove-classifiers-2023.5.24 urllib3-1.26.16 virtualenv-20.23.0 webencodings-0.5.1 zipp-3.15.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
--> 05974b38cc5a
STEP 4/8: COPY poetry.lock pyproject.toml ./
--> 468abb99add8
STEP 5/8: RUN poetry config virtualenvs.create false     && poetry install --only main --no-interaction --no-ansi
Skipping virtualenv creation, as specified in config file.
Installing dependencies from lock file

Package operations: 20 installs, 2 updates, 0 removals

  • Installing markupsafe (2.1.2)
  • Installing async-timeout (4.0.2)
  • Updating charset-normalizer (3.1.0 -> 2.1.1)
  • Installing click (8.1.3)
  • Installing itsdangerous (2.1.2)
  • Installing jinja2 (3.1.2)
  • Installing pyyaml (6.0)
  • Installing werkzeug (2.2.3)
  • Installing clickclick (20.10.2)
  • Installing flask (2.2.5)
  • Installing inflection (0.5.1)
  • Installing pyxdg (0.28)
  • Installing redis (4.5.5)
  • Updating setuptools (65.5.1 -> 67.8.0)
  • Installing swagger-ui-bundle (0.0.9)
  • Installing connexion (2.14.2)
  • Installing flask-cors (3.0.10)
  • Installing podman (4.5.0)
  • Installing prometheus-client (0.13.1)
  • Installing pynacl (1.5.0)
  • Installing gunicorn (20.1.0)
  • Installing rq (1.15.0)
--> 7b372d8a5f18
STEP 6/8: COPY ./asu/ ./asu/
--> cc372c7acfe9
STEP 7/8: COPY ./misc/config.py /etc/asu/config.py
--> 0a71fb1dd0d8
STEP 8/8: CMD gunicorn 'asu.asu:create_app()' --bind 0.0.0.0:8000
COMMIT localhost/aparcar/asu:latest
--> 179af4bbc2b8
Successfully tagged localhost/aparcar/asu:latest
179af4bbc2b809f2092fa6f50c710a5c41d8c22813f859f4f6c1b37251e584b4
exit code: 0
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'localhost/aparcar/asu:latest']
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'localhost/aparcar/asu:latest']
['podman', 'ps', '--filter', 'label=io.podman.compose.project=asu', '-a', '--format', '{{ index .Labels "io.podman.compose.config-hash"}}']
podman volume inspect asu_podman-sock || podman volume create asu_podman-sock
['podman', 'volume', 'inspect', 'asu_podman-sock']
Error: inspecting object: no such volume asu_podman-sock
['podman', 'volume', 'create', '--label', 'io.podman.compose.project=asu', '--label', 'com.docker.compose.project=asu', 'asu_podman-sock']
['podman', 'volume', 'inspect', 'asu_podman-sock']
['podman', 'network', 'exists', 'asu_default']
['podman', 'network', 'create', '--label', 'io.podman.compose.project=asu', '--label', 'com.docker.compose.project=asu', 'asu_default']
['podman', 'network', 'exists', 'asu_default']
podman run --name=asu_podman_1 -d --label io.podman.compose.config-hash=9b8a2dc14d126fa6d8dae3d371aa1ab12abf29003ebc551e48f4fb53876ba56a --label io.podman.compose.project=asu --label io.podman.compose.version=1.0.6 --label PODMAN_SYSTEMD_UNIT=podman-compose@asu.service --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/home/franco/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=podman -v asu_podman-sock:/tmp/socket/ --net asu_default --network-alias podman -u podman quay.io/podman/stable sh -c mkdir -p /tmp/socket && podman system service --time=0 unix:///tmp/socket/podman.sock
Trying to pull quay.io/podman/stable:latest...
Getting image source signatures
Copying blob ff4774e81a0c done  
Copying blob de924d42b91d done  
Copying blob 148012cfef91 done  
Copying blob cbcd50a19273 done  
Copying blob f6e77783d411 done  
Copying blob 26233c45181c done  
Copying blob fa263a3e0765 done  
Copying blob e4b262f3d4c2 done  
Copying config 7860f6d83f done  
Writing manifest to image destination
Storing signatures
WARN[0030] aardvark-dns binary not found, container dns will not be enabled 
02931d8dbd039c4fe7289e2815eac86b924b5d3cfcedc7337e7b796bdc42a5a8
exit code: 0
podman volume inspect asu_redis || podman volume create asu_redis
['podman', 'volume', 'inspect', 'asu_redis']
Error: inspecting object: no such volume asu_redis
['podman', 'volume', 'create', '--label', 'io.podman.compose.project=asu', '--label', 'com.docker.compose.project=asu', 'asu_redis']
['podman', 'volume', 'inspect', 'asu_redis']
['podman', 'network', 'exists', 'asu_default']
podman run --name=asu_redis_1 -d --label io.podman.compose.config-hash=9b8a2dc14d126fa6d8dae3d371aa1ab12abf29003ebc551e48f4fb53876ba56a --label io.podman.compose.project=asu --label io.podman.compose.version=1.0.6 --label PODMAN_SYSTEMD_UNIT=podman-compose@asu.service --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/home/franco/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=redis -v asu_redis:/data/:rw --net asu_default --network-alias redis docker.io/redis:alpine
Trying to pull docker.io/library/redis:alpine...
Getting image source signatures
Copying blob 4ea079d1c234 done  
Copying blob 13ce36f68149 done  
Copying blob 8a49fdb3b6a5 done  
Copying blob 2121af5b35c8 done  
Copying blob d0786890719f done  
Copying blob e0001f8e7e31 done  
Copying config f37f9f6788 done  
Writing manifest to image destination
Storing signatures
WARN[0004] aardvark-dns binary not found, container dns will not be enabled 
3449289bd314d5ec6c319d45cac0451ef4009a8cf1b05b67a60df8f4a92edee8
exit code: 0
['podman', 'network', 'exists', 'asu_default']
podman run --name=asu_server_1 -d --requires=asu_redis_1 --label io.podman.compose.config-hash=9b8a2dc14d126fa6d8dae3d371aa1ab12abf29003ebc551e48f4fb53876ba56a --label io.podman.compose.project=asu --label io.podman.compose.version=1.0.6 --label PODMAN_SYSTEMD_UNIT=podman-compose@asu.service --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/home/franco/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=server -e REDIS_URL=redis://redis/ -v /home/franco/asu/asu-service/public:/app/public/:rw --net asu_default --network-alias server -p 127.0.0.1:8000:8000 localhost/aparcar/asu:latest
WARN[0000] aardvark-dns binary not found, container dns will not be enabled 
3149cc6ae738e486492f61812076c70fa72b404123f4e8dc453a2c9d32246a90
exit code: 0
podman volume inspect asu_podman-sock || podman volume create asu_podman-sock
['podman', 'volume', 'inspect', 'asu_podman-sock']
['podman', 'network', 'exists', 'asu_default']
podman run --name=asu_worker_1 -d --requires=asu_redis_1,asu_podman_1 --label io.podman.compose.config-hash=9b8a2dc14d126fa6d8dae3d371aa1ab12abf29003ebc551e48f4fb53876ba56a --label io.podman.compose.project=asu --label io.podman.compose.version=1.0.6 --label PODMAN_SYSTEMD_UNIT=podman-compose@asu.service --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/home/franco/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=worker -e CONTAINER_HOST=unix:///tmp/socket/podman.sock -e REDIS_URL=redis://redis/ -v /home/franco/asu/asu-service/public:/app/public/:rw -v asu_podman-sock:/tmp/socket/:rw --net asu_default --network-alias worker localhost/aparcar/asu:latest rqworker --url redis://redis
WARN[0001] aardvark-dns binary not found, container dns will not be enabled 
39be47bd616ad28522a85c6106624695647d430599346943f81fa77d718afbd7
exit code: 0
podman volume inspect asu_podman-sock || podman volume create asu_podman-sock
['podman', 'volume', 'inspect', 'asu_podman-sock']
['podman', 'network', 'exists', 'asu_default']
podman run --name=asu_worker2_1 -d --requires=asu_redis_1,asu_podman_1 --label io.podman.compose.config-hash=9b8a2dc14d126fa6d8dae3d371aa1ab12abf29003ebc551e48f4fb53876ba56a --label io.podman.compose.project=asu --label io.podman.compose.version=1.0.6 --label PODMAN_SYSTEMD_UNIT=podman-compose@asu.service --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/home/franco/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=worker2 -e CONTAINER_HOST=unix:///tmp/socket/podman.sock -e REDIS_URL=redis://redis/ -v /home/franco/asu/asu-service/public:/app/public/:rw -v asu_podman-sock:/tmp/socket/:rw --net asu_default --network-alias worker2 localhost/aparcar/asu:latest rqworker --url redis://redis
WARN[0000] aardvark-dns binary not found, container dns will not be enabled 
5982243b393f25e4999faca183b6cb4c8b0603841fa53892c5c6d1f3286ff891
exit code: 0
[franco@pc asu]$ podman ps -a
CONTAINER ID  IMAGE                           COMMAND               CREATED        STATUS                    PORTS                     NAMES
02931d8dbd03  quay.io/podman/stable:latest    sh -c mkdir -p /t...  2 minutes ago  Up 2 minutes                                        asu_podman_1
3449289bd314  docker.io/library/redis:alpine  redis-server          2 minutes ago  Up 2 minutes                                        asu_redis_1
3149cc6ae738  localhost/aparcar/asu:latest    /bin/sh -c gunico...  2 minutes ago  Exited (3) 2 minutes ago  127.0.0.1:8000->8000/tcp  asu_server_1
39be47bd616a  localhost/aparcar/asu:latest    rqworker --url re...  2 minutes ago  Exited (1) 2 minutes ago                            asu_worker_1
5982243b393f  localhost/aparcar/asu:latest    rqworker --url re...  2 minutes ago  Exited (1) 2 minutes ago                            asu_worker2_1
aparcar commented 1 year ago
asu on  main [$?] is 📦 v0.0.0 via 🐍 v3.11.3 on ☁️  mail@aparcar.org 
❯ podman-compose up
['podman', '--version', '']
using podman version: 4.5.0
** excluding:  set()
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'localhost/aparcar/asu:latest']
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'localhost/aparcar/asu:latest']
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'localhost/aparcar/asu:latest']
podman volume inspect asu_podman-sock || podman volume create asu_podman-sock
['podman', 'volume', 'inspect', 'asu_podman-sock']
['podman', 'network', 'exists', 'asu_default']
podman create --name=asu_podman_1 --label io.podman.compose.config-hash=123 --label io.podman.compose.project=asu --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/Users/user/src/openwrt/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=podman -v asu_podman-sock:/tmp/socket/ --net asu_default --network-alias podman -u podman quay.io/podman/stable sh -c mkdir -p /tmp/socket && podman system service --time=0 unix:///tmp/socket/podman.sock
Error: creating container storage: the container name "asu_podman_1" is already in use by fa885946636392fe0c7b577532c23b23a4dfccefe0d1c846addc15b5241c61e5. You have to remove that container to be able to reuse that name: that name is already in use
exit code: 125
podman volume inspect asu_redis || podman volume create asu_redis
['podman', 'volume', 'inspect', 'asu_redis']
['podman', 'network', 'exists', 'asu_default']
podman create --name=asu_redis_1 --label io.podman.compose.config-hash=123 --label io.podman.compose.project=asu --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/Users/user/src/openwrt/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=redis -v asu_redis:/data/:rw --net asu_default --network-alias redis docker.io/redis:alpine
Error: creating container storage: the container name "asu_redis_1" is already in use by 3d2bd1a1eea834b7e264218598887a33de4bc4676ab76f5642f1196cec5f02a9. You have to remove that container to be able to reuse that name: that name is already in use
exit code: 125
['podman', 'network', 'exists', 'asu_default']
podman create --name=asu_server_1 --label io.podman.compose.config-hash=123 --label io.podman.compose.project=asu --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/Users/user/src/openwrt/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=server -e REDIS_URL=redis://redis/ -v /Users/user/src/openwrt/asu/asu-service/public:/app/public/:rw --net asu_default --network-alias server -p 127.0.0.1:8000:8000 localhost/aparcar/asu:latest
Error: creating container storage: the container name "asu_server_1" is already in use by 92c7401b590f27661991d94c2125746a6ce0bdc00fc526e2a03dd546b69a8583. You have to remove that container to be able to reuse that name: that name is already in use
exit code: 125
podman volume inspect asu_podman-sock || podman volume create asu_podman-sock
['podman', 'volume', 'inspect', 'asu_podman-sock']
['podman', 'network', 'exists', 'asu_default']
podman create --name=asu_worker_1 --label io.podman.compose.config-hash=123 --label io.podman.compose.project=asu --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/Users/user/src/openwrt/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=worker -e CONTAINER_HOST=unix:///tmp/socket/podman.sock -e REDIS_URL=redis://redis/ -v /Users/user/src/openwrt/asu/asu-service/public:/app/public/:rw -v asu_podman-sock:/tmp/socket/:rw --net asu_default --network-alias worker localhost/aparcar/asu:latest rqworker --url redis://redis
Error: creating container storage: the container name "asu_worker_1" is already in use by fbd05219ed9b6752b493828b9997038eb1c91307a47b8c58aa3ef81381d48f21. You have to remove that container to be able to reuse that name: that name is already in use
exit code: 125
podman volume inspect asu_podman-sock || podman volume create asu_podman-sock
['podman', 'volume', 'inspect', 'asu_podman-sock']
['podman', 'network', 'exists', 'asu_default']
podman create --name=asu_worker2_1 --label io.podman.compose.config-hash=123 --label io.podman.compose.project=asu --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=asu --label com.docker.compose.project.working_dir=/Users/user/src/openwrt/asu --label com.docker.compose.project.config_files=podman-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=worker2 -e CONTAINER_HOST=unix:///tmp/socket/podman.sock -e REDIS_URL=redis://redis/ -v /Users/user/src/openwrt/asu/asu-service/public:/app/public/:rw -v asu_podman-sock:/tmp/socket/:rw --net asu_default --network-alias worker2 localhost/aparcar/asu:latest rqworker --url redis://redis
Error: creating container storage: the container name "asu_worker2_1" is already in use by 5ea68c5a794599862e65552fceb64c3a6c751482bd1028c32898b8b751bdc749. You have to remove that container to be able to reuse that name: that name is already in use
exit code: 125
podman start -a asu_podman_1
podman start -a asu_redis_1
1:C 04 Jun 2023 19:20:48.491 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 04 Jun 2023 19:20:48.491 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 04 Jun 2023 19:20:48.491 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 04 Jun 2023 19:20:48.491 * monotonic clock: POSIX clock_gettime
1:M 04 Jun 2023 19:20:48.492 * Running mode=standalone, port=6379.
1:M 04 Jun 2023 19:20:48.492 # Server initialized
1:M 04 Jun 2023 19:20:48.492 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 04 Jun 2023 19:20:48.494 * Loading RDB produced by version 7.0.11
1:M 04 Jun 2023 19:20:48.494 * RDB age 69 seconds
1:M 04 Jun 2023 19:20:48.494 * RDB memory usage when created 1.34 Mb
1:M 04 Jun 2023 19:20:48.494 * Done loading RDB, keys loaded: 4, keys expired: 1.
1:M 04 Jun 2023 19:20:48.494 * DB loaded from disk: 0.000 seconds
1:M 04 Jun 2023 19:20:48.494 * Ready to accept connections
podman start -a asu_server_1
[2023-06-04 19:20:49 +0000] [2] [INFO] Starting gunicorn 20.1.0
[2023-06-04 19:20:49 +0000] [2] [INFO] Listening at: http://0.0.0.0:8000 (2)
[2023-06-04 19:20:49 +0000] [2] [INFO] Using worker: sync
[2023-06-04 19:20:49 +0000] [3] [INFO] Booting worker with pid: 3
podman start -a asu_worker_1
19:20:50 Worker rq:worker:71a5df14ce3b47bd9c53f9de245757e6 started with PID 1, version 1.15.0
19:20:50 Subscribing to channel rq:pubsub:71a5df14ce3b47bd9c53f9de245757e6
19:20:50 *** Listening on default...
19:20:50 default: asu.janitor.update({'JSON_PATH': PosixPath('/app/public/json/v1'), 'BRANCHES': {'22.03': {'ena...) (9fc6260a-66aa-4654-9c09-a28ca3c0ad52)
podman start -a asu_worker2_1
19:20:51 Worker rq:worker:2290e7b8c6ca429f92e1a13eb4c94269 started with PID 1, version 1.15.0
19:20:51 Subscribing to channel rq:pubsub:2290e7b8c6ca429f92e1a13eb4c94269
19:20:51 *** Listening on default...

Works for me. Could you please try the latest commit and make sure that your containers can actually write to the folder?