Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 on assets #234

Closed
celevra opened this issue Oct 20, 2016 · 1 comment
Closed

404 on assets #234

celevra opened this issue Oct 20, 2016 · 1 comment

Comments

@celevra
Copy link

@celevra celevra commented Oct 20, 2016

Hi,

i've build a docker container on ubuntu with the documention "Install from Source"
No errors on building and compiling.
Servers are starting
But when i try to connect i get
'Loading...'
In the console i see

GET http://ticketsystem.by.lk/assets/application-ce5f223fd72bf9f25a925cc7560a74d6c31bc29b9ac86ac4720206495e02abb2.css 
(index):9 GET http://ticketsystem.by.lk/assets/application-fdbf41d4e4d7db7e4dc49ffd4a5fb4531b28a573a8e7d17ed6bb7b8a17d19dde.js 
(index):8 GET http://ticketsystem.by.lk/assets/application-print-db172409c8422225ac73dfd79ca9fe0994704e3813ebdd759e19cc0e3b0eff6a.css 
(index):47 GET http://ticketsystem.by.lk/assets/images/icons.svg 

in the logs i get

I, [2016-10-20T08:47:15.121379 #112]  INFO -- : Started GET "/" for 148.251.237.232 at 2016-10-20 08:47:15 +0200
I, [2016-10-20T08:47:15.122611 #112]  INFO -- : Processing by InitController#index as HTML
I, [2016-10-20T08:47:15.123988 #112]  INFO -- :   Rendered init/index.html.erb within layouts/application (0.0ms)
I, [2016-10-20T08:47:15.125292 #112]  INFO -- : Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.4ms)
I, [2016-10-20T08:47:15.173691 #112]  INFO -- : Started GET "/assets/application-ce5f223fd72bf9f25a925cc7560a74d6c31bc29b9ac86ac4720206495e02abb2.css" for 148.251.237.232 at 2016-10-20 08:47:15 +0200
I, [2016-10-20T08:47:15.175127 #112]  INFO -- : Processing by ErrorsController#routing as CSS
I, [2016-10-20T08:47:15.175164 #112]  INFO -- :   Parameters: {"a"=>"assets/application-ce5f223fd72bf9f25a925cc7560a74d6c31bc29b9ac86ac4720206495e02abb2"}
E, [2016-10-20T08:47:15.176255 #112] ERROR -- : No route matches [GET] /assets/application-ce5f223fd72bf9f25a925cc7560a74d6c31bc29b9ac86ac4720206495e02abb2.css
E, [2016-10-20T08:47:15.176275 #112] ERROR -- : nil
I, [2016-10-20T08:47:15.177152 #112]  INFO -- :   Rendered inline template (0.4ms)
I, [2016-10-20T08:47:15.177979 #112]  INFO -- : Completed 404 Not Found in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)
I, [2016-10-20T08:47:15.197086 #112]  INFO -- : Started GET "/assets/application-fdbf41d4e4d7db7e4dc49ffd4a5fb4531b28a573a8e7d17ed6bb7b8a17d19dde.js" for 148.251.237.232 at 2016-10-20 08:47:15 +0200
I, [2016-10-20T08:47:15.198321 #112]  INFO -- : Processing by ErrorsController#routing as JS
I, [2016-10-20T08:47:15.198353 #112]  INFO -- :   Parameters: {"a"=>"assets/application-fdbf41d4e4d7db7e4dc49ffd4a5fb4531b28a573a8e7d17ed6bb7b8a17d19dde"}
E, [2016-10-20T08:47:15.199557 #112] ERROR -- : No route matches [GET] /assets/application-fdbf41d4e4d7db7e4dc49ffd4a5fb4531b28a573a8e7d17ed6bb7b8a17d19dde.js
E, [2016-10-20T08:47:15.199603 #112] ERROR -- : nil
I, [2016-10-20T08:47:15.200215 #112]  INFO -- :   Rendered inline template (0.2ms)
I, [2016-10-20T08:47:15.201082 #112]  INFO -- : Completed 404 Not Found in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)
I, [2016-10-20T08:47:15.224599 #112]  INFO -- : Started GET "/assets/application-print-db172409c8422225ac73dfd79ca9fe0994704e3813ebdd759e19cc0e3b0eff6a.css" for 148.251.237.232 at 2016-10-20 08:47:15 +0200
I, [2016-10-20T08:47:15.225871 #112]  INFO -- : Processing by ErrorsController#routing as CSS
I, [2016-10-20T08:47:15.225911 #112]  INFO -- :   Parameters: {"a"=>"assets/application-print-db172409c8422225ac73dfd79ca9fe0994704e3813ebdd759e19cc0e3b0eff6a"}
E, [2016-10-20T08:47:15.227062 #112] ERROR -- : No route matches [GET] /assets/application-print-db172409c8422225ac73dfd79ca9fe0994704e3813ebdd759e19cc0e3b0eff6a.css
E, [2016-10-20T08:47:15.227083 #112] ERROR -- : nil
I, [2016-10-20T08:47:15.228134 #112]  INFO -- :   Rendered inline template (0.5ms)
I, [2016-10-20T08:47:15.228826 #112]  INFO -- : Completed 404 Not Found in 3ms (Views: 0.7ms | ActiveRecord: 0.6ms)
I, [2016-10-20T08:47:15.287710 #112]  INFO -- : Started GET "/assets/images/icons.svg" for 148.251.237.232 at 2016-10-20 08:47:15 +0200
I, [2016-10-20T08:47:15.288910 #112]  INFO -- : Processing by ErrorsController#routing as
I, [2016-10-20T08:47:15.288938 #112]  INFO -- :   Parameters: {"a"=>"assets/images/icons"}
E, [2016-10-20T08:47:15.290182 #112] ERROR -- : No route matches [GET] /assets/images/icons.svg
E, [2016-10-20T08:47:15.290202 #112] ERROR -- : nil
I, [2016-10-20T08:47:15.290845 #112]  INFO -- :   Rendered inline template (0.4ms)
I, [2016-10-20T08:47:15.291669 #112]  INFO -- : Completed 404 Not Found in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)

the files are there:

root@ticketsystem:/opt/zammad# ls /opt/zammad/public/assets/
app
application-ce5f223fd72bf9f25a925cc7560a74d6c31bc29b9ac86ac4720206495e02abb2.css
application-ce5f223fd72bf9f25a925cc7560a74d6c31bc29b9ac86ac4720206495e02abb2.css.gz
application-fdbf41d4e4d7db7e4dc49ffd4a5fb4531b28a573a8e7d17ed6bb7b8a17d19dde.js
application-fdbf41d4e4d7db7e4dc49ffd4a5fb4531b28a573a8e7d17ed6bb7b8a17d19dde.js.gz
application-print-db172409c8422225ac73dfd79ca9fe0994704e3813ebdd759e19cc0e3b0eff6a.css
application-print-db172409c8422225ac73dfd79ca9fe0994704e3813ebdd759e19cc0e3b0eff6a.css.gz
chat
custom
error
fonts
form
images
print-57d400c28213ca8fb1fc899cd1f3cd91ec5073d4947e60b0b37f2dc2c9937140.css
print-57d400c28213ca8fb1fc899cd1f3cd91ec5073d4947e60b0b37f2dc2c9937140.css.gz
sounds
tests

what is wrong?

regards

celevra

@celevra

This comment has been minimized.

Copy link
Author

@celevra celevra commented Oct 20, 2016

you have to set RAILS_SERVE_STATIC_FILES to true

export RAILS_SERVE_STATIC_FILES=tru
@celevra celevra closed this Oct 20, 2016
@lrjbrual lrjbrual mentioned this issue Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.