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 for some assets after installing from git repo #657

Closed
jgbarah opened this issue Jun 22, 2016 · 1 comment
Closed

404 for some assets after installing from git repo #657

jgbarah opened this issue Jun 22, 2016 · 1 comment

Comments

@jgbarah
Copy link

jgbarah commented Jun 22, 2016

I've installed from the git repo. Everything seems to go smoothly until I launch the server. But then, some JavaScript and CSS assets seem to be missing.

The procedure for installation (in a Python virtualenv of its own) was the one described in installation docs:

git clone https://github.com/airbnb/caravel.git
cd caravel
pip install -e .
fabmanager create-admin --app caravel
caravel db upgrade
caravel init
caravel load_examples
caravel runserver -d

After this, I see in the browser (pointed to http://localhost:8088 ) the login page. I log in with the admin account, and that's when I see 404 errors in the runserver log:

2016-06-22 23:57:56,419:WARNING:werkzeug: * Debugger is active!
2016-06-22 23:57:56,421:INFO:werkzeug: * Debugger pin code: 283-610-078
2016-06-22 23:58:41,270:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET / HTTP/1.1" 302 -
2016-06-22 23:58:41,484:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET /caravel/welcome HTTP/1.1" 200 -
2016-06-22 23:58:41,571:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET /static/assets/node_modules/font-awesome/css/font-awesome.min.css HTTP/1.1" 404 -
2016-06-22 23:58:41,608:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET /static/assets/stylesheets/caravel.css HTTP/1.1" 200 -
2016-06-22 23:58:41,612:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET /static/appbuilder/css/flags/flags16.css HTTP/1.1" 200 -
2016-06-22 23:58:41,615:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET /static/assets/javascripts/dist/css-theme.entry.js HTTP/1.1" 404 -
2016-06-22 23:58:41,618:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET /static/assets/javascripts/dist/welcome.entry.js HTTP/1.1" 404 -
2016-06-22 23:58:41,743:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET /static/assets/javascripts/dist/welcome.entry.js HTTP/1.1" 404 -
2016-06-22 23:58:41,817:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET /static/assets/images/caravel_logo.png HTTP/1.1" 200 -
2016-06-22 23:58:41,840:INFO:werkzeug:127.0.0.1 - - [22/Jun/2016 23:58:41] "GET /static/assets/images/loading.gif HTTP/1.1" 200 -

Any hint?

Note: I'm trying to install from the git repo because I had the problem with cryptography versions that prevented me from just pip install caravel.

@jgbarah
Copy link
Author

jgbarah commented Jun 22, 2016

Oooops. I guess I could solve it. I followed the instructions in CONTRIBUTING.md for creating the assets, and now it seems to work (no more 404, everything is a nice 200 now):

cd caravel/assets/
npm install
npm run prod
caravel runserver -d

And again, pointing the browser to http://localhost:8088, now works!

Therefore, I'm closing this one. Sorry for the noise.

@jgbarah jgbarah closed this as completed Jun 22, 2016
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.3 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.3 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.3 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.3 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
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

No branches or pull requests

1 participant