Error: ENOENT: no such file or directory, open '/app/core/server/public/ghost.min.css'

Hi, I’m running ghost compiled from source into a custom docker container (I didn’t want the automatic git updates for stability reasons), and I’m seeing this error pretty often in the logs:

[2021-11-03 00:59:29] ERROR “GET /{site name}/public/ghost.min.css?v=192afabab3” 500 5ms

ENOENT: no such file or directory, open ‘/app/core/server/public/ghost.min.css’

Error ID:
4c8491a0-3c41-11ec-aa48-e965a6e18cb7

Error Code:
ENOENT



at /app/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
at next (/app/node_modules/express/lib/router/index.js:275:10)
at Layer.handle_error (/app/node_modules/express/lib/router/layer.js:67:12)
at trim_prefix (/app/node_modules/express/lib/router/index.js:315:13)
at /app/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)

Error: ENOENT: no such file or directory, open ‘/app/core/server/public/ghost.min.css’

[2021-11-03 00:59:29] ERROR “GET /{site name}/public/ghost.min.css?v=192afabab3” 500 3ms

ENOENT: no such file or directory, open ‘/app/core/server/public/ghost.min.css’

Error ID:
4c9114c0-3c41-11ec-aa48-e965a6e18cb7

Error Code:
ENOENT

Any ideas? No errors are thrown 99%+ of the time or perhaps even 99.5% of the time, but even seeing this error occasionally is disconcerting. Thanks!

Sounds like you have missed some steps in building Ghost from source as one of the files hasn’t been generated.

I’ve pushed a change that will make this 404 rather than error, but you still need to make sure you follow all the steps for installing.

Thanks for the hint, I did indeed miss a step: grunt postcss. And now I kind of understand why it would throw a 5xx error since it’s kind of a server misconfiguration, and ghost.css works just fine even if it’s not minified.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.