Connection Lost - Running server on localhost without internet

I am running and testing frappe/erpnext v14 on localhost, but if I am not connected to the internet, when accessing http://127.0.0.1:8002 the system does not load correctly and throws a message: “Connection Lost, You are not connected to internet, Retry after some time”

The output of server:

20:59:34 web.1            | 127.0.0.1 - - [24/Apr/2023 20:59:34] "POST /api/method/frappe.core.doctype.log_settings.log_settings.has_unseen_error_log HTTP/1.1" 200 -
21:07:10 web.1            | 127.0.0.1 - - [24/Apr/2023 21:07:10] "GET /api/method/frappe.realtime.get_user_info?sid=Guest HTTP/1.1" 200 -
21:07:10 web.1            | 127.0.0.1 - - [24/Apr/2023 21:07:10] "GET /api/method/frappe.realtime.get_user_info?sid=72a4cd7685c5903afc490994d893efe92ad39b4709eea726f640aa69 HTTP/1.1" 200 -
21:07:24 web.1            | /home/barcelo/frappe-bench-v14/apps/frappe/frappe/utils/caching.py:57: DeprecationWarning: `frappe_last` argument is deprecated and will be removed in v15.
21:07:24 web.1            |   return_val = func(*args, **kwargs)
21:07:26 web.1            | 127.0.0.1 - - [24/Apr/2023 21:07:26] "GET /app/home HTTP/1.1" 200 -
21:07:34 web.1            | /home/barcelo/frappe-bench-v14/apps/frappe/frappe/utils/caching.py:57: DeprecationWarning: `frappe_last` argument is deprecated and will be removed in v15.
21:07:34 web.1            |   return_val = func(*args, **kwargs)
21:07:34 web.1            | 127.0.0.1 - - [24/Apr/2023 21:07:34] "GET /app/home HTTP/1.1" 200 -

Any help to solve this to be able to use the system correctly on localhost, offline?

1 Like

I am having the same issue.

I am also facing at Hostinger VPS . Can anyone help

erpnext 14.27.12
frappe 14.40.0
00:19:52 watch.1          | Watching for changes...
00:20:24 web.1            | /usr/lib/python3.10/functools.py:981: UserWarning: The 'filters_config' hook used to add custom operators is not yet implemented in frappe.db.query engine. Use db_query (frappe.get_list) instead.
00:20:24 web.1            |   val = self.func(instance)
00:20:24 web.1            | /home/frappe/frappe-bench/apps/frappe/frappe/utils/caching.py:57: DeprecationWarning: `frappe_last` argument is deprecated and will be removed in v15.
00:20:24 web.1            |   return_val = func(*args, **kwargs)
00:20:24 web.1            | 127.0.0.1 - - [25/Jun/2023 00:20:24] "GET / HTTP/1.1" 200 -
00:20:40 schedule.1       | /usr/lib/python3.10/functools.py:981: UserWarning: The 'filters_config' hook used to add custom operators is not yet implemented in frappe.db.query engine. Use db_query (frappe.get_list) instead.
00:20:40 schedule.1       |   val = self.func(instance)```

Hi

Since you still have cookies from your session from the time you were connected to the internet

In order to get the page to work, you would need to clear the browser cache and login again

I just tested the same out and it works without internet

try sudo supervisorctl stop all