Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/bin/systemctl error at start container #4

Open
Albrod opened this issue Jan 18, 2022 · 3 comments
Open

/usr/bin/systemctl error at start container #4

Albrod opened this issue Jan 18, 2022 · 3 comments

Comments

@Albrod
Copy link

Albrod commented Jan 18, 2022

Long time looking for an issabel docker image thanks for your work.
I'm having a hard time to get it to work though

I made a docker-compose.yml and im using a macvlan i already had

version: '2'
services:
  issabel:
    container_name: issabel
    image: technoexpress/issabel-pbx
    restart: unless-stopped
    hostname: issabel
    privileged: true
    ports:
      - 80:80
      - 25:25
      - 465:465
      - 2122:2122
      - 5038:5038
      - 5060:5060/tcp
      - 5060:5060/udp
      - 5061:5061/tcp
      - 5061:5061/udp
      - 8001:8001
      - 8003:8003
      - 8088:8088
      - 8089:8089
      - 9900:9900/tcp
      - 9900:9900/udp
      - 10000-10100:10000-10100/tcp
      - 10000-10100:10000-10100/udp
    volumes:
      - /mnt/lvm/docker_volumes/issabel/etc:/etc
      - /mnt/lvm/docker_volumes/issabel/var:/var
      - /mnt/lvm/docker_volumes/issabel/home:/home
    cap_add:
      - NET_ADMIN
    dns:
      - 8.8.8.8
      - 1.1.1.1
    networks:
      macvlan_local:
        ipv4_address: 192.168.0.240

networks:
  macvlan_local:
    name: macvlan_local
    external: true

I get this error after the container starts

Container issabel Creating
Container issabel Created
Attaching to issabel
issabel | Traceback (most recent call last):
issabel | File "/usr/bin/systemctl", line 4493, in
issabel | systemctl = Systemctl()
issabel | File "/usr/bin/systemctl", line 811, in init
issabel | self._user_getlogin = os_getlogin()
issabel | File "/usr/bin/systemctl", line 153, in os_getlogin
issabel | return pwd.getpwuid(os.geteuid()).pw_name
issabel | KeyError: 'getpwuid(): uid not found: 0'
issabel exited with code 1

@TheTechsTech
Copy link
Owner

First try using without docker compose.

This image using a systemd replacement python script to do control some internal systemctl stuff. Might not be compatible with that.

The image might also need a refresh/rebuild.

@Albrod
Copy link
Author

Albrod commented Jan 19, 2022

Still same errors

docker run --name issabel \
-p 25:25 -p 82:80 -p 465:465 -p 2122:2122 -p 5038:5038 \
-p 5060:5060/tcp -p 5060:5060/udp -p 5061:5061/tcp -p 5061:5061/udp \
-p 8001:8001 -p 8003:8003 -p 8088:8088 -p 8089:8089 \
-p 9900:9900/tcp -p 9900:9900/udp -p 10000-10100:10000-10100/tcp -p 10000-10100:10000-10100/udp \
-v /mnt/lvm/docker_volumes/issabel/etc:/etc \
-v /mnt/lvm/docker_volumes/issabel/var:/var \
-v /mnt/lvm/docker_volumes/issabel/home:/home \
--hostname issabel \
--restart always -d technoexpress/issabel-pbx

Also i cloned the repository and build the image but didn't finish properly

Warning: RPMDB altered outside of yum. Installing : wget-1.14-18.el7_6.1.x86_64 1/1 install-info: No such file or directory for /usr/share/info/wget.info.gz Verifying : wget-1.14-18.el7_6.1.x86_64 1/1

Installed:
wget.x86_64 0:1.14-18.el7_6.1

Complete!
warning: /var/tmp/rpm-tmp.lx069z: Header V4 DSA/SHA1 Signature, key ID 53e4e7a9: NOKEY
Retrieving http://repo.iotti.biz/CentOS/7/noarch/lux-release-7-1.noarch.rpm
Preparing... ########################################
Updating / installing...
lux-release-7-1 ########################################
The command '/bin/sh -c rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && yum install -y wget && rpm -Uvh http://repo.iotti.biz/CentOS/7/noarch/lux-release-7-1.noarch.rpm && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-LUX && wget -q http://www.webmin.com/jcameron-key.asc && rpm --import jcameron-key.asc && wget -q http://repo.issabel.org/issabel/RPM-GPG-KEY-Issabel && rpm --import RPM-GPG-KEY-Issabel && rm -f jcameron-key.asc && rm -f RPM-GPG-KEY-Issabel' returned a non-zero code: 5
The terminal process "bash '-c', 'docker build --pull --rm -f "issabel/Issabel-PBX/Dockerfile" -t issabel_prueba:latest "issabel/Issabel-PBX"'" terminated with exit code: 5.

@TheTechsTech
Copy link
Owner

Seems some of the repo 's used might have changed.

Had to update another image FreePBX for same refresh build issue.

Had to manually check each to see if direct download was possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants