Comments (4)
When following this tutorial, after doing sudo nginx -t
I get the following error:
nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64
nginx: configuration file /etc/nginx/nginx.conf test failed
Then I go to sudo vim /etc/nginx/nginx.conf
and uncomment the line: server_names_hash_bucket_size: 64
, however, I get the exact same error.
If I change it to 128, then the service is ok:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
The reason was because my domain name is very long and server_names_hash_bucket_size controls the maximum length of a virtual host entry (ie the length of the domain name).
from ai_projects.
After opening the port 80 and put http://my-dns.com:80, I get a bad gateway: 502 Bad Gateway
.
from ai_projects.
I am following the guide for Ubuntu 16.04. I got Bad gateway.
After restarting the service:
sudo systemctl restart cntk_api
sudo systemctl restart nginx
I got the following error:
2017/03/21 07:44:27 [crit] 30615#30615: *1 connect() to unix:/home/hoaphumanoid/repo/sciblog_support/Intro_to_Machine_Learning_API/cntk_api.sock failed (13: Permission denied) while connecting to upstream, client: ...
To solve it: chmod 777 cntk_api.sock
. Then I got the following:
2017/03/21 07:46:12 [error] 30724#30724: *1 connect() to unix:/home/hoaphumanoid/repo/sciblog_support/Intro_to_Machine_Learning_API/cntk_api.sock failed (111: Connection refused) while connecting to upstream, client: ...
If I do sudo journalctl -u cntk_api
I get:
Mar 21 07:51:44 hoaphumanoidserver systemd[1]: Stopped Gunicorn instance to serve CNTK API.
Mar 21 07:51:44 hoaphumanoidserver systemd[1]: Started Gunicorn instance to serve CNTK API.
Mar 21 07:51:44 hoaphumanoidserver systemd[1]: cntk_api.service: Main process exited, code=exited, status=217/USER
Mar 21 07:51:44 hoaphumanoidserver systemd[1]: cntk_api.service: Unit entered failed state.
Mar 21 07:51:44 hoaphumanoidserver systemd[1]: cntk_api.service: Failed with result 'exit-code'.
To solve this problem I had to remove the file cntk_api.sock
, it is created automatically by gunicorn. This is the information of the file, once the system is working:
ls -lha
srwxrwx--- 1 hoaphumanoid www-data 0 Mar 21 08:11 cntk_api.sock
from ai_projects.
from ai_projects.
Related Issues (20)
- Images not refreshing with websocket and amcharts HOT 3
- amcharts shows only the last event, not all the previous ones HOT 1
- [POST] RL in Finance HOT 1
- review what is more expensive FP or FN in fraud
- gif for finance map
- [POST] TSNE HOT 1
- tsne with real data gets odd results HOT 1
- [POST] Benchmark matrices multiplications HOT 1
- benchmark add pytorch
- explore Numba Guvectorize HOT 1
- multiplication libraries HOT 2
- Update list of posts
- [POST] data generation HOT 5
- data augmentation for object detection
- Utils.py is not existence HOT 1
- Facing an issue with Data prep HOT 1
- Generating Top-N Recommendations for the Recommendation System HOT 2
- Replicate XGBoost vs LightGBM HOT 1
- Check why I have the performance drop in XGBoost hist HOT 1
- Comparison logistic regression + TFIDF and distilbert
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai_projects.