"Internal Server Error" while installing Dropbox

While configuring Dropbox, learning from here cause me in trouble. Just putting these 2 commands to terminal & “Server Error: Please check your server logs or contact tech support” pop-ups.

pip install dropbox
env/bin/pip install google-api-python-client

I’m not able to access anything, getting “Internal Server Error”. Researched and got this outdated thread.

Any help is appreciated. Thanks

Adding more context to above query. I’m running ERPNext DNS based multitenancy Server, None of DNS is working. It should be problem in production build. Just arrived 04:20am IST. Please check back asap.

Oh, You confirmed my doubt. A new thread created just now by @EnSeal here. Internal server error on Production server

@aaimaa,

Please check and share the error log. You can find the error log in the logs directory

Here are the log records from frappelog, Actually having DNS based multitenancy setup.

[ERROR] 2017-04-07 08:01:10,218 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: gamma.domain.com Exception in Enqueue Events for Site gcc.aaimaa.in Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, in is_scheduler_disabled return not frappe.utils.cint(frappe.db.get_single_value("System Settings", "enable_scheduler")) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')

[ERROR] 2017-04-07 08:01:10,219 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: site1.local Exception in Enqueue Events for Site site1.local Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, in is_scheduler_disabled return not frappe.utils.cint(frappe.db.get_single_value("System Settings", "enable_scheduler")) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')

[ERROR] 2017-04-07 08:05:10,505 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: beta.domain.com Exception in Enqueue Events for Site beta.aaimaa.in Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, in is_scheduler_disabled return not frappe.utils.cint(frappe.db.get_single_value("System Settings", "enable_scheduler")) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')

[ERROR] 2017-04-07 08:05:10,506 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: alpha.domain.com Exception in Enqueue Events for Site gcc.aaimaa.in Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, in is_scheduler_disabled return not frappe.utils.cint(frappe.db.get_single_value("System Settings", "enable_scheduler")) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')

[ERROR] 2017-04-07 08:05:10,507 | /home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py: Site: site1.local Exception in Enqueue Events for Site site1.local Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 63, in enqueue_events_for_site if is_scheduler_disabled(): File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 207, in is_scheduler_disabled return not frappe.utils.cint(frappe.db.get_single_value("System Settings", "enable_scheduler")) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 554, in get_single_value tabSingles where doctype=%s and field=%s""", (doctype, fieldname)) File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql self.connect() File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 53, in connect use_unicode=True, charset='utf8mb4') File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect return Connection(*args, **kwargs) File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__ super(Connection, self).__init__(*args, **kwargs2) OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (111 "Connection refused")')

@aaimaa,

restart your mysql server run sudo service mysql restart

Thanks
Makarand

1 Like

WOW !! Worked :heart_eyes: !!
Thanks & I was considering production error due to many people reported same from the same time. Sorry for that.