Forums

Not able to run any code

Hi,

I'm not able to run the web app or any individual program. Below is the Server log.

2018-01-27 07:21:36 unable to load app 0 (mountpoint='') (callable not found or import error)

2018-01-27 07:21:36 *** no app loaded. going in full dynamic mode ***

2018-01-27 07:21:36 *** uWSGI is running in multiple interpreter mode ***

2018-01-27 07:21:36 gracefully (RE)spawned uWSGI master process (pid: 23744)

2018-01-27 07:21:36 fork(): Resource temporarily unavailable [core/master_utils.c line 729]

2018-01-27 07:21:36 fork(): Resource temporarily unavailable [core/master_utils.c line 729]

2018-01-27 07:21:36 metrics collector thread started

2018-01-27 07:21:36 pthread_create(): Resource temporarily unavailable [core/utils.c line 3816]

2018-01-27 07:21:36 !!! unable to spawn stats pusher thread !!!

2018-01-27 07:21:36 chdir(): No such file or directory [core/uwsgi.c line 1590]

2018-01-27 07:21:36 VACUUM: unix socket /var/sockets/selvaprakash.pythonanywhere.com/socket removed.

Can you please help?

There's probably a traceback either in your server log or your error log to indicate what the problem was.

Sorry to paste a long log here. But I'm seriously lost on this one :(

2018-01-27 18:24:57 *** Starting uWSGI 2.0.14 (64bit) on [Sat Jan 27 18:24:53 2018] ***

2018-01-27 18:24:57 compiled with version: 5.4.0 20160609 on 22 November 2017 21:24:09

2018-01-27 18:24:57 os: Linux-4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018

2018-01-27 18:24:57 nodename: giles-liveweb4

2018-01-27 18:24:57 machine: x86_64

2018-01-27 18:24:57 clock source: unix

2018-01-27 18:24:57 pcre jit disabled

2018-01-27 18:24:57 detected number of CPU cores: 2

2018-01-27 18:24:57 current working directory: (unreachable)/etc/uwsgi/vassals

2018-01-27 18:24:57 detected binary path: /usr/local/bin/uwsgi

2018-01-27 18:24:57 *** dumping internal routing table ***

2018-01-27 18:24:57 [rule: 0] subject: path_info regexp: .svgz$ action: addheader:Content-Encoding:gzip

2018-01-27 18:24:57 *** end of the internal routing table ***

2018-01-27 18:24:57 chdir() to /home/selvaprakash/BillD

2018-01-27 18:24:57 limiting number of processes to 30...

2018-01-27 18:24:57 your processes number limit is 30

2018-01-27 18:24:57 your memory page size is 4096 bytes

2018-01-27 18:24:57 detected max file descriptor number: 123456

2018-01-27 18:24:57 building mime-types dictionary from file /etc/mime.types...

2018-01-27 18:24:57 536 entry found

2018-01-27 18:24:57 lock engine: pthread robust mutexes

2018-01-27 18:24:57 thunder lock: disabled (you can enable it with --thunder-lock)

2018-01-27 18:24:57 uwsgi socket 0 bound to UNIX address

/var/sockets/selvaprakash.pythonanywhere.com/socket fd 3

2018-01-27 18:24:57 Python version: 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4]

2018-01-27 18:24:57 *** Python threads support is disabled. You can enable it with --enable-threads ***

2018-01-27 18:24:57 Python main interpreter initialized at 0x1eaaf40

2018-01-27 18:24:57 your server socket listen backlog is limited to 100 connections

2018-01-27 18:24:57 your mercy for graceful operations on workers is 60 seconds

2018-01-27 18:24:57 setting request body buffering size to 65536 bytes

2018-01-27 18:24:57 mapped 500928 bytes (489 KB) for 2 cores

2018-01-27 18:24:57 *** Operational MODE: preforking ***

2018-01-27 18:24:57 initialized 50 metrics

2018-01-27 18:24:57 OpenBLAS blas_thread_init: pthread_create: Resource temporarily unavailable

2018-01-27 18:24:57 OpenBLAS blas_thread_init: RLIMIT_NPROC 30 current, 30 max

