Error trace every 5 minutes, but all else working. What could it be? [Solved]

127.0.0.1 - - [16/Apr/2020 21:53:07] "POST /api/method/frappe.core.page.background_jobs.background_jobs.get_scheduler_status HTTP/1.0" 200 -
erpdev does not exist
127.0.0.1 - - [16/Apr/2020 21:48:55] "POST /api/method/frappe.core.page.background_jobs.background_jobs.get_scheduler_status HTTP/1.0" 500 -
Traceback (most recent call last):
  File "/home/erpdev/frappe-bench/apps/frappe/frappe/app.py", line 53, in application
    init_request(request)
  File "/home/erpdev/frappe-bench/apps/frappe/frappe/app.py", line 108, in init_request
    frappe.init(site=site, sites_path=_sites_path)
  File "/home/erpdev/frappe-bench/apps/frappe/frappe/__init__.py", line 150, in init
    local.conf = _dict(get_site_config())
  File "/home/erpdev/frappe-bench/apps/frappe/frappe/__init__.py", line 224, in get_site_config
    sys.exit(1)
SystemExit: 1
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/erpdev/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py", line 72, in __getattr__
    return self.__storage__[self.__ident_func__()][name]
KeyError: 'conf'
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/erpdev/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py", line 309, in _get_current_object
    return getattr(self.__local, self.__name__)
  File "/home/erpdev/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py", line 74, in __getattr__
    raise AttributeError(name)
AttributeError: conf
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/erpdev/frappe-bench/apps/frappe/frappe/middlewares.py", line 16, in __call__
    return super(StaticDataMiddleware, self).__call__(environ, start_response)
  File "/home/erpdev/frappe-bench/env/lib/python3.6/site-packages/werkzeug/middleware/shared_data.py", line 220, in __call__
    return self.app(environ, start_response)
  File "/home/erpdev/frappe-bench/env/lib/python3.6/site-packages/werkzeug/middleware/shared_data.py", line 220, in __call__
    return self.app(environ, start_response)
  File "/home/erpdev/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py", line 231, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  File "/home/erpdev/frappe-bench/env/lib/python3.6/site-packages/werkzeug/wrappers/base_request.py", line 237, in application
    resp = f(*args[:-2] + (request,))
  File "/home/erpdev/frappe-bench/apps/frappe/frappe/app.py", line 96, in application
    frappe.monitor.stop(response)
  File "/home/erpdev/frappe-bench/apps/frappe/frappe/monitor.py", line 26, in stop
    if frappe.conf.monitor and hasattr(frappe.local, "monitor"):
  File "/home/erpdev/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py", line 348, in __getattr__
    return getattr(self._get_current_object(), name)
  File "/home/erpdev/frappe-bench/env/lib/python3.6/site-packages/werkzeug/local.py", line 311, in _get_current_object
    raise RuntimeError("no object bound to %s" % self.__name__)
RuntimeError: no object bound to conf

Where it says…

127.0.0.1 - - [16/Apr/2020 21:53:07] "POST /api/method/frappe.core.page.background_jobs.background_jobs.get_scheduler_status HTTP/1.0" 200 -
erpdev does not exist

erpdev is the both the hostname and the user name, which may have been a bad idea, but I can’t think why it would be. I did a ‘grep -R erpdev’ on the whole bench directory and, apart from home directory names for lots of files ‘sites/common_site_config.json’ is the only place where it’s referred to:

 "frappe_user": "erpdev",

If you recognize this error and have some idea of what it might be, please let me know.

Ok. Figured it out.

I had a browser on a different machine that had connected to the server by using hostname ‘erpdev’. I had changed the server block in NGinx to a different virtual host name, but the IP address was unchanged in the clients /etc/hosts file.