--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qatrack/b7f5781c-76a6-4b9e-bf93-2a39e5b49eadn%40googlegroups.com.
Hello,
following the info in your answers I find out that actually the data are the located in ~/qatrackplus/qatrack/media/uploads/testinstance/822/ but the browser is pointing to /media/upload/testinstance/822. That's why it does not work. Now, any suggestion to fix it?
About docker installation, I wanted to perform a normal installation on Ubuntu following the installation instructions in the documentation: https://docs.qatrackplus.com/en/latest/install/linux.html#new-installation
Unfortunatelly, I got stuck with dependencies at the following step:
cd ~/web/qatrackplus pip install -r requirements/mysql.txt
At the end, Docker was for me the only way to perform installation quickly
BR
PaoloDear Randy,
I modify my nginx.conf as you suggested:
events {
worker_connections 1024;
}
http {
client_max_body_size 100M;
include /etc/nginx/mime.types;
server {
listen 80;
charset utf-8;
location /static {
alias /usr/src/qatrackplus/qatrack/static;
}
location /media {
alias /usr/src/qatrackplus/qatrack/media;
}
location / {
proxy_pass http://qatrack-django:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
}
}
BTW the problem is not fixed yet.
When I review my test I got still the NOT found error in the
browser :
Randy,
it is still not working :(
This is my nginx.conf now:
events {
worker_connections 1024;
}
http {
client_max_body_size 100M;
include /etc/nginx/mime.types;
server {
listen 80;
charset utf-8;
location /static {
alias /usr/src/qatrackplus/qatrack/static;
}
location /media {
alias /usr/src/qatrack/qatrackplus/qatrack/media;
}
location / {
proxy_pass http://qatrack-django:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
}
}
}
This is the link in the browser:
http://10.10.9.140/media/uploads/testinstance/842/pf-image_2021-03-29_6c9e23.png
and this is the file location:
mdt@MDT:~/qatrack/qatrackplus/qatrack/media/uploads/testinstance/842$
ls -lF
total 3208
-rw------- 1 root root 2835002 bře 29 08:55
pf0-2021-03-17_2021-03-29_2f57e4.dcm
-rw-r--r-- 1 root root 444929 bře 29 08:55
pf-image_2021-03-29_6c9e23.png
BR
Paolo
Randy,
problem FIXED!!!
I added the directive for media in docker-compose.yml and after restart it started to work correctly.
Thanks a lot
Paolo