Error 500 on new Digital Ocean install


#1

Hi,

I have a new install on a Digital Ocean 1GB droplet with 2GB swap. It has been working fine while I kicked the tires, but this morning the site stopped responding with Error 500. I tried restarting with ./launcher stop app and ./launcher start app, but that resulted in “Bad Gateway” errors. I had to run ./launcher rebuild app to get it working again.

While the site was Error 500, I ran the following commands per another thread on this subject.

df -h
df -i 
free -m
top
docker info
docker version

The results follow. Can anyone offer any suggestions?

root@xyz:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            490M     0  490M   0% /dev
tmpfs           100M   11M   89M  11% /run
/dev/vda1        29G  7.7G   22G  27% /
tmpfs           497M     0  497M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           497M     0  497M   0% /sys/fs/cgroup
/dev/vda15      105M  3.4M  102M   4% /boot/efi
overlay          29G  7.7G   22G  27% /var/lib/docker/overlay2/623bc91bcd3125cef3b1f2985aa2c3aa78624180c55b69e22ffc35bac6710cf2/merged
shm              64M  4.0K   64M   1% /var/lib/docker/containers/7a0c0f331c30b7a3e900f52e193b9f2c14622e7d80433b28f48a5d7933ff2c14/shm
tmpfs           100M     0  100M   0% /run/user/0

root@xyz:~# df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
udev            125249    381  124868    1% /dev
tmpfs           127015    531  126484    1% /run
/dev/vda1      3870720 302144 3568576    8% /
tmpfs           127015      1  127014    1% /dev/shm
tmpfs           127015      3  127012    1% /run/lock
tmpfs           127015     16  126999    1% /sys/fs/cgroup
/dev/vda15           0      0       0     - /boot/efi
overlay        3870720 302144 3568576    8% /var/lib/docker/overlay2/623bc91bcd3125cef3b1f2985aa2c3aa78624180c55b69e22ffc35bac6710cf2/merged
shm             127015      2  127013    1% /var/lib/docker/containers/7a0c0f331c30b7a3e900f52e193b9f2c14622e7d80433b28f48a5d7933ff2c14/shm
tmpfs           127015      4  127011    1% /run/user/0

root@xyz:~# free -m
          total        used        free      shared  buff/cache   available
Mem:            992         647         119          29         224         157
Swap:          2047         381        1666

top - 15:31:43 up 5 days, 18:36,  1 user,  load average: 0.09, 0.09, 0.09
Tasks: 133 total,   2 running, 131 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.3 us,  1.0 sy,  0.0 ni, 98.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  1016120 total,   121000 free,   664256 used,   230864 buff/cache
KiB Swap:  2097148 total,  1706932 free,   390216 used.   160148 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND     
12765 1000      20   0   29904   3184    924 S  0.3  0.3   0:57.71 unicorn_lau+
1 root      20   0   37856   4536   3072 S  0.0  0.4   0:23.39 systemd     
2 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kthreadd    
3 root      20   0       0      0      0 R  0.0  0.0   0:11.03 ksoftirqd/0 
5 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 kworker/0:0H
7 root      20   0       0      0      0 S  0.0  0.0   3:59.52 rcu_sched   
8 root      20   0       0      0      0 S  0.0  0.0   0:00.00 rcu_bh      
9 root      rt   0       0      0      0 S  0.0  0.0   0:00.00 migration/0 
   10 root      rt   0       0      0      0 S  0.0  0.0   0:04.07 watchdog/0  
   11 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kdevtmpfs   
   12 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 netns       
   13 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 perf        
   14 root      20   0       0      0      0 S  0.0  0.0   0:02.61 khungtaskd  
   15 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 writeback   
   16 root      25   5       0      0      0 S  0.0  0.0   0:00.00 ksmd        
   17 root      39  19       0      0      0 S  0.0  0.0   0:31.54 khugepaged  
   18 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 crypto      

root@xyz:~# docker info
Containers: 1
 Running: 1
 Paused: 0
 Stopped: 0
Images: 3
Server Version: 17.11.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 992280e8e265f491f7a624ab82f3e238be086e49
runc version: 0351df1c5a66838d0c392b4ac4cf9450de844e2d
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-98-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 992.3MiB
Name: xyz
ID: EMVF:JIMY:7DQ3:CVMB:ODWR:R74W:XJ53:TFWD:6L7N:SIKR:N4MT:GZCE
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support

root@xyz:~# docker version
Client:
 Version:      17.11.0-ce
 API version:  1.34
 Go version:   go1.8.3
 Git commit:   1caf76c
 Built:        Mon Nov 20 18:37:39 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.11.0-ce
 API version:  1.34 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   1caf76c
 Built:        Mon Nov 20 18:36:09 2017
 OS/Arch:      linux/amd64
 Experimental: false

Thanks!