Open StephanErb opened 10 years ago
It looks like the library used to let devpi-server daemonize itself changes the current working directory. In the log which is stored in [server directory]/.xproc/devpi-server/xprocess.log I saw that devpi-ldap can't find the config. You have to use an absolute path when using --start.
Ah, good catch.
So, does it work now? Can I close the ticket? Or do you have suggestions to improve the docs?
Yes, it works with fully qualified paths.
However, I guess the server should fail when it cannot find the specified configuration.
@hpk42 do you have an idea why it doesn't? It seems to time out instead. I couldn't find out why yet.
devpi-server --start
will start a subprocess and wait until the sub
process is reachable for 60 seconds or so. So when the process crashes it
will still wait this time. It's probably a good idea to refine this
startup procedure such that we a) more immediadely fail instead of timing
out b) show the content of the log or at least the location of it.
On Mon, Oct 27, 2014 at 10:19 PM, Florian Schulze notifications@github.com wrote:
@hpk42 https://github.com/hpk42 do you have an idea why it doesn't? It seems to time out instead. I couldn't find out why yet.
— Reply to this email directly or view it on GitHub https://github.com/devpi/devpi-ldap/issues/7#issuecomment-60671292.
I wonder if https://bitbucket.org/hpk42/devpi/pull-request/187/log-location-of-nodeinfo-file-on-startup/diff helps with the logging issue?
That causes logging to get turned on earlier, because currently logging is not active until after options are parsed and there are things that can go wrong before logging is active.
I have successfully validated my config using the command
devpi-ldap
. I can also start the server either without the--ldap-config
flag or without the--start
flag. However, when using both, the devpi server never comes up. There is no log output whatsoever.Pip freeze:
All happens in a fresh virtualenv and with a fresh data dir.
Any idea?