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

[Alpha.17] Admin panel not available #8216

Closed
PaszaVonPomiot opened this issue Mar 23, 2017 · 11 comments · Fixed by #8227
Closed

[Alpha.17] Admin panel not available #8216

PaszaVonPomiot opened this issue Mar 23, 2017 · 11 comments · Fixed by #8227

Comments

@PaszaVonPomiot
Copy link

Issue Summary

Visiting http://............./ghost/ produces error "404 - Resource could not be found".
Error is different from #8126

Steps to Reproduce

  1. Install clean Ghost alpha.17
  2. Set up config.production.json with password auth
  3. Open ghost admin URL

Technical details:

Ghost Version: alpha.17
Node Version: v6.10.0
OS: Debian 3.16.39-1+deb8u1
Database: MariaDB
Browser: Comodo Dragon

Log

ERROR [2017-03-23 01:22:17] "GET /ghost/" 404 3ms

NAME: NotFoundError
CODE: ENOENT
MESSAGE: Resource could not be found.

level:normal

NotFoundError: Resource could not be found.
    at new NotFoundError (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/ghost-ignition/lib/errors/index.js:87:23)
    at prepareError (/var/www/ghost/versions/1.0.0-alpha.17/core/server/middleware/error-handler.js:65:19)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:71:5)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:67:12)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/response.js:424:7
    at SendStream.onerror (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/response.js:998:5)
    at emitOne (events.js:96:13)
    at SendStream.emit (events.js:188:7)
    at SendStream.error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/send/index.js:282:17)
    at SendStream.onStatError (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/send/index.js:433:12)
    at onstat (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/send/index.js:734:26)
    at FSReqWrap.oncomplete (fs.js:123:15)

Error: ENOENT: no such file or directory, stat '/var/www/ghost/versions/1.0.0-alpha.17/core/server/admin/views/default-prod.html'
    at Error (native)

ERROR [2017-03-23 01:22:17] "GET /ghost/assets/ghost.min.css?v=9751a65864" 404 2ms

NAME: NotFoundError
CODE: ENOENT
MESSAGE: Resource could not be found.

level:normal

NotFoundError: Resource could not be found.
    at new NotFoundError (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/ghost-ignition/lib/errors/index.js:87:23)
    at prepareError (/var/www/ghost/versions/1.0.0-alpha.17/core/server/middleware/error-handler.js:65:19)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:71:5)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:67:12)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:67:12)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:67:12)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)

Error: ENOENT: no such file or directory, stat '/var/www/ghost/versions/1.0.0-alpha.17/core/built/assets/ghost.min.css'
    at Error (native)

ERROR [2017-03-23 01:22:17] "GET /ghost/assets/img/404-ghost.png?v=9751a65864" 404 7ms

NAME: NotFoundError
CODE: ENOENT
MESSAGE: Resource could not be found.

level:normal

NotFoundError: Resource could not be found.
    at new NotFoundError (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/ghost-ignition/lib/errors/index.js:87:23)
    at prepareError (/var/www/ghost/versions/1.0.0-alpha.17/core/server/middleware/error-handler.js:65:19)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:71:5)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:67:12)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:67:12)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)
    at Layer.handle_error (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/layer.js:67:12)
    at trim_prefix (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:315:13)
    at /var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:335:12)
    at next (/var/www/ghost/versions/1.0.0-alpha.17/node_modules/express/lib/router/index.js:275:10)

Error: ENOENT: no such file or directory, stat '/var/www/ghost/versions/1.0.0-alpha.17/core/built/assets/img/404-ghost.png'
    at Error (native)
@ReidWeb
Copy link

ReidWeb commented Mar 23, 2017

I can confirm that I am able to reproduce this exact issue, along with another user in the Slack #help channel yesterday.

Technical details:

Ghost Version: alpha.17
Node Version: v4.8.0
OS: MacOS 10.12.3
Database: MySQL
Browser: Google Chrome

@kevinansfield
Copy link
Member

kevinansfield commented Mar 23, 2017

@PaszaVonPomiot can you check if this file exists for you? /var/www/ghost/versions/1.0.0-alpha.17/core/server/admin/views/default-prod.html

I've checked the alpha.17 release zip and it contains the built production files. How did you install/upgrade?

@joepierce
Copy link

Hello, @PaszaVonPomiot -- here is what I found in that directory
screen shot 2017-03-23 at 9 05 09 am

@kevinansfield
Copy link
Member

@joepierce that doesn't look correct, if you're missing the views folder there then you seem to be missing the built client files. How did you install/upgrade Ghost?

@joepierce
Copy link

details:
Ubuntu 16.04.2 LTS
nginx 1.10.0
MariaDB 10.1.22
nodejs 6.10.1
npm 3.10.10
Ghost-CLI Version: 1.0.0-alpha.14
Ghost 1.0.0-alpha.17
Let's Encrypt SSL

@kevinansfield
Copy link
Member

@joepierce by "how did you install/upgrade Ghost" I mean the steps or commands that you used

@joepierce
Copy link

joepierce commented Mar 23, 2017

newunixuser@yoursite:~# yarn global add ghost-cli
newunixuser@yoursite:~# cd /var/www/html/
newunixuser@yoursite:/var/www/html# sudo ghost install

(note: I edited this to show the relevant commands to keep the thread readable -- @kevinansfield)

@joepierce
Copy link

that's every step ^^^

@kevinansfield
Copy link
Member

@acburdine is there any reason you know of that a ghost-cli install would miss the built client files?

@acburdine
Copy link
Member

So I just got around to testing this out, and it looks like what was published to npm as alpha.17 (that's how Ghost-CLI gets the download) did not have the built index.html that Ghost-Admin needs. Something must have gotten borked with how Ghost was last published.

@acburdine
Copy link
Member

The other errors are caused (I think) because of browser caching.

ErisDS added a commit to ErisDS/Ghost that referenced this issue Mar 23, 2017
fixes TryGhost#8216

- Admin templates are now html files, we need to not ignore them
acburdine pushed a commit that referenced this issue Mar 23, 2017
fixes #8216

- Admin templates are now html files, we need to not ignore them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants
@kevinansfield @ReidWeb @acburdine @PaszaVonPomiot @joepierce and others