dokku / dokku-daemon

A daemon wrapper around dokku
MIT License
32 stars 13 forks source link

dokku-daemon directories are not being created #13

Closed beydogan closed 7 years ago

beydogan commented 7 years ago

Problem:

/var/run/dokku-daemon and /var/lock/dokku-daemon are not being created.

Steps to reproduce:

git clone https://github.com/dokku/dokku-daemon
cd dokku-daemon
sudo make install
dokku-daemon

Output:

2017/03/09 14:37:52 socat[7302] E bind(3, {AF=1 "/var/run/dokku-daemon/dokku-daemon.sock"}, 41): No such file or directory

I realized /var/run/dokku-daemon and /var/lock/dokku-daemon are not created.

Daemon runs fine after running;

mkdir /var/run/dokku-daemon /var/lock/dokku-daemon

I've been able to produce this issue on multiple machines running Ubuntu 14.04 and 16.04.

Directory creating line on bin/dokku-daemon looks fine, I'm not sure what's the issue here. https://github.com/dokku/dokku-daemon/blob/master/bin/dokku-daemon#L10

beydogan commented 7 years ago

I just realized L10 doesn't have $(dirname "$DOKKU_SOCK_PATH"). Going to send a PR.