The pfSense Store

Author Topic: 500 - Internal Server Error  (Read 1905 times)

0 Members and 1 Guest are viewing this topic.

Offline dominique.fournier

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
500 - Internal Server Error
« on: April 05, 2012, 08:02:48 am »
Hi,

/var/log/lighttpd.error.log contains a lot of errors :
2012-04-05 15:00:20: (mod_fastcgi.c.1732) connect failed: Connection refused on unix:/tmp/php-fastcgi.socket-1
2012-04-05 15:00:20: (mod_fastcgi.c.3025) backend died; we'll disable it for 1 seconds and send the request to another backend ins
tead: reconnects: 0 load: 1

Of course, it produce a lot of problems : bad sync beetween nodes, interface hanging, etc.

How can I debug this ? Do you reproduce the problem ?

It is the snapshot of Wed Apr 4 19:15:35 EDT 2012.
Thanks !
« Last Edit: April 05, 2012, 08:04:46 am by dominique.fournier »
2.1 (amd64)

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14932
    • View Profile
Re: 500 - Internal Server Error
« Reply #1 on: April 09, 2012, 10:07:56 am »
If you upgrade to a more recent snapshot, does this still happen? (You can use the console upgrade by URL function to load an updated snapshot)
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline databeestje

  • Administrator
  • Hero Member
  • *****
  • Posts: 1048
  • It just might be your luck day, if you only knew.
    • View Profile
Re: 500 - Internal Server Error
« Reply #2 on: April 09, 2012, 11:14:26 am »
I had this happen after a gitsync.
Manually restarted the webui with 11.

Offline dominique.fournier

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: 500 - Internal Server Error
« Reply #3 on: April 16, 2012, 08:15:51 am »
Yes the problem persists on Mon Apr 16 04:08:01 EDT 2012 version.
2.1 (amd64)

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14932
    • View Profile
Re: 500 - Internal Server Error
« Reply #4 on: April 16, 2012, 08:18:13 am »
We'll need more info about what you have configured there, or what you have happening with the GUI, since I can't reproduce this on any of my 2.1 systems, they all work fine.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline dominique.fournier

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: 500 - Internal Server Error
« Reply #5 on: April 16, 2012, 08:25:37 am »
I just install the last version on two Virtualbox VM. I define IPv4 and IPv6 address on one interface (WAN) for each. I define a CARP address on this WAN. I define a DNS server. I open the firewall, so for each VM can see the other, can ping google, update on PFSense.

Each time I click on a page the log is growing up.

What information can I give you ? Are you interested by the VirtualDisk of these machines ?
2.1 (amd64)

Offline dominique.fournier

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: 500 - Internal Server Error
« Reply #6 on: April 18, 2012, 05:35:42 am »
I try a lot of things :
- Removing all IPv6 addresses and CARP
- Increasing the Max Processes    in Webconfigurator
- Disabling IPv6 in Advanced menu
- Try to add the name in /etc/hosts
- Rebooting
- Try to update to the updated version
- Removing HA (pfsync and conf)
And no luck.

Just if it can help, the IPv4 for the PFsense is not resolvable.
When I increase the Max Processes to 4, the message change to  unix:/tmp/php-fastcgi.socket-3 instead of  unix:/tmp/php-fastcgi.socket-1

Just to be sure, I install a 2.0.1 on a new VM (no error detected), upgrade it to 2.1, and then the problem occurs.
I install a fresh 2.1 (on another VM) and the problem occurs too...

I saw an error message concerning a low memory (I use 128MB RAM VM, which is the default for VirtualBox). It disable APC. I try to put 1GB to VM and YEAH !! It works !!! (put 256MB works too and it is really quicker than  without APC !!!)
« Last Edit: April 18, 2012, 05:43:51 am by dominique.fournier »
2.1 (amd64)

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14932
    • View Profile
Re: 500 - Internal Server Error
« Reply #7 on: April 18, 2012, 07:37:49 am »
OK, so if it's low memory, there are already a couple of tickets on http://redmine.pfsense.org/ that cover that type of issue. If you have that low memory you do _not_ want to increase the number of GUI processes, it can only handle one.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline dominique.fournier

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: 500 - Internal Server Error
« Reply #8 on: April 18, 2012, 07:43:38 am »
Yes ! I put more memory and the problem is solved (for me). I think some guys will have the problem on embedded devices.

Thanks for your time !
2.1 (amd64)

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14932
    • View Profile
Re: 500 - Internal Server Error
« Reply #9 on: April 18, 2012, 07:48:08 am »
Most embedded devices that are still in use have at least 256MB RAM, like most of the popular ALIX models. (There are a couple with 128MB but they are much less common)
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!