Issue
The following error occurs while mirroring the packages:
- anaconda-server - ERROR - Exception on /static/css/app.css [GET]
Traceback (most recent call last):
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request()
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/helpers.py", line 926, in send_static_file
cache_timeout = self.get_send_file_max_age(filename)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/helpers.py", line 914, in get_send_file_max_age
return total_seconds(current_app.send_file_max_age_default)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/werkzeug/local.py", line 347, in __getattr__
return getattr(self._get_current_object(), name)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/config.py", line 33, in __get__
rv = self.get_converter(rv)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 47, in _make_timedelta
return timedelta(seconds=value)
TypeError: unsupported type for timedelta seconds component: NoneType
2019-01-09 12:48:33,960 - anaconda-server - ERROR - Exception on
/static/js/bundle.js [GET]
Traceback (most recent call last):
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/helpers.py", line 926, in send_static_file
cache_timeout = self.get_send_file_max_age(filename)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/helpers.py", line 914, in get_send_file_max_age
return total_seconds(current_app.send_file_max_age_default)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/werkzeug/local.py", line 347, in __getattr__
return getattr(self._get_current_object(), name)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/config.py", line 33, in __get__
rv = self.get_converter(rv)
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 47, in _make_timedelta
return timedelta(seconds=value)
TypeError: unsupported type for timedelta seconds component: NoneType
2019-01-09 12:48:34,037 - Access - INFO - 128.30.245.157 - -
[09/Jan/2019:12:48:34 ] "GET /static/img/apple-touch-icon.png -" 500 3101
2019-01-09 12:50:44,812 - anaconda-server - ERROR - Exception on
/static/js/bundle.js [GET]
Traceback (most recent call last):
File "/home/anaconda-server/.local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
Cause
anaconda-server-sync-conda is using pip packages instead of conda packages from .local directory which in turn produced from pip installation along with --user flag.
Solution
Delete the .local directory and restart supervisorctl :
supervisorctl restart all
NOTE: You may need to reinstall Anaconda Repository after deleting .localdirectory