Last active
August 29, 2015 14:27
-
-
Save vacri/8d72e2ceb26fadf8f0dc to your computer and use it in GitHub Desktop.
Kong unprivileged user destroys pidfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paul@srv-test-1a:~$ kong version | |
Kong version: 0.4.1 | |
paul@srv-test-1a:~$ sudo kong start | |
[INFO] Using configuration: /etc/kong/kong.yml | |
[INFO] Kong version.......0.4.1 | |
Proxy HTTP port....8000 | |
Proxy HTTPS port...8443 | |
Admin API port.....8001 | |
dnsmasq port.......8053 | |
Database...........cassandra keepalive=60000 hosts=mq-test-1a.XXXX.internal,mq-test-1c.XXXX.internal port=9042 timeout=1000 keyspace=kong | |
[INFO] Connecting to the database... | |
[INFO] dnsmasq started (dnsmasq) | |
[OK] Started | |
paul@srv-test-1a:~$ sudo kong stop | |
[INFO] Using configuration: /etc/kong/kong.yml | |
[INFO] dnsmasq stopped | |
[OK] Stopped | |
paul@srv-test-1a:~$ sudo kong start | |
[INFO] Using configuration: /etc/kong/kong.yml | |
[INFO] Kong version.......0.4.1 | |
Proxy HTTP port....8000 | |
Proxy HTTPS port...8443 | |
Admin API port.....8001 | |
dnsmasq port.......8053 | |
Database...........cassandra keepalive=60000 hosts=mq-test-1a.XXXX.internal,mq-test-1c.XXXX.internal port=9042 timeout=1000 keyspace=kong | |
[INFO] Connecting to the database... | |
[INFO] dnsmasq started (dnsmasq) | |
[OK] Started | |
paul@srv-test-1a:~$ kong stop | |
[INFO] Using configuration: /etc/kong/kong.yml | |
sh: 1: kill: Operation not permitted | |
[WARN] It seems like Kong crashed the last time it was started! | |
[INFO] Removing pid at: /usr/local/kong/kong.pid | |
[ERR] Not running. Could not find pid: 1972 | |
paul@srv-test-1a:~$ sudo kong stop | |
[INFO] Using configuration: /etc/kong/kong.yml | |
[ERR] Not running. Could not find pid at: /usr/local/kong/kong.pid | |
paul@srv-test-1a:~$ ls /usr/local/kong/kong.pid | |
ls: cannot access /usr/local/kong/kong.pid: No such file or directory | |
paul@srv-test-1a:~$ ps aux | grep [k]ong | |
root 1955 0.0 0.0 29744 864 ? S 04:24 0:00 dnsmasq -p 8053 --pid-file=/usr/local/kong/dnsmasq.pid -N -o | |
root 1972 0.0 0.1 182620 1928 ? Ss 04:24 0:00 nginx: master process /usr/local/openresty/nginx/sbin/nginx -p /usr/local/kong/ -c nginx.conf -g pid kong.pid; | |
paul@srv-test-1a:~$ ll -d /usr/local/kong | |
drwxrwxrwx 8 root root 4096 Aug 10 04:24 /usr/local/kong/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment