Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alpine-djigzo : IOException: error=13, Permission denied, Class: class java.io.IOException #2

Open
maxulm opened this issue Oct 14, 2018 · 15 comments

Comments

@maxulm
Copy link

maxulm commented Oct 14, 2018

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

@maxulm
Copy link
Author

maxulm commented Oct 26, 2018

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

@combro2k
Copy link
Owner

hmm.. weird, I will investigate this weekend :-)
I don't use it myself anymore so I was not aware of it ;-)

@combro2k
Copy link
Owner

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?

@maxulm
Copy link
Author

maxulm commented Oct 26, 2018

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 :)

@combro2k
Copy link
Owner

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]

@combro2k
Copy link
Owner

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

@combro2k
Copy link
Owner

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 :-)

@maxulm
Copy link
Author

maxulm commented Oct 26, 2018

Thank you really much!
It's great having People like you on GitHub! :)

@combro2k
Copy link
Owner

;-) no problem :-)

@combro2k
Copy link
Owner

;-) no problem :-)

Oops wrong button :-D

@combro2k combro2k reopened this Oct 26, 2018
@maxulm
Copy link
Author

maxulm commented Oct 27, 2018

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!

@combro2k
Copy link
Owner

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 ;-)

@combro2k
Copy link
Owner

he is built, you can pull if you want :-)

@maxulm
Copy link
Author

maxulm commented Oct 29, 2018

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?

@maxulm
Copy link
Author

maxulm commented Oct 30, 2018

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants