Can't collectstatic
Hi,
I'm trying to get started with graphite, and I did good progress as I can see graphite-web is running, but it is not showing the left menu with the tree, only the top links: Documentation, Dashboard, Events, Login
Looking at the logs, there are two kinds of errors:
Loads of: "/usr/lib/
and missing files on /static such as:
"GET /static/
So I need to go and run collectstatic, right? But it does not work:
# PYTHONPATH=
You have requested to collect static files at the destination
location as specified in your settings:
/usr/
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
Traceback (most recent call last):
File "/usr/bin/
management.
File "/usr/lib/
utility.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
output = self.handle(*args, **options)
File "/usr/lib/
collected = self.collect()
File "/usr/lib/
for path, storage in finder.
File "/usr/lib/
for path in utils.get_
File "/usr/lib/
directories, files = storage.
File "/usr/lib/
for entry in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/usr/lib/
I guess I may be missing something silly here. Ideas? I'm running on Fedora 25, installed from fedora packages:
graphite2-
graphite-
Thanks a lot!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Peter Senna
- Solved:
- 2017-07-18
- Last query:
- 2017-07-18
- Last reply:
- 2017-07-17
Denis Zhdanov (deniszhdanov) said : | #1 |
Check files in ` /usr/share/
Peter Senna (peter-senna) said : | #2 |
Hi Dennis,
Thank you for the message. Unfortunately it did not help. I'm having issues calling the 'django-admin collectstatic', and my apache conf looks sort of sane, pasted it on the end of the email:
Any ideas of what I'm missing so 'django-admin collectstatic' will run?
Thanks a lot!
<VirtualHost *:80>
ServerName graphite-web
DocumentRoot "/usr/share/
ErrorLog /var/log/
CustomLog /var/log/
# Header set Access-
# Header set Access-
# Header set Access-
# Header set Access-
WSGIScriptAlias / /usr/share/
WSGIImportS
<Location "/content/">
SetHandler None
</Location>
Alias /media/ "/usr/lib/
<Location "/media/">
SetHandler None
</Location>
<Directory "/usr/share/
<IfModule mod_authz_core.c>
# Apache 2.4
#Require local
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
</VirtualHost>
Denis Zhdanov (deniszhdanov) said : | #3 |
Unfortunately, I do not know what's happened with your 'django-admin collectstatic', probably your Django installation is broken in someway.
Could you please show what's in your '/usr/share/
Peter Senna (peter-senna) said : | #4 |
Just to complement, adding Alias /static/ "/usr/share/
Peter Senna (peter-senna) said : | #5 |
Hi Dennis,
Thanks a lot for the support! My static folder is empty. See:
# pwd
/usr/share/graphite
# ls
graphite-web.wsgi static webapp
# ls static/
# ls webapp/
content
One thing I'm trying to solve is that pointing my browser to /static is giving me 404, but apache is not being kind enough to tell me where is it trying to get static from. Thanks again!
Peter Senna (peter-senna) said : | #6 |
So why doesn't the Install section of 'https:/
Try Graphite in Docker and have it running in seconds:
docker run -d\
--name graphite\
--restart=always\
-p 80:80\
-p 2003-2004:
-p 2023-2024:
-p 8125:8125/udp\
-p 8126:8126\
hopsoft/
This is portable, fast and easy to use. Why not a single pointer to this from the official documentation?
Denis Zhdanov (deniszhdanov) said : | #7 |
Because we still have no official docker image. And @hopsoft's one is outdated.
Denis Zhdanov (deniszhdanov) said : | #8 |
I'm doing exactly this now (official docker image based on @hopsoft and synthesize) btw
Peter Senna (peter-senna) said : | #9 |
Official Docker images is great news Dennis! Really great stuff!
Denis Zhdanov (deniszhdanov) said : | #10 |
Just pushed https:/
Will add link to http://
Peter Senna (peter-senna) said : | #11 |
Hi Denis,
I'm getting:
sudo docker pull graphiteapp/
Using default tag: latest
Trying to pull repository docker.
manifest unknown: manifest unknown
Guess you need a tag named latest to fix this.
Cheers!
On Tue, Jul 18, 2017 at 9:14 PM, Denis Zhdanov
<email address hidden> wrote:
> Your question #649208 on Graphite changed:
> https:/
>
> Denis Zhdanov posted a new comment:
> Just pushed https:/
>
> Will add link to http://
>
> --
> You received this question notification because you asked the question.
--
Peter
Denis Zhdanov (deniszhdanov) said : | #12 |
Ah, OK. Pushed latest, please try now.
Mariano (mobarrio) said : | #13 |
Hi Peter,
I have the same problem to you describe in the 1st post, but when I put in DEBUG mode to TRUE all work fine, and if change it to FALSE hang again.
/opt/graphite/
DEBUG = True
DEBUG = False <---- HANG!!!
[root@TestSSOO01 bin]# /opt/graphite/
Running Graphite from /opt/graphite/ under django development server
django-admin.py runserver --pythonpath /opt/graphite/
Running Graphite from /opt/graphite/ under django development server
django-admin.py runserver --pythonpath /opt/graphite/
Performing system checks...
System check identified no issues (0 silenced).
July 19, 2017 - 09:01:30
Django version 1.11.3, using settings 'graphite.settings'
Starting development server at http://
Quit the server with CONTROL-C.
[19/Jul/2017 09:01:36] "GET / HTTP/1.1" 200 962
[19/Jul/2017 09:01:36] "GET /composer? HTTP/1.1" 200 4127
[19/Jul/2017 09:01:36] "GET /browserheader HTTP/1.1" 200 2944
[19/Jul/2017 09:01:37] "GET /static/
[19/Jul/2017 09:01:37] "GET /static/
[19/Jul/2017 09:01:37] "GET /static/
[19/Jul/2017 09:01:37] "GET /static/
[19/Jul/2017 09:01:37] "GET /static/
[19/Jul/2017 09:01:37] "GET /static/
[19/Jul/2017 09:01:37] "GET /static/
[19/Jul/2017 09:01:38] "GET /static/
[19/Jul/2017 09:01:38] "GET /static/
[19/Jul/2017 09:01:38] "GET /static/
[19/Jul/2017 09:01:38] "GET /static/
[19/Jul/2017 09:01:38] "GET /static/
[19/Jul/2017 09:01:38] "GET /static/
DEBUG = True
[root@TestSSOO01 bin]# /opt/graphite/
Running Graphite from /opt/graphite/ under django development server
django-admin.py runserver --pythonpath /opt/graphite/
Running Graphite from /opt/graphite/ under django development server
django-admin.py runserver --pythonpath /opt/graphite/
Performing system checks...
System check identified no issues (0 silenced).
July 19, 2017 - 09:03:08
Django version 1.11.3, using settings 'graphite.settings'
Starting development server at http://
Quit the server with CONTROL-C.
[19/Jul/2017 09:03:12] "GET / HTTP/1.1" 200 962
[19/Jul/2017 09:03:12] "GET /browserheader HTTP/1.1" 200 2944
[19/Jul/2017 09:03:12] "GET /composer? HTTP/1.1" 200 4139
[19/Jul/2017 09:03:12] "GET /static/
[19/Jul/2017 09:03:12] "GET /static/
[19/Jul/2017 09:03:12] "GET /static/
[19/Jul/2017 09:03:12] "GET /static/
[19/Jul/2017 09:03:12] "GET /static/
[19/Jul/2017 09:03:12] "GET /static/
[19/Jul/2017 09:03:12] "GET /static/
[19/Jul/2017 09:03:12] "GET /static/
[19/Jul/2017 09:03:12] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /static/
[19/Jul/2017 09:03:13] "GET /render/
Brgds,
Mariano
Mariano (mobarrio) said : | #14 |
Hi again,
if you change your httpd.conf
<Directory />
AllowOverride none
Require all denied
</Directory>
to this:
<Directory />
AllowOverride none
Require all granted
</Directory>
Now all working fine!
M.