Logo 404 Not Found

I’ve just setup Invoice Ninja v5 using Docker. I uploaded my Logo and I see that it exists in my volume, but the Developer Console shows a 404. It tries to load the Image from the following url:

https://my.invoiceninja.tld/storage/mSLtDC9QzqV6GdMTKnWUGfmabgUqlWTw0X4SHdj02Fc0b2bZKpIy4RtCc4Ti7K4F/zZ3klrhoZX7ScdpDG5I5gjq8kEVF0gQ66pYP90s8.png

In my docker container I find the file at:

~/storage/app/public/mSLtDC9QzqV6GdMTKnWUGfmabgUqlWTw0X4SHdj02Fc0b2bZKpIy4RtCc4Ti7K4F/zZ3klrhoZX7ScdpDG5I5gjq8kEVF0gQ66pYP90s8.png

Here is my nginx config:

server {                                                                                                                                 
  listen 80;                                                                                                                             
                                                                                                                                        
  root /var/www/app/public;                                                                                                              
  index index.php;                                                                                                                       
  client_max_body_size 20M;                                                                                                              
                                                                                                                                        
  location / {                                                                                                                           
    try_files $uri $uri/ =404;                                                                                                           
  }                                                                                                                                      
                                                                                                                                        
  if (!-e $request_filename) {                                                                                                           
    rewrite ^(.+)$ /index.php?q= last;                                                                                                   
  }                                                                                                                                      
                                                                                                                                        
  location ~ \.php$ {                                                                                                                    
    fastcgi_split_path_info ^(.+\.php)(/.+)$;                                                                                            
    fastcgi_pass invoiceninja:9000;                                                                                                      
    fastcgi_index index.php;                                                                                                             
    include fastcgi_params;                                                                                                              
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;                                                                    
    fastcgi_intercept_errors off;                                                                                                        
    fastcgi_buffer_size 16k;                                                                                                             
    fastcgi_buffers 4 16k;                                                                                                               
  }                                                                                                                                      
                                                                                                                                        
  location ~ /\.ht {                                                                                                                     
    deny all;                                                                                                                            
  }                                                                                                                                      
} 

This nginx container runs behind a Traefik proxy, which handles TLS.

Hi,

It may help to run sudo docker-compose exec app php artisan storage:link

1 Like

This helped! Thanks alot! :blush: