Internal server error



  • After that I made the configuration of the file Spotipo happened to present "internal error of the server" I can not access the page of login and the hotspot stopped working

    It follows the code of config.py

    2019/04/03 22:35:22 [error] 1007#0: *22032 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 191.162.5.225, server: , request: "GET /site/ HTTP/1.1", upstream: "uwsgi://unix:/usr/share/nginx/spotipo/uwsgi.sock", host: "www.gspotwifi.com", referrer: "http://www.gspotwifi.com/a/dashboard/"
    2019/04/03 22:35:27 [error] 1007#0: *22036 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 191.162.5.225, server: , request: "GET /a/dashboard/ HTTP/1.1", upstream: "uwsgi://unix:/usr/share/nginx/spotipo/uwsgi.sock", host: "www.gspotwifi.com"
    2019/04/03 23:01:29 [error] 975#0: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 191.162.5.225, server: , request: "GET /s/5/dashboard/ HTTP/1.1", upstream: "uwsgi://unix:/usr/share/nginx/spotipo/uwsgi.sock", host: "www.gspotwifi.com"
    2019/05/13 19:28:50 [error] 968#0: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 191.162.1.130, server: , request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/usr/share/nginx/spotipo/uwsgi.sock", host: "www.gspotwifi.com"
    2019/05/13 19:46:46 [error] 967#0: *68 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 191.162.1.130, server: , request: "GET /s/5/manage/site/ HTTP/1.1", upstream: "uwsgi://unix:/usr/share/nginx/spotipo/uwsgi.sock", host: "gspotwifi.com", referrer: "http://gspotwifi.com/s/5/site/license/"
    2019/05/14 14:59:09 [error] 967#0: *683 upstream prematurely closed connection while reading response header from upstream, client: 191.162.1.130, server: , request: "GET /s/5/landing/ HTTP/1.1", upstream: "uwsgi://unix:/usr/share/nginx/spotipo/uwsgi.sock:", host: "gspotwifi.com"
    Type :quit<Enter> to exit Vim



  • @Rafael-Gaspar Please check spotipo.log available in /usr/share/nginx/spotipo/logs



  • Hi My Spotipo.log

    [pid: 1141|app: 0|req: 5723/9964] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:29:50 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136177&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 64 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4242/9965] 191.162.25.81 () {42 vars in 685 bytes} [Mon Apr 1 12:29:50 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15554 bytes in 73 msecs (HTTP/1.1 200) 4 headers in 311 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5724/9966] 191.162.25.81 () {32 vars in 689 bytes} [Mon Apr 1 12:29:50 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136177&url=http://weather.nicelogin.info%2fweather%3fkey%3d45881%26lang%3dBR&ssid=M2M+Office+Coworking => generated 309 bytes in 64 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4243/9967] 191.162.25.81 () {32 vars in 454 bytes} [Mon Apr 1 12:29:51 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15546 bytes in 44 msecs (HTTP/1.1 200) 4 headers in 298 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5725/9968] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:29:53 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136180&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 59 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4244/9969] 191.162.25.81 () {42 vars in 685 bytes} [Mon Apr 1 12:29:53 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15554 bytes in 50 msecs (HTTP/1.1 200) 4 headers in 311 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5726/9970] 191.162.25.81 () {32 vars in 689 bytes} [Mon Apr 1 12:29:56 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136184&url=http://weather.nicelogin.info%2fweather%3fkey%3d45881%26lang%3dBR&ssid=M2M+Office+Coworking => generated 309 bytes in 53 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4245/9971] 191.162.25.81 () {32 vars in 454 bytes} [Mon Apr 1 12:29:56 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15546 bytes in 53 msecs (HTTP/1.1 200) 4 headers in 298 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5727/9972] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:29:57 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136185&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 85 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4246/9973] 191.162.25.81 () {42 vars in 685 bytes} [Mon Apr 1 12:29:57 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15554 bytes in 56 msecs (HTTP/1.1 200) 4 headers in 311 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5728/9974] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:30:00 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136188&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 52 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4247/9975] 191.162.25.81 () {42 vars in 685 bytes} [Mon Apr 1 12:30:00 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15554 bytes in 50 msecs (HTTP/1.1 200) 4 headers in 311 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5729/9976] 191.162.25.81 () {32 vars in 689 bytes} [Mon Apr 1 12:30:03 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136191&url=http://weather.nicelogin.info%2fweather%3fkey%3d45881%26lang%3dBR&ssid=M2M+Office+Coworking => generated 309 bytes in 54 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4248/9977] 191.162.25.81 () {32 vars in 454 bytes} [Mon Apr 1 12:30:03 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15546 bytes in 54 msecs (HTTP/1.1 200) 4 headers in 298 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5730/9978] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:30:04 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136192&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 47 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4249/9979] 191.162.25.81 () {42 vars in 685 bytes} [Mon Apr 1 12:30:04 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15554 bytes in 89 msecs (HTTP/1.1 200) 4 headers in 310 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5731/9980] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:30:07 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136195&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 45 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4250/9981] 191.162.25.81 () {42 vars in 685 bytes} [Mon Apr 1 12:30:07 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15554 bytes in 57 msecs (HTTP/1.1 200) 4 headers in 308 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5732/9982] 191.162.25.81 () {32 vars in 689 bytes} [Mon Apr 1 12:30:08 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136196&url=http://weather.nicelogin.info%2fweather%3fkey%3d45881%26lang%3dBR&ssid=M2M+Office+Coworking => generated 309 bytes in 116 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4251/9983] 191.162.25.81 () {32 vars in 454 bytes} [Mon Apr 1 12:30:09 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15546 bytes in 49 msecs (HTTP/1.1 200) 4 headers in 298 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5733/9984] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:30:11 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136199&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 56 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1142|app: 0|req: 4252/9985] 191.162.25.81 () {42 vars in 685 bytes} [Mon Apr 1 12:30:11 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15554 bytes in 72 msecs (HTTP/1.1 200) 4 headers in 310 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5734/9986] 191.162.25.81 () {32 vars in 689 bytes} [Mon Apr 1 12:30:14 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136202&url=http://weather.nicelogin.info%2fweather%3fkey%3d45881%26lang%3dBR&ssid=M2M+Office+Coworking => generated 309 bytes in 70 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    [pid: 1142|app: 0|req: 4253/9987] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:30:14 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136202&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 62 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1141|app: 0|req: 5735/9988] 191.162.25.81 () {32 vars in 454 bytes} [Mon Apr 1 12:30:14 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15546 bytes in 69 msecs (HTTP/1.1 200) 4 headers in 298 bytes (1 switches on core 0)
    [pid: 1142|app: 0|req: 4254/9989] 191.162.25.81 () {42 vars in 685 bytes} [Mon Apr 1 12:30:14 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15554 bytes in 55 msecs (HTTP/1.1 200) 4 headers in 310 bytes (1 switches on core 0)
    [pid: 1141|app: 0|req: 5736/9990] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:30:18 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136206&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 50 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1141|app: 0|req: 5737/9991] 191.162.25.81 () {42 vars in 685 bytes} [Mon Apr 1 12:30:18 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15554 bytes in 43 msecs (HTTP/1.1 200) 4 headers in 307 bytes (1 switches on core 0)
    [pid: 1142|app: 0|req: 4255/9992] 191.162.25.81 () {32 vars in 689 bytes} [Mon Apr 1 12:30:20 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136208&url=http://weather.nicelogin.info%2fweather%3fkey%3d45881%26lang%3dBR&ssid=M2M+Office+Coworking => generated 309 bytes in 138 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f
    [pid: 1141|app: 0|req: 5738/9993] 191.162.25.81 () {32 vars in 454 bytes} [Mon Apr 1 12:30:20 2019] GET /voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f => generated 15546 bytes in 52 msecs (HTTP/1.1 200) 4 headers in 298 bytes (1 switches on core 0)
    [pid: 1142|app: 0|req: 4256/9994] 191.162.25.81 () {42 vars in 880 bytes} [Mon Apr 1 12:30:21 2019] GET /guest/s/06bqf3yd/?id=50:b7:c3:c7:e4:60&ap=04:18:d6:96:09:13&t=1554136209&url=http://detectportal.firefox.com%2fsuccess.txt&ssid=M2M+Office+Coworking => generated 309 bytes in 65 msecs (HTTP/1.1 302) 3 headers in 167 bytes (1 switches on core 0)
    DEBUG:flask.app:Wifiguest Log - Site ID:5 guestdevice MAC:50:b7:c3:c7:e4:60 just visited http://104.167.107.26/voucher/login/1ddad244-391a-4674-b7a7-2bca25439a5f


Log in to reply
 

});