-
Notifications
You must be signed in to change notification settings - Fork 87
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
nginx shows default landing page after fresh install #2774
Comments
Hello ! This documentation for deployment is shown as an example and may not work as is on all environments. It will be difficult for us to help you without any errors log. However, when you specify the server in |
Hey and thanks for your help ! We do have an error in our uwsgi logs :
From what I understand, the issue might be we installed udata through a python3.7 virtual env, and uwsgi is using python3.6. Here's a sample of our uwsgi conf file (same as provided in the install docs actually) :
Thanks a lot |
Hello, it seems that uwsgi can't load the udata app indeed. |
Hello, We had no luck setting We have 'internal server error' landing page with Fun thing, when setting The rest of the file seems fine (paths are correct). Thanks again. |
It is the WSGI entrypoint, it corresponds to the python module to import, |
Ok thanks we will investigate this way ! |
Ok we managed to make uwsgi use python 3.7 and it seems to find our Udata.
Now, when accessing our server's landing page, we don't get Internal Server Error anymore, but we do get a 404 Not Found. Uwsgi, Celery and Nginx were restarted. Here's our nginx configuration file :
And when accessing out server's IP address we get this error message. sudo nginx -T says everything is OK. |
The nginx error log file shows this line after every try :
|
For future users, could you specify how you fixed the issue to use the correct python 3.7 venv? If you installed udata only, you don't have a frontend and should get a 404 on the home. |
We managed to make uwsgi use python3.7 doing this :
Most packages were already installed. We then ran the following commands to create a Python 3.7 plugin :
After that, we moved it to uwsgi plugins directory and changed rights :
Tested that out plugin was working :
Then, in the uwsgi configuration file under /etc/uwsgi/apps-available/udata-front.ini, we changed the line "plugin" to :
Restarted UWSGI, Celery, and Nginx, and after that, UWSGI logs showed 3.7.5 as the python version being used. Right now, udata-front is installed, but only responding if we |
We added some variables to our udata.cfg file (which is being used, as we do get errors launching udata if we make syntax errors in this file)
|
I did not understand the current result of In your |
Hello there,
We followed the step by step install procedure from https://udata.readthedocs.io/en/latest/installation/ and made it through the whole installation process.
Leaving the default values found in the sample configuration files provided, after install when we try to access our udata server locally via it's IP address, we do get nginx default server landing page.
Adding the server's IP as is :
server {
listen 80;
server_name data.example.com 10.22.33.44;
in /etc/nginx/sites-available/data.example.com file brings us to a "internal server error" page when refreshing, after reloading the nginx service.
Removing the IP in server_name brings us back to nginx default landing page.
nginx error logs are empty. We didn't encounter any specific error while following the install procedure.
nginx -t says everything is fine.
Is there something we should check ?
We are using a freshly installed Ubuntu Server 18.04.
Thanks a lot.
The text was updated successfully, but these errors were encountered: