Category Archives: troubleshooting

Install an OpenVPN server and connect to it on windows

Follow the tutorial on linode to install openvpn: http://library.linode.com/networking/openvpn/debian-6-squeeze Attention: Both openvpn and dnsmasq shall be installed on the server. And on the file /etc/openvpn/server.conf, the following line must be exist and not commented : push “redirect-gateway def1″ By default … Continue reading

Posted in linux, security, troubleshooting | Leave a comment

How to install a network HP printer on Arch linux

The printer package does not work as it should be on my arch for HP laser jet P2035n. It costs me some hour to get it to work. Here’s the steps. 1). Install cups service pacman -S cups cups-pdf hplip … Continue reading

Posted in linux, troubleshooting | Tagged | Leave a comment

Could not chdir to home directory /home/USER: Permission denied

We changed the home folder to /data/home/USER. When I ssh to our centos server. It shows error “Could not chdir to home directory /home/USER: Permission denied”, however loggin ok. I must manually run cd ~ to go to the home … Continue reading

Posted in linux, troubleshooting | 3 Comments

Pyramid FAQ: from the beginning to production deployment

I started to write pyramid applications 3 weeks ago, as a python and pyramid novice.  Now the application goes to production.  In the development process, many errors and problems happened to the application, although the pyramid documentation is very good, … Continue reading

Posted in python, troubleshooting | Tagged | 4 Comments

How to convert string with timezone info to date in python

In python, time.strftime() and time.strptime() can be used to format a date to string, and convert string to date. But it is thought buggy in the pyhon strptime() at 2.x version. For example, if you invoke strptime(), It does not … Continue reading

Posted in python, troubleshooting | Tagged | Leave a comment

Solution for nginx “504 Gateway Time-out”

When my website routes path /mybackup to pyramid application.”504 Gateway Time-out” occured. And I set  several fastcgi parameters in the nginx.conf a following: fastcgi_connect_timeout 300s; fastcgi_send_timeout 300s; fastcgi_read_timeout 300s; fastcgi_buffer_size 128k; fastcgi_buffers 8 128k; But it doesn’t work. And then found … Continue reading

Posted in server, troubleshooting | Tagged | 3 Comments

Why Load Balance not work in Hessian C# client calling to hessian service?

When I was migrating our application from C# to Java, our Java service moved ahead of  the client application. The client application is in C#. And we export service through Hessian service. So we call java hessian service through C# … Continue reading

Posted in design, java, troubleshooting | Tagged , | Leave a comment