Having issues with running any scripts
See original GitHub issueHi,
Just setup wooey for the first time and imported a simple script, but can’t seem to get it to run anything. Whenever I run the script, it fails to ever complete or error out, and I see the following output to stdout by the runserver proc:
[22/May/2018 14:37:58] "GET /jobs/5/jsonhtml HTTP/1.1" 500 23741
Internal Server Error: /jobs/5/jsonhtml
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 328, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: no such table: wooey_cache_table
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py", line 88, in dispatch
return handler(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/generic/detail.py", line 117, in get
return self.render_to_response(context)
File "/usr/local/lib/python3.6/site-packages/wooey/views/wooey_celery.py", line 248, in render_to_response
'stdout': context['job_info']['job'].get_stdout(),
File "/usr/local/lib/python3.6/site-packages/wooey/models/core.py", line 268, in get_stdout
rt = self.get_realtime().get('stdout')
File "/usr/local/lib/python3.6/site-packages/wooey/models/core.py", line 261, in get_realtime
out = cache.get(self.get_realtime_key())
File "/usr/local/lib/python3.6/site-packages/django/core/cache/backends/db.py", line 62, in get
"WHERE cache_key = %%s" % table, [key])
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python3.6/site-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 328, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: wooey_cache_table
NoneType: None
NoneType: None
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Script Error: What It Is And How To Fix It - Lifewire
Load the web page again. A script error, especially an error that indicates a script is taking too long to run, can be...
Read more >What causes a Script error and how to solve them · Raygun Blog
While Script error is caused by violating the browser's same-origin policy, a Long Running Script indicates performance issues. Every browser ...
Read more >FIX: Not responding due to a long-running script error
The most common cause of not responding due to a long-running script error is if the script debugging option is disabled. And to...
Read more >Problems "Long Running Script." - Microsoft Community
Occasionally a script error can be caused by an error in downloading a webpage, but more often it is an error in the...
Read more >Fix for PowerShell Script cannot be loaded because running ...
How do you enable running scripts is disabled on this system error? To fix this issue, we have to set the execution policy,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Oh, I bet it is because the command
python manage.py createcachetablehas not been run. Try running that. It may need to be added to the bootstrap script.I will test on that when I have some time. Here are some ideas: