Digital ocean - 2 apps deployment failed on the same server

Hi,

could someone tell me how would you do to deploy 2 apps on the same server using mup? My first app deployment works perfect but when I try to deploy the second I have this error

Error response from daemon: No such container: cryptarbot-frontend
docker: Error response from daemon: driver failed programming external connectivity on endpoint myapp2 (998e60614eb8cd5ccbfe91432971b80bb11dbf1913b48999205e7bb4060a20a9): Bind for 0.0.0.0:80 failed: port is already allocated.

when I run

netstat -tulpn

I have

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 10.0.3.1:53             0.0.0.0:*               LISTEN      14232/dnsmasq   
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1626/sshd       
tcp6       0      0 :::80                   :::*                    LISTEN      17005/docker-proxy
tcp6       0      0 :::22                   :::*                    LISTEN      1626/sshd       
udp        0      0 10.0.3.1:53             0.0.0.0:*                           14232/dnsmasq   
udp        0      0 0.0.0.0:67              0.0.0.0:*                           14232/dnsmasq   

I am using kadirahq/meteor-up

Thanks for your help

Here is my mup.js of the second app I try to deploy
Knowing I have roughly the same for the first app (app location and port of course different, port=3015)

module.exports = {
  servers: {
    one: {
      host: 'myhost',
      username: 'root',
      password: 'mypass',
      opts: {
          port: 22,
      },
    }
  },

  meteor: {
    name: 'myapp',
    path: '/var/www/myapp',
    port: 3016,
    docker: {
      image: 'abernix/meteord:base', 
    },
    servers: {
      one: {}
    },
    env: {
      ROOT_URL: 'http://localhost',
      MONGO_URL: 'mymongo',
      MAIL_URL:'mysmtp'
    },
    deployCheckWaitTime: 60 // default 10
  },

};

Thanks for your help and Happy New Year!

Hi,

I don’t understand, it is flagged help, what do I need to do?

Hi ibox,

Try setting PORT on env object and check that both app names are not the same.

env: {
   PORT: 3016,
   ROOT_URL: 'http://localhost',
   MONGO_URL: 'mymongo',
   MAIL_URL:'mysmtp'
}

Hi @indesign,

thanks for your help, neverthless Ii already did that. Nevermind, I use one server per app now…but it used to work :slight_smile:

I will dig deeper when I will have time