RC server not starting using docker-compose

Hello, I’m having an issue starting RC using docker. This is an extract on my docker-compose.yml:

  rocketchat.db:
    image: mongo:4.0
    volumes:
        - ${RC_DATA_FOLDER}:/data/db    
    restart: unless-stopped
      
  rocketchat.server:
    image: rocket.chat:0.71.1
    environment:
        - PORT=3000    
        - ROOT_URL=${RC_URL}
        - MONGO_URL=mongodb://rocketchat.db:27017/rocketchat        
    ports:
        - ${RC_PORT}:3000
    restart: unless-stopped
    depends_on:
      - rocketchat.db

This is what see on RC logs:

Updating process.env.MAIL_URL
Starting Email Intercepter...
LocalStore: store created at 
LocalStore: store created at 
LocalStore: store created at 
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Setting default file store to GridFS
Mon, 04 Mar 2019 16:52:34 GMT connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead at npm/node_modules/connect/lib/middleware/bodyParser.js:56:20
Mon, 04 Mar 2019 16:52:34 GMT connect deprecated limit: Restrict request size at location of read at npm/node_modules/connect/lib/middleware/multipart.js:86:15
Updating process.env.MAIL_URL
Using GridFS for custom sounds storage
Using GridFS for custom emoji storage
ufs: temp directory created at "/tmp/ufs"
Loaded the Apps Framework and loaded a total of 0 Apps!

Server is not starting and I’m not able to understand why. It used to work before, it stopped working after some update.

This is my docker version:
Docker version 17.06.2-ee-14, build 6345dd7

Can you possibly help me out?

Thank you very mush,
Alessandro

@ Alessandro - the server log that you posted is suggesting that the server is INDEED WORKING and in the process of starting.

Perhaps you’re running more things on your server and the startup is slower than expected? :thinking:

@sing.li Hi Sing, thank you very much for your reply. Unfortunatelly the server stays like this for ever, the log is not getting updated and I dont see the usual “Server is running” message. I have few containers running on my engine, and I have also tried to stop some of them to free some resources. But it didn’t help… Any suggestion?

Which cloud provider are you using? What size VPC? What else are you running on them? Let us know more details.

We are running RC on our premises. This is my docker engine:
Docker version 17.06.2-ee-14, build 6345dd7

RC is part of our project and it is running in the same docker network as other microservices (20+) implementing our business logic.

Here is a docker stgats for my RC server:
CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
workspace_rocketchat.server_1 0.21% 373.6MiB / 31.42GiB 1.16% 2.08GB / 22.9MB 349MB / 1.68MB 0

