Hey pythonanywhere team, I have been encountering some problems with my web app "bytenet.pythonanywhere.com". It was working fine and suddenly it stopped working and I am getting the following errors.
These are the error logs:
2020-10-06 10:15:05,990: SyntaxError: invalid syntax
2020-10-06 10:15:05,990: File "/home/bytenet/.virtualenvs/bytenet.pythonanywhere.com/lib/python3.7/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
2020-10-06 10:15:05,990: response = self.get_response(request)
2020-10-06 10:15:05,990:
2020-10-06 10:15:05,991: File "/home/bytenet/.virtualenvs/bytenet.pythonanywhere.com/lib/python3.7/site-packages/django/core/handlers/base.py", line 75, in get_response
2020-10-06 10:15:05,991: response = self._middleware_chain(request)
2020-10-06 10:15:05,991:
2020-10-06 10:15:05,992: File "/home/bytenet/.virtualenvs/bytenet.pythonanywhere.com/lib/python3.7/site-packages/django/core/handlers/exception.py", line 36, in inner
2020-10-06 10:15:05,992: response = response_for_exception(request, exc)
2020-10-06 10:15:05,992:
2020-10-06 10:15:05,992: File "/home/bytenet/.virtualenvs/bytenet.pythonanywhere.com/lib/python3.7/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
2020-10-06 10:15:05,992: response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
2020-10-06 10:15:05,992:
2020-10-06 10:15:05,992: File "/home/bytenet/.virtualenvs/bytenet.pythonanywhere.com/lib/python3.7/site-packages/django/core/handlers/exception.py", line 128, in handle_uncaught_exception
2020-10-06 10:15:05,993: callback, param_dict = resolver.resolve_error_handler(500)
2020-10-06 10:15:05,993:
2020-10-06 10:15:05,993: File "/home/bytenet/.virtualenvs/bytenet.pythonanywhere.com/lib/python3.7/site-packages/django/urls/resolvers.py", line 597, in resolve_error_handler
2020-10-06 10:15:05,993: callback = getattr(self.urlconf_module, 'handler%s' % view_type, None)
2020-10-06 10:15:05,993:
2020-10-06 10:15:05,993: File "/home/bytenet/.virtualenvs/bytenet.pythonanywhere.com/lib/python3.7/site-packages/django/utils/functional.py", line 80, in __get__
2020-10-06 10:15:05,994: res = instance.__dict__[self.name] = self.func(instance)
2020-10-06 10:15:05,994:
2020-10-06 10:15:05,994: File "/home/bytenet/.virtualenvs/bytenet.pythonanywhere.com/lib/python3.7/site-packages/django/urls/resolvers.py", line 577, in urlconf_module
2020-10-06 10:15:05,994: return import_module(self.urlconf_name)
2020-10-06 10:15:05,994:
2020-10-06 10:15:05,994: File "/home/bytenet/bytenet.pythonanywhere.com/network/urls.py", line 19, in <module>
2020-10-06 10:15:05,994: from feed import urls
2020-10-06 10:15:05,995:
2020-10-06 10:15:05,995: File "/home/bytenet/bytenet.pythonanywhere.com/feed/urls.py", line 4, in <module>
2020-10-06 10:15:05,995: from feed import views
2020-10-06 10:15:05,995:
2020-10-06 10:15:05,995: File "/home/bytenet/bytenet.pythonanywhere.com/feed/views.py", line 7, in <module>
2020-10-06 10:15:05,995: from scripts.god_script import get_this_bread
2020-10-06 10:15:05,995:
2020-10-06 10:15:05,995: File "/home/bytenet/bytenet.pythonanywhere.com/scripts/god_script.py", line 2, in <module>
2020-10-06 10:15:05,996: from scripts.create_bot_posts import create_bot_posts
2020-10-06 10:15:05,996:
2020-10-06 10:15:05,996: File "/home/bytenet/bytenet.pythonanywhere.com/scripts/create_bot_posts.py", line 7, in <module>
2020-10-06 10:15:05,996: from helpers.link_preview_generator import get_link_preview
2020-10-06 14:40:25,771: Not Found: /robots.txt
2020-10-06 14:41:43,921: Not Found: /robots.txt
2020-10-06 14:42:17,723: Not Found: /robots.txt
2020-10-06 14:52:00,824: Not Found: /favicon.ico
2020-10-06 15:37:42,866: Error running WSGI application
2020-10-06 15:37:42,867: ModuleNotFoundError: No module named 'bytenet_pythonanywhere_com_wsgi'
2020-10-06 15:37:42,868: ***************************************************
2020-10-06 15:37:42,868: If you're seeing an import error and don't know why,
2020-10-06 15:37:42,868: we have a dedicated help page to help you debug:
2020-10-06 15:37:42,868: https://help.pythonanywhere.com/pages/DebuggingImportError/
2020-10-06 15:37:42,868: ***************************************************
2020-10-06 15:37:45,795: Error running WSGI application
2020-10-06 15:37:45,796: ModuleNotFoundError: No module named 'bytenet_pythonanywhere_com_wsgi'
2020-10-06 15:37:45,796: ***************************************************
2020-10-06 15:37:45,796: If you're seeing an import error and don't know why,
2020-10-06 15:37:45,796: we have a dedicated help page to help you debug:
2020-10-06 15:37:45,796: https://help.pythonanywhere.com/pages/DebuggingImportError/
2020-10-06 15:37:45,796: ***************************************************
2020-10-06 15:37:48,580: Error running WSGI application
2020-10-06 15:37:48,580: ModuleNotFoundError: No module named 'bytenet_pythonanywhere_com_wsgi'
2020-10-06 15:37:48,580: ***************************************************
2020-10-06 15:37:48,580: If you're seeing an import error and don't know why,
2020-10-06 15:37:48,580: we have a dedicated help page to help you debug:
2020-10-06 15:37:48,581: https://help.pythonanywhere.com/pages/DebuggingImportError/
2020-10-06 15:37:48,581: ***************************************************
2020-10-06 15:39:14,603: Error running WSGI application
2020-10-06 15:39:14,603: ModuleNotFoundError: No module named 'bytenet_pythonanywhere_com_wsgi'
2020-10-06 15:39:14,603: ***************************************************
2020-10-06 15:39:14,603: If you're seeing an import error and don't know why,
2020-10-06 15:39:14,603: we have a dedicated help page to help you debug:
2020-10-06 15:39:14,603: https://help.pythonanywhere.com/pages/DebuggingImportError/
2020-10-06 15:39:14,603: ***************************************************
These are the server logs:
2020-10-06 16:08:23 announcing my loyalty to the Emperor...
2020-10-06 16:08:37 worker 1 buried after 1 seconds
2020-10-06 16:08:37 goodbye to uWSGI.
2020-10-06 16:08:37 chdir(): No such file or directory [core/uwsgi.c line 1610]
2020-10-06 16:08:37 VACUUM: unix socket /var/sockets/bytenet.pythonanywhere.com/socket removed.
2020-10-06 16:08:38 *** Starting uWSGI 2.0.17.1 (64bit) on [Tue Oct 6 16:08:38 2020] ***
2020-10-06 16:08:38 compiled with version: 5.4.0 20160609 on 07 May 2020 19:40:56
2020-10-06 16:08:38 os: Linux-5.4.0-1020-aws #20-Ubuntu SMP Fri Jul 10 05:52:40 UTC 2020
2020-10-06 16:08:38 nodename: blue-liveweb7
2020-10-06 16:08:38 machine: x86_64
2020-10-06 16:08:38 clock source: unix
2020-10-06 16:08:38 pcre jit disabled
2020-10-06 16:08:38 detected number of CPU cores: 2
2020-10-06 16:08:38 current working directory: (unreachable)/etc/uwsgi/vassals
2020-10-06 16:08:38 detected binary path: /usr/local/bin/uwsgi
2020-10-06 16:08:38 *** dumping internal routing table ***
2020-10-06 16:08:38 [rule: 0] subject: path_info regexp: \.svgz$ action: addheader:Content-Encoding:gzip
2020-10-06 16:08:38 *** end of the internal routing table ***
2020-10-06 16:08:38 chdir() to /home/bytenet/
2020-10-06 16:08:38 limiting number of processes to 60...
2020-10-06 16:08:38 your processes number limit is 60
2020-10-06 16:08:38 your memory page size is 4096 bytes
2020-10-06 16:08:38 detected max file descriptor number: 123456
2020-10-06 16:08:38 building mime-types dictionary from file /etc/mime.types...
2020-10-06 16:08:38 552 entry found
2020-10-06 16:08:38 lock engine: pthread robust mutexes
2020-10-06 16:08:38 thunder lock: disabled (you can enable it with --thunder-lock)
2020-10-06 16:08:38 uwsgi socket 0 bound to UNIX address /var/sockets/bytenet.pythonanywhere.com/socket fd 3
2020-10-06 16:08:38 Python version: 3.7.0 (default, Aug 22 2018, 20:50:05) [GCC 5.4.0 20160609]
2020-10-06 16:08:38 *** Python threads support is disabled. You can enable it with --enable-threads ***
2020-10-06 16:08:38 Python main interpreter initialized at 0xbf7c70
2020-10-06 16:08:38 your server socket listen backlog is limited to 100 connections
2020-10-06 16:08:38 your mercy for graceful operations on workers is 60 seconds
2020-10-06 16:08:38 setting request body buffering size to 65536 bytes
2020-10-06 16:08:38 mapped 334256 bytes (326 KB) for 1 cores
2020-10-06 16:08:38 *** Operational MODE: single process ***
2020-10-06 16:08:38 initialized 38 metrics
2020-10-06 16:08:38 WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0xbf7c70 pid: 1 (default app)
2020-10-06 16:08:38 *** uWSGI is running in multiple interpreter mode ***
2020-10-06 16:08:38 gracefully (RE)spawned uWSGI master process (pid: 1)
2020-10-06 16:08:38 spawned uWSGI worker 1 (pid: 2, cores: 1)
2020-10-06 16:08:38 metrics collector thread started
2020-10-06 16:08:38 unable to stat() /var/www/bytenet_pythonanywhere_com_wsgi.py, events will be triggered as soon as the file is created
2020-10-06 16:08:38 spawned 2 offload threads for uWSGI worker 1
2020-10-06 16:10:22 Tue Oct 6 16:10:22 2020 - received message 0 from emperor
2020-10-06 16:10:22 SIGINT/SIGQUIT received...killing workers...
2020-10-06 16:10:23 worker 1 buried after 1 seconds
2020-10-06 16:10:23 goodbye to uWSGI.
2020-10-06 16:10:23 chdir(): No such file or directory [core/uwsgi.c line 1610]
2020-10-06 16:10:23 VACUUM: unix socket /var/sockets/bytenet.pythonanywhere.com/socket removed.
2020-10-06 16:10:23 *** Starting uWSGI 2.0.17.1 (64bit) on [Tue Oct 6 16:10:23 2020] ***
2020-10-06 16:10:23 compiled with version: 5.4.0 20160609 on 07 May 2020 19:40:56
2020-10-06 16:10:23 os: Linux-5.4.0-1020-aws #20-Ubuntu SMP Fri Jul 10 05:52:40 UTC 2020
2020-10-06 16:10:23 nodename: blue-liveweb7
2020-10-06 16:10:23 machine: x86_64
2020-10-06 16:10:23 clock source: unix
2020-10-06 16:10:23 pcre jit disabled
2020-10-06 16:10:23 detected number of CPU cores: 2
2020-10-06 16:10:23 current working directory: (unreachable)/etc/uwsgi/vassals
2020-10-06 16:10:23 detected binary path: /usr/local/bin/uwsgi
2020-10-06 16:10:23 *** dumping internal routing table ***
2020-10-06 16:10:23 [rule: 0] subject: path_info regexp: \.svgz$ action: addheader:Content-Encoding:gzip
2020-10-06 16:10:23 *** end of the internal routing table ***
2020-10-06 16:10:23 chdir() to /home/bytenet/
2020-10-06 16:10:23 limiting number of processes to 60...
2020-10-06 16:10:23 your processes number limit is 60
2020-10-06 16:10:23 your memory page size is 4096 bytes
2020-10-06 16:10:23 detected max file descriptor number: 123456
2020-10-06 16:10:23 building mime-types dictionary from file /etc/mime.types...
2020-10-06 16:10:23 552 entry found
2020-10-06 16:10:23 lock engine: pthread robust mutexes
2020-10-06 16:10:23 thunder lock: disabled (you can enable it with --thunder-lock)
2020-10-06 16:10:23 uwsgi socket 0 bound to UNIX address /var/sockets/bytenet.pythonanywhere.com/socket fd 3
2020-10-06 16:10:23 Python version: 3.7.0 (default, Aug 22 2018, 20:50:05) [GCC 5.4.0 20160609]
2020-10-06 16:10:23 *** Python threads support is disabled. You can enable it with --enable-threads ***
2020-10-06 16:10:23 Python main interpreter initialized at 0x7c9c70
2020-10-06 16:10:23 your server socket listen backlog is limited to 100 connections
2020-10-06 16:10:23 your mercy for graceful operations on workers is 60 seconds
2020-10-06 16:10:23 setting request body buffering size to 65536 bytes
2020-10-06 16:10:23 mapped 334256 bytes (326 KB) for 1 cores
2020-10-06 16:10:23 *** Operational MODE: single process ***
2020-10-06 16:10:23 initialized 38 metrics
2020-10-06 16:10:23 WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x7c9c70 pid: 1 (default app)
2020-10-06 16:10:23 *** uWSGI is running in multiple interpreter mode ***
2020-10-06 16:10:23 gracefully (RE)spawned uWSGI master process (pid: 1)
2020-10-06 16:10:23 spawned uWSGI worker 1 (pid: 2, cores: 1)
2020-10-06 16:10:23 metrics collector thread started
2020-10-06 16:10:23 unable to stat() /var/www/bytenet_pythonanywhere_com_wsgi.py, events will be triggered as soon as the file is created
2020-10-06 16:10:23 spawned 2 offload threads for uWSGI worker 1
I think there is some problem with wsgi files but if I didn't change anything then why did it happen? I haven't changed anything in my code and it suddenly stopped working... Please help me out here.