in postman login is working and response as /app.
In chrome its not working, css not loading, login also not redirected to next page. How to solve
thank you
in postman login is working and response as /app.
In chrome its not working, css not loading, login also not redirected to next page. How to solve
thank you
Check nginx logs and permissions on your bench folder.
Hope this helps.
nginx sudo tail -f /var/log/nginx/access.log
103.67.154.70 - - [21/Apr/2023:06:49:47 +0000] “GET /login? HTTP/1.1” 200 36829 “http://13.126.11.28/login” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
103.67.154.70 - - [21/Apr/2023:06:49:48 +0000] “GET /assets/frappe/dist/css/login.bundle.OXZ2QBDK.css HTTP/1.1” 404 178 “http://13.126.11.28/login?” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
103.67.154.70 - - [21/Apr/2023:06:49:48 +0000] “GET /assets/frappe/dist/css/website.bundle.5R54IWKL.css HTTP/1.1” 404 178 “http://13.126.11.28/login?” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
103.67.154.70 - - [21/Apr/2023:06:49:48 +0000] “GET /assets/frappe/dist/js/frappe-web.bundle.K6I62NG6.js HTTP/1.1” 404 178 “http://13.126.11.28/login?” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
103.67.154.70 - - [21/Apr/2023:06:49:48 +0000] “GET /website_script.js HTTP/1.1” 200 25 “http://13.126.11.28/login?” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
103.67.154.70 - - [21/Apr/2023:06:49:48 +0000] “GET /assets/frappe/images/frappe-framework-logo.svg HTTP/1.1” 404 178 “http://13.126.11.28/login?” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
103.67.154.70 - - [21/Apr/2023:06:49:53 +0000] “GET /assets/frappe/dist/css/website.bundle.5R54IWKL.css HTTP/1.1” 404 178 “http://13.126.11.28/login?” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
103.67.154.70 - - [21/Apr/2023:06:49:53 +0000] “GET /assets/frappe/dist/css/login.bundle.OXZ2QBDK.css HTTP/1.1” 404 178 “http://13.126.11.28/login?” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
103.67.154.70 - - [21/Apr/2023:06:49:53 +0000] “GET /assets/frappe/dist/js/frappe-web.bundle.K6I62NG6.js HTTP/1.1” 404 178 “http://13.126.11.28/login?” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
103.67.154.70 - - [21/Apr/2023:06:49:53 +0000] “GET /website_script.js HTTP/1.1” 200 25 “http://13.126.11.28/login?” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36” “-”
Is it necessary to set the user in supervisord.conf
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; (‘AUTO’ child log dir, default $TEMP)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
; The [include] section can just contain the “files” setting. This
; setting can list multiple files (separated by whitespace or
; newlines). It can also contain wildcards. The filenames are
; interpreted as relative to this file. Included files cannot
; include files themselves.
[include]
files = /etc/supervisor/conf.d/*.conf
Check this file:
/var/log/nginx/error.log
I think your (webserver) user has no enough permissions over bench folder …
This is my log
2023/04/20 13:37:59 [notice] 16621#16621: using inherited sockets from “6;7;”
2023/04/20 13:38:20 [notice] 17407#17407: signal process started
2023/04/20 13:56:41 [notice] 17610#17610: signal process started
2023/04/20 14:12:21 [crit] 17613#17613: *1 open() “/home/ubuntu/frappe-turiya/sites/turiyatree.com/public//” failed (13: Permission denied), client: 193.32.162.159, server: turiyatree.com, request: “GET / HTTP/1.1”, host: “13.126.11.28”
2023/04/20 14:12:21 [error] 17613#17613: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 193.32.162.159, server: turiyatree.com, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8000/”, host: “13.126.11.28”
2023/04/20 14:12:31 [crit] 17613#17613: *3 open() “/home/ubuntu/frappe-turiya/sites/turiyatree.com/public//dispatch.asp” failed (13: Permission denied), client: 193.32.162.159, server: turiyatree.com, request: “GET /dispatch.asp HTTP/1.1”, host: “13.126.11.28”
2023/04/20 14:12:31 [error] 17613#17613: *3 connect() failed (111: Unknown error) while connecting to upstream, client: 193.32.162.159, server: turiyatree.com, request: “GET /dispatch.asp HTTP/1.1”, upstream: “http://127.0.0.1:8000/dispatch.asp”, host: “13.126.11.28”
2023/04/20 14:28:05 [crit] 17613#17613: *5 open() “/home/ubuntu/frappe-turiya/sites/turiyatree.com/public//hudson” failed (13: Permission denied), client: 192.241.236.44, server: turiyatree.com, request: “GET /hudson HTTP/1.1”, host: “13.126.11.28”
2023/04/20 14:28:05 [error] 17613#17613: *5 connect() failed (111: Unknown error) while connecting to upstream, client: 192.241.236.44, server: turiyatree.com, request: “GET /hudson HTTP/1.1”, upstream: “http://127.0.0.1:8000/hudson”, host: “13.126.11.28”
2023/04/20 14:36:13 [crit] 17613#17613: *7 open() “/home/ubuntu/frappe-turiya/sites/turiyatree.com/public//” failed (13: Permission denied), client: 128.1.248.26, server: turiyatree.com, request: “GET / HTTP/1.1”, host: “13.126.11.28”
2023/04/20 14:36:13 [error] 17613#17613: *7 connect() failed (111: Unknown error) while connecting to upstream, client: 128.1.248.26, server: turiyatree.com, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8000/”, host: “13.126.11.28”
2023/04/20 14:45:00 [crit] 17613#17613: *9 open() “/home/ubuntu/frappe-turiya/sites/turiyatree.com/public//.git/HEAD” failed (13: Permission denied), client: 137.184.74.35, server: turiyatree.com, request: “GET /.git/HEAD HTTP/1.1”, host: “localhost”
2023/04/20 14:45:00 [error] 17613#17613: *9 connect() failed (111: Unknown error) while connecting to upstream, client: 137.184.74.35, server: turiyatree.com, request: “GET /.git/HEAD HTTP/1.1”, upstream: “http://127.0.0.1:8000/.git/HEAD”, host: “localhost”
2023/04/20 15:01:00 [crit] 17613#17613: *11 open() “/home/ubuntu/frappe-turiya/sites/turiyatree.com/public//.env” failed (13: Permission denied), client: 20.219.9.102, server: turiyatree.com, request: “GET /.env HTTP/1.1”, host: “13.126.11.28”
2023/04/20 15:01:00 [error] 17613#17613: *11 connect() failed (111: Unknown error) while connecting to upstream, client: 20.219.9.102, server: turiyatree.com, request: “GET /.env HTTP/1.1”, upstream: “http://127.0.0.1:8000/.env”, host: “13.126.11.28”
2023/04/20 15:01:00 [crit] 17613#17613: *13 open() “/home/ubuntu/frappe-turiya/sites/turiyatree.com/public//” failed (13: Permission denied), client: 20.219.9.102, server: turiyatree.com, request: “POST / HTTP/1.1”, host: “13.126.11.28”
2023/04/20 15:01:00 [error] 17613#17613: *13 connect() failed (111: Unknown error) while connecting to upstream, client: 20.219.9.102, server: turiyatree.com, request: “POST / HTTP/1.1”, upstream: “http://127.0.0.1:8000/”, host: “13.126.11.28”
2023/04/20 15:03:13 [crit] 17613#17613: *16 open() “/home/ubuntu/frappe-turiya/sites/turiyatree.com/public//” failed (13: Permission denied), client: 45.33.87.154, server: turiyatree.com, request: “GET / HTTP/1.1”, host: “13.126.11.28”
2023/04/20 15:03:13 [error] 17613#17613: *16 connect() failed (111: Unknown error) while connecting to upstream, client: 45.33.87.154, server: turiyatree.com, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8000/”, host: “13.126.11.28”
2023/04/20 15:06:31 [crit] 17613#17613: *18 open() “/home/ubuntu/frappe-turiya/sites/turiyatree.com/public//” failed (13: Permission denied), client: 103.67.154.70, server: turiyatree.com, request: “GET / HTTP/1.1”, host: “13.126.11.28”
2023/04/20 15:06:31 [error] 17613#17613: *18 connect() failed (111: Unknown error) while connecting to upstream, client: 103.67.154.70, server: turiyatree.com, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8000/”, host: “13.126.11.28”
“error.log” [readonly] 763L, 226025B 1,1 Top
There are a lot of “13: Permission denied errors” here …
Use chmod
to give proper permissions to your “bench” user.
Hope this helps.
Thankyou now its working
Hello, if you are using docker, delete the volume related to the frappe_assets.
then run docker compose again and you’re done