merchantprotocol / poste

0 stars 0 forks source link

Error starting userland proxy: listen tcp4 0.0.0.0:4190: bind: address already in use #1

Open philgin opened 2 years ago

philgin commented 2 years ago

I followed the instructions from here (Step 5) and I got this error.

sudo curl -L "https://raw.githubusercontent.com/merchantprotocol/poste/main/install" | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1796  100  1796    0     0   109k      0 --:--:-- --:--:-- --:--:--  109k
+ echo 'Installing Docker'
Installing Docker
+ sudo apt-get remove docker docker-engine docker.io containerd runc -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'docker-engine' is not installed, so not removed
Package 'docker' is not installed, so not removed
Package 'containerd' is not installed, so not removed
Package 'runc' is not installed, so not removed
Package 'docker.io' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
+ sudo apt-get update -y
Hit:1 http://asi-fs-l.contabo.net/ubuntu focal InRelease
Hit:2 http://asi-fs-l.contabo.net/ubuntu focal-updates InRelease               
Hit:3 http://asi-fs-l.contabo.net/ubuntu focal-backports InRelease             
Hit:4 http://autoinstall.plesk.com/PMM_0.1.11 focal InRelease                  
Hit:5 http://autoinstall.plesk.com/pool/PSA_18.0.44_9009 focal InRelease       
Hit:6 http://autoinstall.plesk.com/PHP74_17 focal InRelease                    
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease               
Hit:8 http://autoinstall.plesk.com/PHP80_17 focal InRelease                    
Hit:9 https://download.docker.com/linux/ubuntu focal InRelease                 
Reading package lists... Done                        
+ sudo apt-get install -y ca-certificates curl gnupg lsb-release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu2).
ca-certificates is already the newest version (20210119~20.04.2).
curl is already the newest version (7.68.0-1ubuntu2.11).
gnupg is already the newest version (2.2.19-3ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
+ rm -f /usr/share/keyrings/docker-archive-keyring.gpg
+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg
+ sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
+ sudo tee /etc/apt/sources.list.d/docker.list
++ dpkg --print-architecture
++ lsb_release -cs
+ echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu    focal stable'
+ sudo apt-get update -y
Hit:1 http://asi-fs-l.contabo.net/ubuntu focal InRelease
Hit:2 http://asi-fs-l.contabo.net/ubuntu focal-updates InRelease               
Hit:3 http://asi-fs-l.contabo.net/ubuntu focal-backports InRelease             
Hit:4 http://autoinstall.plesk.com/PMM_0.1.11 focal InRelease                  
Hit:5 https://download.docker.com/linux/ubuntu focal InRelease                 
Hit:6 http://autoinstall.plesk.com/pool/PSA_18.0.44_9009 focal InRelease
Hit:7 http://autoinstall.plesk.com/PHP74_17 focal InRelease
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:9 http://autoinstall.plesk.com/PHP80_17 focal InRelease
Reading package lists... Done
+ sudo apt-get install -y docker-ce docker-ce-cli containerd.io git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.25.1-1ubuntu3.4).
containerd.io is already the newest version (1.6.6-1).
docker-ce-cli is already the newest version (5:20.10.17~3-0~ubuntu-focal).
docker-ce is already the newest version (5:20.10.17~3-0~ubuntu-focal).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
+ sudo groupadd docker
groupadd: group 'docker' already exists
+ sudo usermod -aG docker root
+ sudo systemctl enable docker.service
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
+ sudo systemctl enable containerd.service
+ sudo systemctl start docker.service
+ sudo systemctl start containerd.service
+ echo 'Installing Docker-Compose'
Installing Docker-Compose
++ uname -s
++ uname -m
+ sudo curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 12.1M  100 12.1M    0     0  17.2M      0 --:--:-- --:--:-- --:--:-- 17.2M
+ sudo chmod +x /usr/local/bin/docker-compose
+ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
ln: failed to create symbolic link '/usr/bin/docker-compose': File exists
+ docker-compose --version
docker-compose version 1.29.2, build 5becea4c
+ echo 'Installing Poste'
Installing Poste
+ git clone https://github.com/merchantprotocol/poste.git
fatal: destination path 'poste' already exists and is not an empty directory.
+ cd poste
+ docker-compose up -d
Starting mailserver ... 
Starting mailserver ... error

ERROR: for mailserver  Cannot start service mailserver: driver failed programming external connectivity on endpoint mailserver (-------------): Error starting userland proxy: listen tcp4 0.0.0.0:4190: bind: address already in use

ERROR: for mailserver  Cannot start service mailserver: driver failed programming external connectivity on endpoint mailserver (-----------------): Error starting userland proxy: listen tcp4 0.0.0.0:4190: bind: address already in use
ERROR: Encountered errors while bringing up the project.
+ echo 'Waiting for Poste container to boot up...'
Waiting for Poste container to boot up...
+ sleep 60
++ hostname -I
++ cut -f1 '-d '
+ IP=x.x.x.x
+ echo 'You can now access your Poste Install http://x.x.x.x/admin/install/server'
You can now access your Poste Install http://x.x.x.x/admin/install/server
philgin commented 2 years ago

By the way, I chose to install plex from the recommended tools on the guide.

A workaround for this issue is much appreciated. Thank you