claudyus / LXC-Web-Panel

LXC Web Panel improved for lxc 1.0+
http://claudyus.github.io/LXC-Web-Panel/
Other
221 stars 68 forks source link

Not installing on Debian Jessie RC1 #78

Closed svennieslony closed 9 years ago

svennieslony commented 9 years ago

I'm not certain this is meant to work under Debian, but when following the guide "Installation on deb based system" I run into an error:

Setting up lwp (0.8-25-g62597b1) ...

I manually copied the example file by "cp /etc/lwp/lwp.example.conf /etc/lwp/lwp.conf" and tried again but it still fails:

Setting up lwp (0.8-25-g62597b1) ...

Is there anything I can do?

Thanks! Sven

claudyus commented 9 years ago

Hi @svennieslony I use this project on some ubuntu servers but I don't see any problem to run in on debian or centos distro, so also if I suggest to use ubuntu I pretty happy to fix stuff to be more distro independent as possible.

On your error now, during the installatio progess the debian hook will call this script https://github.com/claudyus/LXC-Web-Panel/blob/master/debian/lwp.postinst to generate the secret session token if it doesn't exists.

Can you try to directly run /usr/bin/lwp --generate-session-secret as root to see if the same error is reported? It should not involve the config file or db during this operation. This is really strange behaviors.

svennieslony commented 9 years ago

Hi @claudyus,

This runs fine: /usr/bin/lwp --generate-session-secret * Auth type: database

I can also start lwp by running /usr/bin/lwp * Auth type: database * Running on http://0.0.0.0:5000/

lwp is is accessible as expected. It seems like something in the posttest script is not working. I tested a bit further:

Hope this helps.