error

Dovecot: imap Error: open (/var/mail/username) failed

Error

While configuring mail on a Ubuntu Linux server running the Postfix mail server and Dovecot IMAP server, the following errors were observed in the mail log files,

dovecot: imap(user1): Error: open(/var/mail/user1) failed: Permission denied (euid=1002(user1) egid=1002(user1) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775)
dovecot: imap(user1): Error: Failed to autocreate mailbox INBOX: Internal error occurred.
Read more

Error while loading shared libraries: libz.so.1

Problem

While building an Android app project under Studio, the build process terminated with the error,

/home/user1/Android/Sdk/build-tools/22.0.1/zipalign: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Error:Execution failed for task ':app:zipalignDebug'.
> Process 'command '/home/user1/Android/Sdk/build-tools/22.0.1/zipalign'' finished with non-zero exit value 127

Solution

The problem was resolved by installing the lib32z1 package.… Read more

nginx 502 Bad Gateway Error

PROBLEM

A routine software update on the server running nginx was done. After that the website stopped opening in the browser window and 502 Bad Gateway error along with the nginx version number was displayed. Looking in the log file showed an entry like,

2014/06/26 11:09:53 [crit] 2539#0: *15 connect() to unix:/tmp/php-fpm.sock
Read more
Error

JRobin: Not able to save graph as a PNG file

Error:

Not able to save graph as a PNG file.  
Compilation error: cannot find symbol  
[javac] symbol  : method saveAsPNG(java.lang.String,int,int)  

Solution:

saveAsPNG does not seem to be there in JRobin anymore. Use the RrdGraph.render (java.awt.Graphics g) method. For example,


// Create a buffered image in which the graph would be drawn    
BufferedImage bImage = new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_RGB);
Read more