2018-01-27 18:24:57 Traceback (most recent call last):

2018-01-27 18:24:57 File "/bin/user_wsgi_wrapper.py", line 200, in <module>

2018-01-27 18:24:57

2018-01-27 18:24:57 application = Wrapper(load_wsgi_application())

2018-01-27 18:24:57 File "/bin/user_wsgi_wrapper.py", line 196, in load_wsgi_application

2018-01-27 18:24:57

2018-01-27 18:24:57 return import_module(os.environ['WSGI_MODULE']).application

2018-01-27 18:24:57 File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module

2018-01-27 18:24:57

2018-01-27 18:24:57 import(name)

2018-01-27 18:24:57 File "/var/www/selvaprakash_pythonanywhere_com_wsgi.py", line 18, in <module>

2018-01-27 18:24:57

2018-01-27 18:24:57 from fileupload_flask import application

2018-01-27 18:24:57 File "/home/selvaprakash/BillD/fileupload_flask.py", line 4, in <module>

2018-01-27 18:24:57
2018-01-27 18:24:57 import Consolidated

2018-01-27 18:24:57 File "/home/selvaprakash/BillD/Consolidated.py", line 1, in <module>

2018-01-27 18:24:57

2018-01-27 18:24:57 import pandas as pd

2018-01-27 18:24:57 File "/home/selvaprakash/.local/lib/python2.7/site-packages/pandas/init.py", line 13, in <module>

2018-01-27 18:24:57

2018-01-27 18:24:57 import(dependency)

2018-01-27 18:24:57 File "/usr/local/lib/python2.7/dist-packages/numpy/init.py", line 180, in <module>

2018-01-27 18:24:57

2018-01-27 18:24:57 from . import add_newdocs

2018-01-27 18:24:57 File "/usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 13, in <module>

2018-01-27 18:24:57

2018-01-27 18:24:57 from numpy.lib import add_newdoc

2018-01-27 18:24:57 File "/usr/local/lib/python2.7/dist-packages/numpy/lib/init.py", line 8, in <module>

2018-01-27 18:24:57

2018-01-27 18:24:57 from .type_check import *

2018-01-27 18:24:57 File "/usr/local/lib/python2.7/dist-packages/numpy/lib/type_check.py", line 11, in <module>

2018-01-27 18:24:57

2018-01-27 18:24:57 import numpy.core.numeric as _nx

2018-01-27 18:24:57 File "/usr/local/lib/python2.7/dist-packages/numpy/core/init.py", line 14, in <module>

2018-01-27 18:24:57

2018-01-27 18:24:57 from . import multiarray

2018-01-27 18:24:57 KeyboardInterrupt

2018-01-27 18:24:57

2018-01-27 18:24:57 unable to load app 0 (mountpoint='') (callable not found or import error)

2018-01-27 18:24:57 *** no app loaded. going in full dynamic mode ***

2018-01-27 18:24:57 *** uWSGI is running in multiple interpreter mode ***

2018-01-27 18:24:57 gracefully (RE)spawned uWSGI master process (pid: 18896)

2018-01-27 18:24:57 fork(): Resource temporarily unavailable [core/master_utils.c line 729]

2018-01-27 18:24:57 fork(): Resource temporarily unavailable [core/master_utils.c line 729]

2018-01-27 18:24:57 metrics collector thread started

2018-01-27 18:24:57 pthread_create(): Resource temporarily unavailable [core/utils.c line 3816]

2018-01-27 18:24:57 !!! unable to spawn stats pusher thread !!!

2018-01-27 18:24:57 chdir(): No such file or directory [core/uwsgi.c line 1590]

2018-01-27 18:24:57 VACUUM: unix socket /var/sockets/selvaprakash.pythonanywhere.com/socket removed.

It looks like you're not able to import multiarray. See our help page for how to debug that: http://help.pythonanywhere.com/pages/DebuggingImportError/

Umm, I think this is related to the limitations imposed on the shared hosting. Python threads are disabled, so openBlas fails and raises an error.

Here they also report some problems with openBlas when limitations are imposed.

Not sure how you can enable the threads, though

We do not allow threads in web apps. So it's possible that that will not work in a web app.