[Dachs-support] dachs error
Baptiste Cecconi
baptiste.cecconi at obspm.fr
Thu Sep 6 18:20:44 CEST 2018
Dear all,
I could not agree more on the 3rd bullet! Especially since Carlos is now our VESPA team.
Cheers
Baptiste
> Le 6 sept. 2018 à 18:14, Markus Demleitner <msdemlei at ari.uni-heidelberg.de> a écrit :
>
> Nathanaél,
>
>> On Thu, Sep 06, 2018 at 12:50:27PM +0200, Nathanaël Jourdane wrote:
>> When I run dachs, the web server doesn't start and I get the following error:
>>
>> root at 680e6baf4064:/var/gavo# dachs serve start
>> File "/usr/lib/python2.7/logging/__init__.py", line 936, in _open
>> stream = open(self.baseFilename, self.mode)
>> IOError: [Errno 2] No such file or directory: u'/var/gavo/logs/dcErrors'
>>
>> Do you understand why?
>
> The immediate reason is (with 99% certainty) that the directory
> /var/gavo/logs does not exist.
>
> The question is: what is the reason for that?
>
>> Notes:
>> I use Docker. See Dockerfile attached.
>> The folder /var/gavo contains only the files I put here with docker
>> COPY command.
>
> That's a good candidate for a reason. DaCHS insists on several
> directories in there, and on the server-writability of a couple of
> them (most importantly, cache). This is why there's the dachs init
> subcommand that creates these properly.
>
> So, recommendations:
>
> 1: Just have Debian (or whatever) install itself from package. The
> post-install script does the dachs init for you.
>
> 2. If that's not possible, at least run dachs init when the container
> comes up. It shouldn't hurt if everything is in place, and it'll
> generate the necessary files and directories if they're missing (and
> it has the necessary privileges).
>
> 3. But foremost, if marrying DaCHS and Docker, ideally contribute to
> Carlos' effort at https://github.com/chbrandt/docker-dachs -- it
> would be great if there was a rock-solid, clean solution in the end,
> and I think Carlos is at least 80% there (of course, the remaining
> 20% are the hardest, but if everyone deploying with docker helps out,
> I think ironing out the wrinkles should be feasible).
>
> -- Markus
> _______________________________________________
> Dachs-support mailing list
> Dachs-support at g-vo.org
> http://lists.g-vo.org/cgi-bin/mailman/listinfo/dachs-support
More information about the Dachs-support
mailing list