This site can’t be reached error on bench start

I am new to erpnext.

on command bench start, it stucks at line shown below.

VirtualBox_ERPNext-Dev_22_05_2018_19_55_19

and so when run http://localhost:8080/, I get “This site can’t be reached”.

Question, is this on a VM or Ubuntu Desktop?

Verify your port is correct with

bench setup nginx

and ensure Nginx is running with

sudo service nginx reload

If this is a develop setup on a laptop, have you tried accessing localhost:8000?

Based on experience, frappe-bench instances are accessible on localhost:800x. (eg. the first frappe-bench instance will be on localhost:8000, the next one on localhost:8001, etc.)

you should start Bench correctly and normally port are localhost:8000 or 127.0.0.0:8000 or you setting up site yoursite.local:8000

Please re-check.

Hello @grh

You can tried localhost: 8000 or bench setup requirements command.

Thanks

Now I can run on localhost:8000. Now in setup-wizard, it stucks at last step and show error:

Setup failed

Could not start up: Error in setup

Is there an error showing up in the terminal/console? If yes, please provide the traceback. :slight_smile:

Try running the setup wizard a couple of times again and again. And as suggested by others, check your JS console/terminal for error tracebacks.

when I login with Adminnistrator, it shows following in console.

website.js:148 Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 59, in application
init_request(request)
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 121, in init_request
frappe.local.http_request = frappe.auth.HTTPRequest()
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 51, in init
frappe.local.login_manager = LoginManager()
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 105, in init
if self.login()==False: return
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 126, in login
self.authenticate(user=user, pwd=pwd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 210, in authenticate
self.user = self.check_password(user, pwd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/auth.py”, line 222, in check_password
return check_password(user, pwd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/password.py”, line 65, in check_password
if not auth or not passlibctx.verify(pwd, auth[0].password):
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/passlib/context.py”, line 2338, in verify
record = self._get_or_identify_record(hash, scheme, category)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/passlib/context.py”, line 2026, in _get_or_identify_record
return self._identify_record(hash, category)
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/passlib/context.py”, line 1131, in identify_record
raise ValueError(“hash could not be identified”)
ValueError: hash could not be identified

I faced this issue after migration.
Resolved it as following:

On your server in the bench folder, run bench --site set-admin-password

Thereafter, try to login.

Hope this helps!