[GH-ISSUE #563] resources 404 in log on first time opening page #424

Closed
opened 2026-02-27 16:39:15 +03:00 by kerem · 2 comments
Owner

Originally created by @Justinzobel on GitHub (Jun 18, 2015).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/563

Ubuntu 14.04.2

justin@host:~/webvirtmgr$ ./manage.py runserver ip:8000
WARNING:root:No local_settings file found.
WARNING:root:No local_settings file found.
Validating models...

0 errors found
June 18, 2015 - 09:46:25
Django version 1.5.5, using settings 'webvirtmgr.settings'
Development server is running at http://ip:8000/
Quit the server with CONTROL-C.
[18/Jun/2015 09:46:33] "GET / HTTP/1.1" 302 0
[18/Jun/2015 09:46:33] "GET /login/ HTTP/1.1" 200 2216
[18/Jun/2015 09:46:33] "GET /static/css/bootstrap.min.css HTTP/1.1" 404 1862
[18/Jun/2015 09:46:34] "GET /static/css/webvirtmgr.css HTTP/1.1" 404 1862
[18/Jun/2015 09:46:34] "GET /static/css/signin.css HTTP/1.1" 404 1862
[18/Jun/2015 09:46:34] "GET /static/js/jquery-1.10.2.js HTTP/1.1" 404 1862
[18/Jun/2015 09:46:34] "GET /static/img/favicon.ico HTTP/1.1" 404 1862

Happens when I open the webpage ip:8000, no styling etc:
screenshot from 2015-06-18 16-20-39

Originally created by @Justinzobel on GitHub (Jun 18, 2015). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/563 Ubuntu 14.04.2 justin@host:~/webvirtmgr$ ./manage.py runserver ip:8000 WARNING:root:No local_settings file found. WARNING:root:No local_settings file found. Validating models... 0 errors found June 18, 2015 - 09:46:25 Django version 1.5.5, using settings 'webvirtmgr.settings' Development server is running at http://ip:8000/ Quit the server with CONTROL-C. [18/Jun/2015 09:46:33] "GET / HTTP/1.1" 302 0 [18/Jun/2015 09:46:33] "GET /login/ HTTP/1.1" 200 2216 [18/Jun/2015 09:46:33] "GET /static/css/bootstrap.min.css HTTP/1.1" 404 1862 [18/Jun/2015 09:46:34] "GET /static/css/webvirtmgr.css HTTP/1.1" 404 1862 [18/Jun/2015 09:46:34] "GET /static/css/signin.css HTTP/1.1" 404 1862 [18/Jun/2015 09:46:34] "GET /static/js/jquery-1.10.2.js HTTP/1.1" 404 1862 [18/Jun/2015 09:46:34] "GET /static/img/favicon.ico HTTP/1.1" 404 1862 Happens when I open the webpage ip:8000, no styling etc: ![screenshot from 2015-06-18 16-20-39](https://cloud.githubusercontent.com/assets/1370117/8225613/008cb518-15d6-11e5-9674-c13c59743d18.png)
kerem closed this issue 2026-02-27 16:39:15 +03:00
Author
Owner

@retspen commented on GitHub (Jun 22, 2015):

$ ./manage.py runserver ip:8000 --setiings=webvirtmgr.settings-dev
<!-- gh-comment-id:114006778 --> @retspen commented on GitHub (Jun 22, 2015): ``` bash $ ./manage.py runserver ip:8000 --setiings=webvirtmgr.settings-dev ```
Author
Owner

@bcarroll commented on GitHub (Aug 22, 2018):

To resolve this issue you need to comment out the following lines in /etc/nginx/conf.d/webvirtmgr.conf

    #location /static/ {
    #    root /var/www/webvirtmgr/webvirtmgr; # or /srv instead of /var
    #    expires max;
    #}

Then restart nginx:
sudo service nginx restart

<!-- gh-comment-id:414876205 --> @bcarroll commented on GitHub (Aug 22, 2018): To resolve this issue you need to comment out the following lines in /etc/nginx/conf.d/webvirtmgr.conf ``` #location /static/ { # root /var/www/webvirtmgr/webvirtmgr; # or /srv instead of /var # expires max; #} ``` Then restart nginx: `sudo service nginx restart`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#424
No description provided.