I have installed Airflow - 2.0.0.dev0 using https://github.com/apache/airflow/blob/master/INSTALL
and solved all dependency issues.
Now, these following three things working fine without throwing errors
```
airflow db init
airflow scheduler
airflow webserver -p 8080
But on airflow webserver homepage, it's showing loading continuously(in *Recent Tasks*, *Last Run* and *DAG Runs* columns)
On browser console, it is showing these errors
>home:46 GET http://localhost:8080/static/ net::ERR_ABORTED 404 (NOT FOUND)
>home:2782 GET http://localhost:8080/static/ net::ERR_ABORTED 404 (NOT FOUND)
>home:2767 GET http://localhost:8080/static/appbuilder/fonts/glyphicons-halflings-regular.woff2 net::ERR_ABORTED 404 (NOT FOUND)
>home:2782 GET http://localhost:8080/static/ net::ERR_ABORTED 404 (NOT FOUND)
>home:2793 GET http://localhost:8080/static/ net::ERR_ABORTED 404 (NOT FOUND)
>home:2794 .........
>home:2795 .........
>home:2796 .........
>home:2797 GET http://localhost:8080/static/ net::ERR_ABORTED 404 (NOT FOUND)
>home:2854 Uncaught TypeError: $input.typeahead is not a function
at home:2854
You might be missing NPM dependencies, run the following command from the root:
./airflow/www/compile_assets.sh
OR
if [[ -d airflow/www/static/dist ]]; then
rm -f airflow/www/static/dist/*
fi
cd airflow/www/
npm install
npm run build
cd ../..
Related
https://github.com/naftalib/news-feed
Get a blank page, dev tools gives this error on multiple resources;
Failed to load resource: the server responded with a status of 404 (Not Found)
In the end the problem was that the .gitattributes file was mistakenly deleted from the public folder when cleaning up files.
I configured Nginx, uwsgi and Django with help of this tutorial:
https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html. But I'm not using a socket, a wsgi ini file, a system wide installation or the emperor mode.
The problem that occurs is a 403 - Forbidden. But this error seems to occur randomly across machines and browsers. For example I can connect to the website via Edge with no problem, but Firefox on the same machine throws a 403 (I use a win home 64 bit machine). Firefox on my Iphone 5 connects with no problem as well as Safari.
I red that this error may occur with wrong permissions but I set the permissions recursively like this:
chown -R kltc:kltc /home (axample)
chmod -R ug+r /home (example)
The only change I made to Nginx (/etc/nginx/nginx.conf) was uncommenting the 'server_names_hash_bucket_size 64'.
How is this possible ?
To be clear, the debug toolbar DOES appear. My problem is that when I enable the Debug Toolbar, all my javascript and css files fail to load.
My page loses all formatting but does still load the content. I am using chrome, which under the console prints something like this:
Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/loggedin.css?h=201e99 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/estimates.tabs.css?h=64c8f9 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/jquery.console-log.js Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/theme/jquery-ui.custom.css Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/jquery-ui-timepicker-addon.js?h=7e5e4a Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/jquery.if.min.js?h=e69918 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/base.js?h=4b783f Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/estimates.summary.show.css?h=0dd5d5 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/jquery.floatThead.min.js?h=7f4ca5 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/reset.css?h=fbd5ac Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/js/estimates.section.sortable.js?h=2ea052 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/loggedin.css?h=201e99 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/estimates.tabs.css?h=64c8f9 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/estimates.summary.show.css?h=0dd5d5 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/reset.css?h=fbd5ac Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/stylesheets/base.css?h=fcefb2 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
http://127.0.0.1:8000/static/theme/jquery-ui.custom.css Failed to load resource: the server responded with a status of 404 (NOT FOUND)
I am using debug_toolbar 1.3.2, django1.5.0 and python 2.7.6
My project structure has
project_dir
project
settings
settings.py
static
images
js
scss
stylesheets
In my settings file:
DEBUG = True
DEBUG_TOOLBAR = True
#....middleware
#....other Installed apps
cd_up = lambda x: os.path.split(x)[0]
SETTINGS_DIR = dirname(os.path.abspath(__file__))
APP_DIR = cd_up(SETTINGS_DIR)
PROJ_DIR = cd_up(APP_DIR)
MEDIA_ROOT = '/tmp'
MEDIA_URL = ''
STATIC_URL = '/static/'
STATIC_ROOT = '{}/static/'.format(APP_DIR)
if DEBUG_TOOLBAR:
INSTALLED_APPS += ('django.contrib.staticfiles','debug_toolbar',)
MIDDLEWARE_CLASSES += debug_toolbar.middleware.DebugToolbarMiddleware',)
INTERNAL_IPS = ('127.0.0.1',)
DEBUG_TOOLBAR_PANELS = (
#'debug_toolbar.panels.version.VersionDebugPanel',
#'debug_toolbar.panels.timer.TimerDebugPanel',
#'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
#'debug_toolbar.panels.headers.HeaderDebugPanel',
#'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
#'debug_toolbar.panels.template.TemplateDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
#'debug_toolbar.panels.signals.SignalDebugPanel',
#'debug_toolbar.panels.logger.LoggingPanel',
)
Naturally I cannot send any ajax request and setting DEBUG_TOOLBAR to false resolves all issues.
This is a condensed version, but if any other information is needed I'll update. Sorry, I'm still kind of new to SO. Thanks
UPDATE:
The 404 errors appear when running ./manage.py runserver --insecure
Otherwise the resource fails with a message of net::ERR_NETWORK_CONNECTION_RESET
I am not sure what is happening, but here are a few points to check:
When DEBUG_TOOLBAR is false, is django.contrib.staticfiles in INSTALLED_APPS? If it was added, this line
INSTALLED_APPS += ('django.contrib.staticfiles','debug_toolbar',)
can cause a duplicate app name. It should not cause any problem, but you can try removing the duplicate.
Are you sure DEBUG is set to True? When DEBUG is False, the development server refuse to serve static files (CONNECTION RESET?), and if you add --insecure option, it serves static files. This is like what you described.
Have you overrided the url mapping of "/static/" in urls.py?
Are you starting this server in a virtual machine? If so, you can try starting your server with:
python manage.py runserver 0.0.0.0:8000
and add your virtual machine's IP addresses to INTERNAL_IP.
I think this happens when you are using a virtual environment. The problem is that Django packages are installed there and the project can't access the files. You can fix that by running (based on your python version) python3 manage.py collectstatic in the console. This is how I fixed this problem on my end. Hope it helps your case
Following this https://github.com/yeoman/generator-ember tutorial to use EmberJS with Yeomane, after running grunt server the browser is blank.
I expected to see this page but nothing shows up:![enter image description here][1]
UPDATE:
console error:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/styles/style.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/jquery/jquery.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/handlebars/handlebars.runtime.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/ember/ember.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/ember-data-shim/ember-data.js
Uncaught ReferenceError: Ember is not defined compiled-templates.js:1
Uncaught ReferenceError: Ember is not defined combined-scripts.js:3
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/affix.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/alert.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/dropdown.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/tooltip.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/modal.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/transition.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/button.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/popover.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/carousel.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/scrollspy.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/collapse.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/bower_components/bootstrap-sass/js/tab.js
Update 2:
works-Mac:myemberapp1 work$ grunt server
Running "server" task
Running "clean:server" (clean) task
Running "replace:app" (replace) task
Replace app/index.html -> .tmp/index.html
Running "concurrent:server" (concurrent) task
Running "emberTemplates:dist" (emberTemplates) task
File ".tmp/scripts/compiled-templates.js" created.
Done, without errors.
Running "compass:server" (compass) task
Done, without errors.
Running "neuter:app" (neuter) task
Running "connect:livereload" (connect) task
Started connect web server on localhost:9000.
Running "open:server" (open) task
Running "watch" task
Waiting...
For the specific error Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/styles/style.css, you should also check that you have got the compass server installed. That is:
gem install compass
To check that compass is running correctly, run grunt serve --verbose and check the output for any errors, such as:
in `to_specs': Could not find compass (>= 0) amongst [...] (Gem::LoadError)
After the scaffolding is complete, you must run the commands bower install and npm install to install the required packages (described in the bower.json and package.json files. After this, grunt will be able to serve up the dependencies.
As you build up your project and use introduce new dependencies, you'll add them by editing your bower.json and/or package.json files and rerunning the installs. Downloaded packages are usually not stored in source control.
I'm hosting on hostgator and using fcgi for my django app, its a sharedhost so I dont have much choice about flup and fcgi. When Debug = False I get a fcgi Unhandled Exception page instead of a Apache 404 error even though with Debug = True I would be getting a 404 from django/python.
Do I have to catch the python 404 exceptions in the fcgi file or should they just bubble up to Apache?
404 produces 500 Internal server error if your DEBUG is False and you do not have templates for 404. Make sure that you have 404.html and 500.html in your templates directory. Also have a look error logs in your admin email.