Getting 404 not found on bench start

Hello,

I was working on erp before but when I reinstalled it with same steps which I did before I’m getting 404 not found.I tried mannual and easy both the methods but getting same error. Please help me to sort this out. Thanks

Screenshot%20from%202022-03-11%2010-19-11

Bench log:

10:17:09 system | redis_cache.1 started (pid=1845)
10:17:09 system | redis_socketio.1 started (pid=1847)
10:17:09 system | socketio.1 started (pid=1858)
10:17:09 system | redis_queue.1 started (pid=1851)
10:17:09 system | watch.1 started (pid=1864)
10:17:09 system | schedule.1 started (pid=1868)
10:17:09 system | worker_long.1 started (pid=1871)
10:17:09 system | worker_short.1 started (pid=1877)
10:17:09 system | worker_default.1 started (pid=1874)
10:17:09 redis_socketio.1 | 1852:C 11 Mar 2022 10:17:09.387 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:17:09 redis_socketio.1 | 1852:C 11 Mar 2022 10:17:09.387 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=1852, just started
10:17:09 redis_socketio.1 | 1852:C 11 Mar 2022 10:17:09.387 # Configuration loaded
10:17:09 redis_cache.1 | 1850:C 11 Mar 2022 10:17:09.387 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:17:09 redis_cache.1 | 1850:C 11 Mar 2022 10:17:09.387 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=1850, just started
10:17:09 redis_cache.1 | 1850:C 11 Mar 2022 10:17:09.387 # Configuration loaded
10:17:09 redis_cache.1 | 1850:M 11 Mar 2022 10:17:09.388 * Increased maximum number of open files to 10032 (it was originally set to 1024).
10:17:09 redis_socketio.1 | 1852:M 11 Mar 2022 10:17:09.388 * Increased maximum number of open files to 10032 (it was originally set to 1024).
10:17:09 redis_queue.1 | 1857:C 11 Mar 2022 10:17:09.395 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:17:09 redis_queue.1 | 1857:C 11 Mar 2022 10:17:09.395 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=1857, just started
10:17:09 redis_queue.1 | 1857:C 11 Mar 2022 10:17:09.395 # Configuration loaded
10:17:09 redis_queue.1 | 1857:M 11 Mar 2022 10:17:09.395 * Increased maximum number of open files to 10032 (it was originally set to 1024).
10:17:09 system | web.1 started (pid=1855)
10:17:09 redis_queue.1 | 1857:M 11 Mar 2022 10:17:09.408 * Running mode=standalone, port=11000.
10:17:09 redis_queue.1 | 1857:M 11 Mar 2022 10:17:09.408 # Server initialized
10:17:09 redis_queue.1 | 1857:M 11 Mar 2022 10:17:09.408 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
10:17:09 redis_queue.1 | 1857:M 11 Mar 2022 10:17:09.408 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
10:17:09 redis_queue.1 | 1857:M 11 Mar 2022 10:17:09.408 * Ready to accept connections
10:17:09 redis_socketio.1 | 1852:M 11 Mar 2022 10:17:09.407 * Running mode=standalone, port=12000.
10:17:09 redis_socketio.1 | 1852:M 11 Mar 2022 10:17:09.407 # Server initialized
10:17:09 redis_socketio.1 | 1852:M 11 Mar 2022 10:17:09.407 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
10:17:09 redis_socketio.1 | 1852:M 11 Mar 2022 10:17:09.407 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
10:17:09 redis_socketio.1 | 1852:M 11 Mar 2022 10:17:09.407 * Ready to accept connections
10:17:09 redis_cache.1 | 1850:M 11 Mar 2022 10:17:09.409 * Running mode=standalone, port=13000.
10:17:09 redis_cache.1 | 1850:M 11 Mar 2022 10:17:09.409 # Server initialized
10:17:09 redis_cache.1 | 1850:M 11 Mar 2022 10:17:09.409 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
10:17:09 redis_cache.1 | 1850:M 11 Mar 2022 10:17:09.409 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
10:17:09 redis_cache.1 | 1850:M 11 Mar 2022 10:17:09.409 * Ready to accept connections
10:17:09 schedule.1 | /home/parth/frappe-bench/env/lib/python3.8/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module’s documentation for alternative uses
10:17:09 schedule.1 | from imp import reload
10:17:09 web.1 | /home/parth/frappe-bench/env/lib/python3.8/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module’s documentation for alternative uses
10:17:09 web.1 | from imp import reload
10:17:09 watch.1 | /home/parth/frappe-bench/env/lib/python3.8/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module’s documentation for alternative uses
10:17:09 watch.1 | from imp import reload
10:17:17 watch.1 | yarn run v1.22.17
10:17:17 watch.1 | warning You don’t appear to have an internet connection. Try the --offline flag to use the cache for registry queries.
10:17:17 watch.1 | $ node rollup/watch.js
10:17:19 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
10:17:19 web.1 | * Restarting with inotify reloader
10:17:19 web.1 | /home/parth/frappe-bench/env/lib/python3.8/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module’s documentation for alternative uses
10:17:19 web.1 | from imp import reload
10:17:19 web.1 | * Debugger is active!
10:17:19 web.1 | * Debugger PIN: 197-161-009
10:17:33 socketio.1 | listening on *: 9000
10:18:45 watch.1 |
10:18:45 watch.1 | Rollup Watcher Started
10:18:45 watch.1 |
10:18:45 watch.1 | Watching…
10:18:52 watch.1 | Browserslist: caniuse-lite is outdated. Please run:
10:18:52 watch.1 | npx browserslist@latest --update-db
10:18:52 watch.1 | Rebuilding frappe-web-b4.css
10:18:53 watch.1 | Rebuilding frappe-recorder.min.js
10:18:55 watch.1 | Rebuilding checkout.min.js
10:18:55 watch.1 | Rebuilding frappe-web.min.js
10:18:57 watch.1 | Rebuilding bootstrap-4-web.min.js
10:18:58 watch.1 | Rebuilding control.min.js
10:19:03 watch.1 | Rebuilding dialog.min.js
10:19:04 web.1 | 127.0.0.1 - - [11/Mar/2022 10:19:04] “GET / HTTP/1.1” 404 -
10:19:05 web.1 | 127.0.0.1 - - [11/Mar/2022 10:19:05] “GET /favicon.ico HTTP/1.1” 404 -
10:19:05 watch.1 | Rebuilding desk.min.css
10:19:06 watch.1 | Rebuilding printview.css
10:19:06 watch.1 | Rebuilding desk.min.js
10:19:10 watch.1 | Rebuilding form.min.js
10:19:13 watch.1 | Rebuilding list.min.js
10:19:14 watch.1 | Rebuilding report.min.css
10:19:14 watch.1 | Rebuilding report.min.js
10:19:15 watch.1 | Rebuilding web_form.min.js
10:19:15 watch.1 | Rebuilding web_form.css
10:19:15 watch.1 | Rebuilding email.css
10:19:15 watch.1 | Rebuilding barcode_scanner.min.js
10:19:16 watch.1 | Rebuilding user_profile_controller.min.js
10:19:16 watch.1 | Rebuilding login.css
10:19:16 watch.1 | Rebuilding data_import_tools.min.js
10:19:17 watch.1 | Rebuilding frappe-web-b4.css
10:19:18 watch.1 | Rebuilding desk.min.css
10:19:18 watch.1 | Rebuilding printview.css
10:19:18 watch.1 | Rebuilding report.min.css
10:19:18 watch.1 | Rebuilding web_form.css
10:19:18 watch.1 | Rebuilding email.css
10:19:18 watch.1 | Rebuilding login.css

Please check this video

5 Likes

Thanks mate.It is working now.

Enjoy Frappe&ERPNext.

1 Like

It doesn’t work now.
WARNING: currentsite.txt is not supported anymore for setting default site. Use following command to set it as default site. The proposed fix on the screen doesn’t work either.

After you install an app you must use the command
bench use sitexxxx
bench migrate

The solution provided by mohsininspire is no more supported now, because the currentsite.txt is not supported anymore for setting default site.
Instead use the following commands to set it as default site.
| $ bench use demo.com
| $ bench start

Replace demo.com with your site name.

1 Like

Try below command.

bench setup nginx

WARNING: currentsite.txt is not supported anymore for setting default site. Use following command to set it as default site.
$ bench use ator.local