Here is docker inspect for RC server:
[
{
“Id”: “71d3c34fccba851a2651ad7d6e9cdf1bd8ea7398faa29548cf445b3905e8b51f”,
“Created”: “2019-03-04T16:51:10.058835281Z”,
“Path”: “node”,
“Args”: [
“main.js”
],
“State”: {
“Status”: “running”,
“Running”: true,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 17011,
“ExitCode”: 0,
“Error”: “”,
“StartedAt”: “2019-03-06T17:14:53.656531892Z”,
“FinishedAt”: “2019-03-06T17:14:53.003327824Z”
},
“Image”: “sha256:0ac37ae018732e47601bf8180749fb0adb330f9940e597366c5f843aa8d69fd5”,
“ResolvConfPath”: “/var/lib/docker/containers/71d3c34fccba851a2651ad7d6e9cdf1bd8ea7398faa29548cf445b3905e8b51f/resolv.conf”,
“HostnamePath”: “/var/lib/docker/containers/71d3c34fccba851a2651ad7d6e9cdf1bd8ea7398faa29548cf445b3905e8b51f/hostname”,
“HostsPath”: “/var/lib/docker/containers/71d3c34fccba851a2651ad7d6e9cdf1bd8ea7398faa29548cf445b3905e8b51f/hosts”,
“LogPath”: “/var/lib/docker/containers/71d3c34fccba851a2651ad7d6e9cdf1bd8ea7398faa29548cf445b3905e8b51f/71d3c34fccba851a2651ad7d6e9cdf1bd8ea7398faa29548cf445b3905e8b51f-json.log”,
“Name”: “/workspace_rocketchat.server_1”,
“RestartCount”: 0,
“Driver”: “overlay2”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“AppArmorProfile”: “”,
“ExecIDs”: null,
“HostConfig”: {
“Binds”: ,
“ContainerIDFile”: “”,
“LogConfig”: {
“Type”: “json-file”,
“Config”: {}
},
“NetworkMode”: “CRIF2-net”,
“PortBindings”: {
“3000/tcp”: [
{
“HostIp”: “”,
“HostPort”: “3000”
}
]
},
“RestartPolicy”: {
“Name”: “unless-stopped”,
“MaximumRetryCount”: 0
},
“AutoRemove”: false,
“VolumeDriver”: “”,
“VolumesFrom”: ,
“CapAdd”: null,
“CapDrop”: null,
“Dns”: null,
“DnsOptions”: null,
“DnsSearch”: null,
“ExtraHosts”: null,
“GroupAdd”: null,
“IpcMode”: “”,
“Cgroup”: “”,
“Links”: null,
“OomScoreAdj”: 0,
“PidMode”: “”,
“Privileged”: false,
“PublishAllPorts”: false,
“ReadonlyRootfs”: false,
“SecurityOpt”: null,
“UTSMode”: “”,
“UsernsMode”: “”,
“ShmSize”: 67108864,
“Runtime”: “runc”,
“ConsoleSize”: [
0,
0
],
“Isolation”: “”,
“CpuShares”: 0,
“Memory”: 0,
“NanoCpus”: 0,
“CgroupParent”: “”,
“BlkioWeight”: 0,
“BlkioWeightDevice”: null,
“BlkioDeviceReadBps”: null,
“BlkioDeviceWriteBps”: null,
“BlkioDeviceReadIOps”: null,
“BlkioDeviceWriteIOps”: null,
“CpuPeriod”: 0,
“CpuQuota”: 0,
“CpuRealtimePeriod”: 0,
“CpuRealtimeRuntime”: 0,
“CpusetCpus”: “”,
“CpusetMems”: “”,
“Devices”: null,
“DeviceCgroupRules”: null,
“DiskQuota”: 0,
“KernelMemory”: 0,
“MemoryReservation”: 0,
“MemorySwap”: 0,
“MemorySwappiness”: -1,
“OomKillDisable”: false,
“PidsLimit”: 0,
“Ulimits”: null,
“CpuCount”: 0,
“CpuPercent”: 0,
“IOMaximumIOps”: 0,
“IOMaximumBandwidth”: 0
},
“GraphDriver”: {
“Data”: {
“LowerDir”: “/var/lib/docker/overlay2/302331976d7edaf70144fb6d7832cf6987f0529e41fe335c9012d410f778fb5d-init/diff:/var/lib/docker/overlay2/eaf342f4efbf0310f0fa42fc9cc938e0608c8453e5ff0442d7e5d2ffba1e1b8c/diff:/var/lib/docker/overlay2/82bf01feddb9489376cccaeb679847365df0d84470a7bdfd1fa651bf47021e86/diff:/var/lib/docker/overlay2/3514768e8c6e6009fabeaf09240fd55b67bf37bc7f588ca6668f20704ea7e948/diff:/var/lib/docker/overlay2/94201e6bcb24a9e5780ceea4e7f7aefa43408c24ae2e4d216291e749be193b4a/diff:/var/lib/docker/overlay2/0def3f17859d93da0318064b6618911d65ae9e88e5e7c2edebf42fed0dbe5af1/diff:/var/lib/docker/overlay2/5c2426bb07595be8745efbcd7a46aa35dfbc2ba4023cb64259ab275f36d4a63d/diff:/var/lib/docker/overlay2/9d2e3b9aeb67b15e03f3c7ad4d54ed183a7ec6836c728fc0fcc468c7bc6eb6fc/diff:/var/lib/docker/overlay2/22a30a0bb14ec362e15b88e818b1cf920fabbc76444a62023643d87592b74187/diff”,
“MergedDir”: “/var/lib/docker/overlay2/302331976d7edaf70144fb6d7832cf6987f0529e41fe335c9012d410f778fb5d/merged”,
“UpperDir”: “/var/lib/docker/overlay2/302331976d7edaf70144fb6d7832cf6987f0529e41fe335c9012d410f778fb5d/diff”,
“WorkDir”: “/var/lib/docker/overlay2/302331976d7edaf70144fb6d7832cf6987f0529e41fe335c9012d410f778fb5d/work”
},
“Name”: “overlay2”
},
“Mounts”: [
{
“Type”: “volume”,
“Name”: “9a7522cfc16bd523238e9e7f3b44e40f9075c8385b84f435659a586680afd925”,
“Source”: “/var/lib/docker/volumes/9a7522cfc16bd523238e9e7f3b44e40f9075c8385b84f435659a586680afd925/_data”,
“Destination”: “/app/uploads”,
“Driver”: “local”,
“Mode”: “”,
“RW”: true,
“Propagation”: “”
}
],
“Config”: {
“Hostname”: “71d3c34fccba”,
“Domainname”: “”,
“User”: “rocketchat”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“ExposedPorts”: {
“3000/tcp”: {}
},
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“PORT=3000”,
“ROOT_URL=http://dapscredity02devl.icc.crifnet.com:3000”,
“MONGO_URL=mongodb://rocketchat.db:27017/rocketchat”,
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,
“NODE_VERSION=8.11.4”,
“YARN_VERSION=1.6.0”,
“RC_VERSION=0.71.1”,
“DEPLOY_METHOD=docker-official”,
“HOME=/tmp”,
“Accounts_AvatarStorePath=/app/uploads”
],
“Cmd”: [
“node”,
“main.js”
],
“ArgsEscaped”: true,
“Image”: “vicregistry.crifnet.com/credity/rocket.chat:0.71.1”,
“Volumes”: {
“/app/uploads”: {}
},
“WorkingDir”: “/app/bundle”,
“Entrypoint”: null,
“OnBuild”: null,
“Labels”: {
“com.docker.compose.config-hash”: “0dd43ccfc738a24a273a7bf769536e93a6b719208563c73b44dea2f40376c59a”,
“com.docker.compose.container-number”: “1”,
“com.docker.compose.oneoff”: “False”,
“com.docker.compose.project”: “workspace”,
“com.docker.compose.service”: “rocketchat.server”,
“com.docker.compose.version”: “1.21.2”,
“traefik.backend”: “rocketchat”,
“traefik.frontend.rule”: “Host: your.domain.tld”
}
},
“NetworkSettings”: {
“Bridge”: “”,
“SandboxID”: “63fd86c6f377319c3a79de32f4375a819c3c4c50633d899ac78f8065216fbf1b”,
“HairpinMode”: false,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“Ports”: {
“3000/tcp”: [
{
“HostIp”: “0.0.0.0”,
“HostPort”: “3000”
}
]
},
“SandboxKey”: “/var/run/docker/netns/63fd86c6f377”,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“EndpointID”: “”,
“Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “”,
“IPPrefixLen”: 0,
“IPv6Gateway”: “”,
“MacAddress”: “”,
“Networks”: {
“CRIF2-net”: {
“IPAMConfig”: null,
“Links”: null,
“Aliases”: [
“rocketchat.server”,
“71d3c34fccba”
],
“NetworkID”: “894c2c1a0a312dbafbdb56dbecc89fd3d2308a9a241222a9782e87193cbef12a”,
“EndpointID”: “25d4440df35f59c04404b5c1e9647a28b474d32829bcdd9e7034d37659453532”,
“Gateway”: “172.18.0.1”,
“IPAddress”: “172.18.0.17”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“MacAddress”: “02:42:ac:12:00:11”,
“DriverOpts”: null
}
}
}
}
]

RC is running on our premises. Here is my docker engine:
Docker version 17.06.2-ee-14, build 6345dd7

RC is part of our project and it is running in the same docker network as other containers implementing our business logic (20+ containers)

Here is docker stats for RC server:
CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
workspace_rocketchat.server_1 0.21% 375.2MiB / 31.42GiB 1.17% 2.13GB / 23.4MB 349MB / 1.68MB 0

Is there a way to increase the log level? Seems that the RC is stuck at some point during the startup…

Remove that container, and try to pull image 0.73.4

Unfortunately it did not work. I have removed the old container and created a new one base on 0.73.4.

Is there a way to increase logs? There are minimum requirements in terms of resources that I should take into account when starting the container?