Im facing Problem when starting the bench

frappevm@frappevm-VirtualBox:~$ cd frappe-bench

frappevm@frappevm-VirtualBox:~/frappe-bench$ bench --setup requirments

Traceback (most recent call last):

File “”, line 189, in _run_module_as_main

File “”, line 112, in _get_module_details

File “/home/frappevm/frappe-bench/apps/frappe/frappe/init.py”, line 1375, in

@whitelist(methods=["POST", "PUT"])

 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/home/frappevm/frappe-bench/apps/frappe/frappe/init.py”, line 787, in innerfn

from frappe.utils.typing_validations import validate_argument_types

File “/home/frappevm/frappe-bench/apps/frappe/frappe/utils/typing_validations.py”, line 7, in

from pydantic import ConfigDict

ImportError: cannot import name ‘ConfigDict’ from ‘pydantic’ (/home/frappevm/frappe-bench/env/lib/python3.11/site-packages/pydantic/init.py)

Traceback (most recent call last):

File “”, line 189, in _run_module_as_main

File “”, line 112, in _get_module_details

File “/home/frappevm/frappe-bench/apps/frappe/frappe/init.py”, line 1375, in

@whitelist(methods=["POST", "PUT"])

 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/home/frappevm/frappe-bench/apps/frappe/frappe/init.py”, line 787, in innerfn

from frappe.utils.typing_validations import validate_argument_types

File “/home/frappevm/frappe-bench/apps/frappe/frappe/utils/typing_validations.py”, line 7, in

from pydantic import ConfigDict

ImportError: cannot import name ‘ConfigDict’ from ‘pydantic’ (/home/frappevm/frappe-bench/env/lib/python3.11/site-packages/pydantic/init.py)

frappevm@frappevm-VirtualBox:~/frappe-bench$

run

bench setup requirements

and then check

3 Likes

i solved that error now receiving another error
| * Restarting with stat

11:18:27 web.1 | /home/frappevm/frappe-bench/env/lib/python3.11/site-packages/passlib/utils/init.py:854: DeprecationWarning: ‘crypt’ is deprecated and slated for removal in Python 3.13

11:18:27 web.1 | from crypt import crypt as _crypt

11:18:27 web.1 | * Debugger is active!

11:18:27 web.1 | * Debugger PIN: 602-000-643

11:18:36 web.1 | Traceback (most recent call last):

11:18:36 web.1 | File “apps/frappe/frappe/app.py”, line 95, in application

11:18:36 web.1 | init_request(request)

11:18:36 web.1 | File “apps/frappe/frappe/app.py”, line 179, in init_request

11:18:36 web.1 | raise frappe.SessionStopped(“Session Stopped”)

11:18:36 web.1 | frappe.exceptions.SessionStopped: Session Stopped

11:18:36 web.1 |

11:18:36 web.1 | 127.0.0.1 - - [18/Dec/2023 11:18:36] “GET /app HTTP/1.1” 503 -

11:18:37 web.1 | Traceback (most recent call last):

11:18:37 web.1 | File “apps/frappe/frappe/app.py”, line 95, in application

11:18:37 web.1 | init_request(request)

11:18:37 web.1 | File “apps/frappe/frappe/app.py”, line 179, in init_request

11:18:37 web.1 | raise frappe.SessionStopped(“Session Stopped”)

11:18:37 web.1 | frappe.exceptions.SessionStopped: Session Stopped

11:18:37 web.1 |

11:18:37 web.1 | 127.0.0.1 - - [18/Dec/2023 11:18:37] “GET /website_script.js HTTP/1.1” 503 -

11:18:40 web.1 | Traceback (most recent call last):

11:18:40 web.1 | File “apps/frappe/frappe/app.py”, line 95, in application

11:18:40 web.1 | init_request(request)

11:18:40 web.1 | File “apps/frappe/frappe/app.py”, line 179, in init_request

11:18:40 web.1 | raise frappe.SessionStopped(“Session Stopped”)

11:18:40 web.1 | frappe.exceptions.SessionStopped: Session Stopped

11:18:40 web.1 |

11:18:40 web.1 | 127.0.0.1 - - [18/Dec/2023 11:18:40] “GET /app HTTP/1.1” 503 -

11:18:40 web.1 | Traceback (most recent call last):

11:18:40 web.1 | File “apps/frappe/frappe/app.py”, line 95, in application

11:18:40 web.1 | init_request(request)

11:18:40 web.1 | File “apps/frappe/frappe/app.py”, line 179, in init_request

11:18:40 web.1 | raise frappe.SessionStopped(“Session Stopped”)

11:18:40 web.1 | frappe.exceptions.SessionStopped: Session Stopped

11:18:40 web.1 |

facing same error after bench update

check coomon_site_config.json and check if the maintance mode is 0 or 1
if its 1 make it to zero save and start the bench

1 Like

in common_site_config.json set “restart_supervisor_on_update”: false,

I have the same error - “/frappe-bench/env/lib/python3.12/site-packages/passlib/utils/init.py:854: DeprecationWarning: ‘crypt’ is deprecated and slated for removal in Python 3.13”

Updated everything.
In common_site_config.json set “restart_supervisor_on_update”: false.
But the error still appears.
Sorry for the stupid question, I’m new to Frappe.
Please tell me, “maintance mode” is what exactly is the setting in coomon_site_config.json?

When you update Frappe Bench, it goes into maintenance mode. After the update, if you see the message “Bench is updating” on your site, you can resolve it by navigating to common_site_config and changing maintenance_mode from 1 to 0.