Internal Server Error

41 views
Skip to first unread message

shivang patel

unread,
Sep 26, 2016, 3:11:35 AM9/26/16
to Mezzanine Users
Hello

I got rapidly "Internal Server Error" after deployed site on production environment.

I checked everything...

1) development environment wring fine- good
2) no errors while fab all - Debug is True
3) It gives Internal " Internal Server Error "

      but

4) I can access admin panel !! ( x.x.x.x/admin )

So, anybody tell me why this happen with me ! I tried to check every thing....but still got this error !


shivang patel

unread,
Sep 26, 2016, 1:29:43 PM9/26/16
to Mezzanine Users


On Monday, September 26, 2016 at 12:41:35 PM UTC+5:30, shivang patel wrote:
Hello

I got rapidly "Internal Server Error" after deployed site on production environment.

I checked everything...

1) development environment wring fine- good
2) no errors while fab all - Debug is True
3) It gives Internal " Internal Server Error "

      but

4) I can access admin panel !! ( x.x.x.x/admin ) (some pages are missing)

Eduardo Rivas

unread,
Sep 26, 2016, 1:58:54 PM9/26/16
to mezzani...@googlegroups.com
Please don't double post. Some people are subscribed to this list and will get every email.

Have you configured email reporting for your site? That should get you a full traceback delivered to your email, which you can then post here. This thread describes how to configure it:
https://groups.google.com/forum/#!searchin/mezzanine-users/500/mezzanine-users/f5xWowOEL7M/4thS5GqwKiYJ

Also, you should check the server logs for errors. The default deployment mechanism (fabric) puts error logs in /home/<username>/logs/<project_name>_error.log (where <username> and <project_name> depend on your particular installation).

shivang patel

unread,
Sep 27, 2016, 1:36:47 AM9/27/16
to Mezzanine Users
Yes, That was my mistake. I will take care this thing next time.
Your Replay very help full. That error is something like...

Internal Server Error: /

UncompressableFileError at /
 
'css/socialbutton_style.css' could not be found in the COMPRESS_ROOT '/home/pi/mezzanine/trekmunk/static' or with staticfiles.


But, I was already used
<link rel="stylesheet" href="{% static "css/socialbutton-style.css" %}">

I am also attaching complete log....
InternalServer_error_LogMezzanine.pdf

shivang patel

unread,
Sep 27, 2016, 7:02:04 PM9/27/16
to Mezzanine Users
I think, problem is related to rsync, it's not sync any static file from development environment to ----
/home/user_name/mezzanine/prooject_name/static

 
Ok... Fine, But then after I was checked fabfile.py and removed "/static" from excludeList and this internal server error solved ! And new error comes, 502 bad Gatewaay


Any suggestions ??! Thank You !

Eduardo Rivas

unread,
Oct 2, 2016, 10:20:05 PM10/2/16
to mezzani...@googlegroups.com
We're going to need to see the full traceback again to help you out.
However, a 502 sounds like an error happening before the request reaches
Django. Can you check the nginx logs? They should be in
/home/%(user)s/logs/%(proj_name)s_error_nginx.log (taken from the fabfile).
Reply all
Reply to author
Forward
0 new messages