-
Notifications
You must be signed in to change notification settings - Fork 324
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' #118
Comments
Try this command : |
Hi thank you for your reply. Here is the result of the command, but I guess that some container name is missing in the args or something like that:
Thanks, Camille. |
I think this was the intended command, it seems that the file is empty:
If I try with another file path it says |
I have tried to install mailserver several times from scratch, using the following commands to purge the previous installations:
I always get the same |
Try to build yourself :
|
Same error with the self build :-/ |
|
Here it is:
Thank you, Camille. |
I have not tested Officially, this docker image has been tested with AUFS and OverlayFS storage drivers. https://docs.docker.com/engine/userguide/storagedriver/selectadriver/ |
I just tried devicemapper driver on ArchLinux with Docker 17.05.0-ce and 4.11.2 kernel, it works well. Can you describe your host environment, your server setup ? You said you increased memory so I guess you're in a virtualized environment. |
Thanks for your reply. Yes my host is a VM at https://www.gandi.net/hosting/iaas it's an old installation, about 4 years, but I've upgraded it regularly, it works well. Now Debian GNU/Linux 8.8 (jessie) with a 3.10.105-xenU-34-x86_64 Linux Kernel. There are very few basic LAMP services (I already have an Apache so I reconfigured mailserver's NGnix to ports 8001 and 4431, directly accessible as well as via Apache reverse proxy on ports 80 and 443). There is also a very old debian that I need to keep running for some services in a chroot. I installed docker from apt repositories, the kernel is compiled by the PaaS, known to run docker properly: https://wiki.gandi.net/en/iaas/references/server/docker That's all I think about as useful information. What else could I tell? Does it raise some flag for you? Thank you, Camille. PS: PaaS talks about possible inode problems, but it seems to be plenty available still:
|
If you can, try with OverlayFS as described here : https://wiki.gandi.net/en/iaas/references/server/docker |
Hi, sorry for the delay, OverlayFS wasn't available on my kernel, I had to migrate the whole VM to HVM to get a newer kernel, new configuration broke the network so it took time to get it back up. I now have OverlayFS:
But still the same SQL problem… :-/ What can I do? Thank you, Camille. |
Does the container have any mounts that shadow the original file? docker inspect -f "{{json .Mounts}}" mailserver Which image is the container based on? docker ps | grep "CONTAINER\|mailserver" Which id does the image have? docker images | grep -e "REPOSITORY\|mailserver" |
Hi, thanks for your reply, here are the outputs:
Thanks, Camille. |
Check the file attributes and Dovecot configuration :
Verify the content of several other files, it may not be the only one in this case. |
Indeed two files are empty,
Wich other files should I check? Thanks, Camille. |
Interesting, envtpl rendering does not seem to work in your case, strange.
Some of them : https://github.com/hardware/mailserver/blob/master/rootfs/usr/local/bin/startup#L182-L207 I need mailserver logs too : |
Here it is, I've also added the build logs.
ls: cannot access /etc/cron.d/fetchmail: No such file or directory
-rw-r--r-- 1 root root 426 Jun 4 14:05 /etc/amavis/conf.d/05-node_id
-rw-r--r-- 1 root root 9848 Jun 4 14:05 /etc/amavis/conf.d/20-debian_defaults
-rw-r--r-- 1 root root 803 Jun 4 14:05 /etc/amavis/conf.d/50-user
-rw-r--r-- 1 root root 204 Jun 4 14:05 /etc/cron.d/spamassassin
-rw-r----- 1 vmail dovecot 253 Jun 4 14:05 /etc/dovecot/conf.d/10-mail.conf
-rw-r----- 1 vmail dovecot 255 Jun 4 14:05 /etc/dovecot/conf.d/10-ssl.conf
-rw-r----- 1 vmail dovecot 120 Jun 4 14:05 /etc/dovecot/conf.d/15-lda.conf
-rw-r----- 1 vmail dovecot 101 Jun 4 14:05 /etc/dovecot/conf.d/20-lmtp.conf
-rw-r----- 1 vmail dovecot 0 Jun 4 14:05 /etc/dovecot/dovecot-dict-sql.conf.ext
-rw-r----- 1 vmail dovecot 0 Jun 4 14:05 /etc/dovecot/dovecot-sql.conf.ext
-rw-r--r-- 1 root root 15 Jun 4 14:05 /etc/mailname
-rw-r--r-- 1 opendkim opendkim 769 Jun 4 14:05 /etc/opendkim/opendkim.conf
-rw-r--r-- 1 opendmarc opendmarc 478 Jun 4 14:05 /etc/opendmarc/opendmarc.conf
-rw-r--r-- 1 root root 863 Jun 4 14:05 /etc/postfix/header_checks
-rw-r--r-- 1 root root 7947 Jun 4 14:05 /etc/postfix/main.cf
-rw-r--r-- 1 root root 0 Jun 4 14:05 /etc/postfix/sql/sender-login-maps.cf
-rw-r--r-- 1 root root 0 Jun 4 14:05 /etc/postfix/sql/virtual-alias-domain-catchall-maps.cf
-rw-r--r-- 1 root root 0 Jun 4 14:05 /etc/postfix/sql/virtual-alias-domain-mailbox-maps.cf
-rw-r--r-- 1 root root 0 Jun 4 14:05 /etc/postfix/sql/virtual-alias-domain-maps.cf
-rw-r--r-- 1 root root 0 Jun 4 14:05 /etc/postfix/sql/virtual-alias-maps.cf
-rw-r--r-- 1 root root 0 Jun 4 14:05 /etc/postfix/sql/virtual-mailbox-domains.cf
-rw-r--r-- 1 root root 0 Jun 4 14:05 /etc/postfix/sql/virtual-mailbox-maps.cf
-rw-r--r-- 1 root root 140 Jun 4 14:05 /etc/postfix/virtual
-rw-r--r-- 1 root root 0 Jun 4 14:05 /etc/postfixadmin/fetchmail.conf
-rwxr-xr-x 1 root root 247 Jun 4 14:05 /usr/local/bin/quota-warning
Thanks, Camille. |
Oh, I see |
Ok, I see the problem. Try to use only ASCII printable characters in environment variables (ASCII table). To solve your problem, checks the value of these variables and remove any non-ASCII characters :
Thanks for reporting this. |
Thanks! It worked! :-) Bad characters were in DBPASS, BTW it seems to dislike # as well. Also I had a bug building the git version of
I had to pull the ready made image. It worked. So I'll finally give a try to NSD, but can I use the same key for multiple domains? I see /mnt/docker/mail/opendkim/ lists only the initial domain despite the fact that I add new ones on postfixadmin and rainloop? Thanks! Camille. |
Use ADD_DOMAINS environment variable. |
My bad, RTFM. Thanks a lot! Camille. |
Hello, I've been trying to run the mailserver, but after many retries I keep ending up having the following error :
I repeats itself over and over every 30~60 seconds, PostfixAdmin and RainLoop interfaces are showing in the browser, but impossible to connect to the service (via Thunderbird or RainLoop, howerver I'm getting a prompt response via telnet on ports 993 and 587). I followed every step of the README, except for the optional NSD section that I've commented in docker-compose.yml and DKIM entries that I omitted from the DNS configuration (I'm not familiar with this extra security stuff, I'd like to enable it later when the basic services work).
Am I getting something or is there a bug somewhere?
Thank you very much,
Camille.
The text was updated successfully, but these errors were encountered: