Results 1 to 9 of 9

Thread: 500 Internal Server Error

  1. #1
    sethp is offline Senior Member
    Join Date
    Aug 2010
    Posts
    25

    Default 500 Internal Server Error

    I was performing a quick repair this morning, when an error having to do with a custom module came up.

    I clicked execute, which brought up another error screen. I closed the tab, and tried to repoen the CRM in a new tab. Now, every time I try to access the login screen, I get a 500 internal server error.

    Here's a copy of my error log:

    HTTP/1.1 500 Internal Server Error
    Server: nginx
    Date: Mon, 27 Sep 2010 17:11:03 GMT
    Content-Type: text/html
    Connection: keep-alive
    Set-Cookie: PHPSESSID=kqjhbhoo1ucajcsq9dr5152h01; path=/
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    X-Application-Server: 10.13.10.128
    Content-Length: 0


    Mon Sep 27 14:10:47 2010 [8323][d12adf69-77d3-07d6-4dda-4c7c6357bbd0][FATAL] HTTP Error: no data present after HTTP headers
    Mon Sep 27 14:10:47 2010 [8323][d12adf69-77d3-07d6-4dda-4c7c6357bbd0][FATAL] HTTP/1.1 500 Internal Server Error
    Server: nginx
    Date: Mon, 27 Sep 2010 17:11:03 GMT
    Content-Type: text/html
    Connection: keep-alive
    Set-Cookie: PHPSESSID=; path=/
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    X-Application-Server: 10.13.10.128
    Content-Length: 0


    I'm using Sugar CE 6.0.1.

    EDIT: Here are the errors from my server's log.

    #
    [Mon Sep 27 13:58:25 2010] [error] [client 74.205.214.28] PHP Warning: require_once(modules/DynamicFields/DynamicField.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /var/www/clients/client3/web8/web/data/SugarBean.php on line 47
    #
    [Mon Sep 27 13:58:25 2010] [error] [client 74.205.214.28] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'modules/DynamicFields/DynamicField.php' (include_path='/var/www/clients/client3/web8/web/include/..:.:/usr/share/pear:/usr/share/php') in /var/www/clients/client3/web8/web/data/SugarBean.php on line 47
    #
    [Mon Sep 27 13:58:25 2010] [error] [client 74.205.214.28] PHP Fatal error: Class 'LogicHook' not found in /var/www/clients/client3/web8/web/include/utils.php on line 2565
    #
    [Mon Sep 27 13:58:25 2010] [error] [client 74.205.214.28] File does not exist: /var/www/crm.thetouchmarketing.com/web/favicon.ico
    Last edited by sethp; 2010-09-27 at 06:19 PM. Reason: Including more information

  2. #2
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: 500 Internal Server Error

    If you wrote the PHP on this custom module by hand, I'd check it for errors. This stuff happened to me when I was trying to make SOAP calls and had something like $bean->$id instead of $bean->id in one of my logic hooks that was firing.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  3. #3
    sethp is offline Senior Member
    Join Date
    Aug 2010
    Posts
    25

    Default Re: 500 Internal Server Error

    Thanks for your reply Robert.

    I didn't write any of the code in the module by hand. I built the module in Module builder, so there was no manual coding.

  4. #4
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: 500 Internal Server Error

    mmkay, well, then I don't know how to help you. If you search the forums you'll find a few posts with similar errors in the logs, but most of them are people like you asking for solutions and so far not finding any. http://www.sugarcrm.com/forums/showthread.php?t=57769 might be of some use though.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  5. #5
    sethp is offline Senior Member
    Join Date
    Aug 2010
    Posts
    25

    Default Re: 500 Internal Server Error

    Thanks for the link Robert. I looked at it, and it didn't contain a solution that worked for me. I appreciate your help though.

  6. #6
    sethp is offline Senior Member
    Join Date
    Aug 2010
    Posts
    25

    Default Re: 500 Internal Server Error

    More information:

    Sugar version; Sugar CE 6.0.1
    PHP version; 5.2.1
    Web server version; Centos Linux (5.4 or 5.5)
    Database version; MYSQL 5.0.77
    Operating system. Linux

  7. #7
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: 500 Internal Server Error

    Can you post the output of phpinfo() ? Perhaps one or more PHP settings needs to be adjusted.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  8. #8
    sethp is offline Senior Member
    Join Date
    Aug 2010
    Posts
    25

    Default Re: 500 Internal Server Error

    Thanks for your reply Angel.

    I just found some more information that might be helpful.

    I was looking at the sugar folder on my server, and I realized that www/modules was missing. I think that other folders may be missing too.

    I copied the modules folder over from another installation with the same version.

    Now I am not getting a blank login screen, but when I click login after entering my credentials, it sends the data, but refreshes the login screen.

    I have a bunch of new errors in my server error log as well. I've pasted a chunk of them here:

    [Thu Sep 30 12:38:54 2010] [error] [client 69.63.63.238] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client3/web8/tmp/sess_p7sag2knfg4j6427nka3q1hjd7, O_RDWR) failed: No such file or directory (2) in /var/www/clients/client3/web8/web/include/MVC/SugarApplication.php on line 469, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:54 2010] [error] [client 69.63.63.238] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client3/web8/tmp/sess_p7sag2knfg4j6427nka3q1hjd7, O_RDWR) failed: No such file or directory (2) in /var/www/clients/client3/web8/web/include/MVC/SugarApplication.php on line 469, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:54 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: open(/var/www/clients/client3/web8/tmp/sess_p7sag2knfg4j6427nka3q1hjd7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:54 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/clients/client3/web8/tmp) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:55 2010] [error] [client 69.63.63.238] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client3/web8/tmp/sess_p7sag2knfg4j6427nka3q1hjd7, O_RDWR) failed: No such file or directory (2) in /var/www/clients/client3/web8/web/include/MVC/SugarApplication.php on line 469, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:55 2010] [error] [client 69.63.63.238] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client3/web8/tmp/sess_p7sag2knfg4j6427nka3q1hjd7, O_RDWR) failed: No such file or directory (2) in /var/www/clients/client3/web8/web/include/MVC/SugarApplication.php on line 469, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:55 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: open(/var/www/clients/client3/web8/tmp/sess_p7sag2knfg4j6427nka3q1hjd7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:55 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/clients/client3/web8/tmp) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:55 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: open(/var/www/clients/client3/web8/tmp/sess_p7sag2knfg4j6427nka3q1hjd7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:55 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/clients/client3/web8/tmp) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:58 2010] [error] [client 69.63.63.238] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client3/web8/tmp/sess_p7sag2knfg4j6427nka3q1hjd7, O_RDWR) failed: No such file or directory (2) in /var/www/clients/client3/web8/web/include/MVC/SugarApplication.php on line 469, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:58 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: open(/var/www/clients/client3/web8/tmp/sess_i3eph9ljvrqh2unq3m0hmkeg13, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:58 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/clients/client3/web8/tmp) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:58 2010] [error] [client 69.63.63.238] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client3/web8/tmp/sess_i3eph9ljvrqh2unq3m0hmkeg13, O_RDWR) failed: No such file or directory (2) in /var/www/clients/client3/web8/web/include/MVC/SugarApplication.php on line 469, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:59 2010] [error] [client 69.63.63.238] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client3/web8/tmp/sess_i3eph9ljvrqh2unq3m0hmkeg13, O_RDWR) failed: No such file or directory (2) in /var/www/clients/client3/web8/web/include/MVC/SugarApplication.php on line 469, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:59 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: open(/var/www/clients/client3/web8/tmp/sess_i3eph9ljvrqh2unq3m0hmkeg13, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:59 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/clients/client3/web8/tmp) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/ind...n_action=index
    [Thu Sep 30 12:38:59 2010] [error] [client 69.63.63.238] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client3/web8/tmp/sess_i3eph9ljvrqh2unq3m0hmkeg13, O_RDWR) failed: No such file or directory (2) in /var/www/clients/client3/web8/web/include/MVC/SugarApplication.php on line 469, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:59 2010] [error] [client 69.63.63.238] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/www/clients/client3/web8/tmp/sess_i3eph9ljvrqh2unq3m0hmkeg13, O_RDWR) failed: No such file or directory (2) in /var/www/clients/client3/web8/web/include/MVC/SugarApplication.php on line 469, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:59 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: open(/var/www/clients/client3/web8/tmp/sess_i3eph9ljvrqh2unq3m0hmkeg13, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:59 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/clients/client3/web8/tmp) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:59 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: open(/var/www/clients/client3/web8/tmp/sess_i3eph9ljvrqh2unq3m0hmkeg13, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    [Thu Sep 30 12:38:59 2010] [error] [client 69.63.63.238] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/clients/client3/web8/tmp) in Unknown on line 0, referer: http://crm.thetouchmarketing.com/cac.../style.css?c=1
    I tried performing a silent upgrade to 6.0.2, but I kept on getting the "The patch did not contain a proper manifest.php file. Cannot continue." error.

    Does this help at all or change anything?

  9. #9
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: 500 Internal Server Error

    Seems you've got a combination of issues going on here.

    The references to session.start seem to indicate that the sessions.save_path setting in your PHP.INI is set to a directory that doesn't exist, or that the web user cannot properly access. You need to resolve that first as you won't get far with that being a problem.

    The other errors seem to also point to a permissions issue. Double check your file/folder permissions and ownership to make sure that the web server user can access the files.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. internal server error 500
    By lobby in forum Help
    Replies: 1
    Last Post: 2009-04-13, 12:48 PM
  2. Internal Server Error
    By Mithun in forum Developer Help
    Replies: 2
    Last Post: 2009-03-27, 12:30 PM
  3. Internal server error 500
    By srinivasreddy in forum Marketing/Campaign Management
    Replies: 0
    Last Post: 2008-06-25, 06:15 AM
  4. Internal Server Error
    By cereates in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-01-06, 11:16 AM
  5. 500 Internal Server Error
    By PVC in forum General Discussion
    Replies: 3
    Last Post: 2005-06-17, 10:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •