-
Notifications
You must be signed in to change notification settings - Fork 110
Description
We are trying to upgrade from an old localshop 0.4.1 virtualenv (running on an Ubuntu 11.10 server) to a new version of localshop on a new server (Ubuntu 14.04).
What I've done:
- I've copied over the complete virtualenv, the source directory and the localshop.db to the new server and started localshop and confirmed everything continues to work as expected (essentially using the old localshop virtualenv on the new server).
- Stop localshop.
- In the virtualenv, upgrade localshop (and all dependencies) to the latest version (0.9.2), by doing a
pip install --upgrade localshop. - Run
localshop upgrade. The upgrade doesn't show any errors. - Start localshop.
After starting localshop back up again, the web interface is mostly full functional except trying to go to the Permissions->Credentials page, I get a "500 server error". (Hence, I can't manage credentials.)
The issue seems to be that it's trying to load the css and js from the wrong location for some reason. Here's a log snippet showing what I mean, the first bit going to the /permissions/credentials/ page, and the second bit, going to the /permissions/cidr/ page, where it's properly loading assets from the /assets/ path.
[2016-04-14 21:59:29 +0000] [11586] [DEBUG] GET /permissions/credentials/
[2016-04-14 21:59:29 +0000] [11583] [DEBUG] GET /permissions/credentials/bootstrap/css/bootstrap.css
[2016-04-14 21:59:29 +0000] [11586] [DEBUG] GET /permissions/credentials/jquery-1.7.1.min.js
[2016-04-14 21:59:29 +0000] [11583] [DEBUG] GET /permissions/credentials/bootstrap/css/bootstrap-responsive.css
[2016-04-14 21:59:29 +0000] [11582] [DEBUG] GET /permissions/credentials/bootstrap/js/bootstrap.js
[2016-04-14 22:08:38 +0000] [11581] [DEBUG] GET /permissions/cidr/
[2016-04-14 22:08:38 +0000] [11582] [DEBUG] GET /assets/bootstrap/css/bootstrap.css
[2016-04-14 22:08:38 +0000] [11583] [DEBUG] GET /assets/jquery-1.7.1.min.js
[2016-04-14 22:08:38 +0000] [11587] [DEBUG] GET /assets/bootstrap/css/bootstrap-responsive.css
[2016-04-14 22:08:38 +0000] [11586] [DEBUG] GET /assets/bootstrap/js/bootstrap.js
[2016-04-14 22:08:38 +0000] [11580] [DEBUG] GET /assets/bootstrap/img/glyphicons-halflings.png
[2016-04-14 22:08:38 +0000] [11577] [DEBUG] GET /assets/bootstrap/img/glyphicons-halflings-white.png
I've tried various permuations, including upgrading in small steps. Upgrading from 0.4.1 to 0.6.0 exhibits the same issue.
Incidentally, if I move the localshop.db out of the way and "start fresh" with a localshop init, I don't see the problem. With the clean installation, I am able to access the credentials page without issue.