alpine-djigzo : IOException: error=13, Permission denied, Class: class java.io.IOException
Hi, I got the error in the subject by trying to start the MTA. The same error is discussed in the following topics: https://lists.ciphermail.com/pipermail/users/2016-December/003376.html https://lists.ciphermail.com/pipermail/users/2016-August/003347.html I'm not that familiar with docker. Thank you for your support! Max
Hi, I spent some time, trying to get it to work. It seems there's no execution permission on all the scripts under /app/djigzo/scripts/ and there's no sudo available in the container. Trying to add sudo via apk causes a constraint error between libssl and openssl. Maybe you can update the Image once more? Thank you! Max
hmm.. weird, I will investigate this weekend :-) I don't use it myself anymore so I was not aware of it ;-)
the idea was you run this in a seperate container and link it with an email container. perhaps your way of running it is a bit different. Can you describe what you did?
Thank you :) I've downloaded the image and built a container. After starting the container, I can reach the admin interface via https://ip.of.the.container:8443/ciphermail But by trying to configure or to start the MTA there comes some error Messages. After spending some time I figured out, that the scripts are not marked as executable and there's no sudo installed. I know docker doesn't need sudo inside the container, but the scripts contain the sudo command. I've tried to build the image on my own, but this is where I got the constraint error.
My plan was to use it as a daemon in a container. Hope, I've understood your question :)
Hi Maxulm,
It seems the repositories of alpine is broken :-( you can use testing via apk add --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing sudo the error I got was
ERROR: unsatisfiable constraints: libcrypto1.1-1.1.1-r3: masked in: @testing satisfies: libssl1.1-1.1.1-r3[so:libcrypto.so.1.1] openssl-1.1.1-r3[so:libcrypto.so.1.1] libssl1.1-1.1.1-r3: masked in: @testing satisfies: openssl-1.1.1-r3[so:libssl.so.1.1] openssl-1.1.1-r3: masked in: @testing satisfies: run-deps-0[openssl]
hmmm found the cause ... weird.. I will fix this weekend.. somehow it's not valid anymore to use @testing http://dl-cdn.alpinelinux.org/alpine/edge/testing in /etc/apk/repositories
for a quick fix you can remove that line starting with @testing
I will also add sudo in the container, the scripts also made executable, now testing the build, you will be able to pull the changes after the build is done :-)
Thank you really much! It's great having People like you on GitHub! :)
;-) no problem :-)
;-) no problem :-)
Oops wrong button :-D
Hi! Thank you for your fast reaction :) The fixes you've implemented are working, but there's another error by starting the MTA: /app/djigzo/scripts/scripts.d is not owned by root and/or the mode does not match dr?x?-??-? I've tried to change the rights by using CHOWN and CHMOD and there's no error doing this, but it seems the rights won't be changed. I'm a Linux beginner, so there are many things I do not know about, but I want to learn ;-) Have a nice and relexing weekend!
i think I found the issue building a new container soon, the issue is cause by the case there is no coreutils installed (where stat has more formatting options) and there is no symlink in /app/djigzo/scripts/script.d/ to postfix.sh when you set the variable MAIL_CALLBACK_IP to 127.0.0.1 it will automaticly created if not you can do manually. will be continued ;-)
he is built, you can pull if you want :-)
Hi,
guess we're on a good way ;-)
I got the next error…
Trying to start the MTA I got the error:
script with name postfix not found
Maybe it has to do with the symlink?
Ok, on configuring the callback_ip to 127.0.0.1 it goes a bit further ;-)
Sorry I didn't see your advice…
Now I got the error:
/app/djigzo/scripts/scripts.d/postfix.sh: line 46: service: command not found
Line 46 contains "service postfix start"
It seems we need to add openrc ...