I get these error after running ./scripts/update.sh

I get this error " Update. We will be back in few moments "

and console gave me these errors, Please help its urgent.

na...@debian:~/frappe-bench$ sudo bash ./scripts/update.sh

Already up-to-date.

updating apps/erpnext

From https://github.com/frappe/erpnext

 * branch            HEAD       -> FETCH_HEAD

Current branch master is up to date.

/home/nabil/frappe-bench

updating apps/frappe

From https://github.com/frappe/frappe

 * branch            HEAD       -> FETCH_HEAD

Current branch master is up to date.

/home/nabil/frappe-bench

updating apps/shopping_cart

From https://github.com/frappe/shopping-cart

 * branch            HEAD       -> FETCH_HEAD

Current branch master is up to date.

/home/nabil/frappe-bench


Running latest for [sitename

--------------------------------------------------

Executing erpnext.patches.v4_0.apply_user_permissions in [sitename ([dbname]])

Traceback (most recent call last):

  File "/home/nabil/frappe-bench/env/bin/frappe", line 9, in <module>

    load_entry_point('frappe==4.0.1', 'console_scripts', 'frappe')()

  File "/home/nabil/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main

    ret = run(fn, args)

  File "/home/nabil/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run

    out = globals().get(fn)(**args)

  File "/home/nabil/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn

    return fn(*args, **new_kwargs)

  File "/home/nabil/frappe-bench/apps/frappe/frappe/cli.py", line 419, in latest

    frappe.modules.patch_handler.run_all()

  File "/home/nabil/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all

    if not run_single(patchmodule = patch):

  File "/home/nabil/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 50, in run_single

    return execute_patch(patchmodule, method, methodargs)

  File "/home/nabil/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 66, in execute_patch

    frappe.get_attr(patchmodule + ".execute")()

  File "/home/nabil/frappe-bench/apps/erpnext/erpnext/patches/v4_0/apply_user_permissions.py", line 9, in execute

    update_hr_permissions()

  File "/home/nabil/frappe-bench/apps/erpnext/erpnext/patches/v4_0/apply_user_permissions.py", line 32, in update_hr_permissions

    emp.save()

  File "/home/nabil/frappe-bench/apps/frappe/frappe/model/document.py", line 164, in save

    self._validate()

  File "/home/nabil/frappe-bench/apps/frappe/frappe/model/document.py", line 234, in _validate

    self._validate_selects()

  File "/home/nabil/frappe-bench/apps/frappe/frappe/model/base_document.py", line 308, in _validate_selects

    value, comma_options))

  File "/home/nabil/frappe-bench/apps/frappe/frappe/__init__.py", line 205, in throw

    msgprint(msg, raise_exception=exc)

  File "/home/nabil/frappe-bench/apps/frappe/frappe/__init__.py", line 202, in msgprint

    _raise_exception()

  File "/home/nabil/frappe-bench/apps/frappe/frappe/__init__.py", line 186, in _raise_exception

    raise raise_exception, msg

frappe.exceptions.ValidationError:  Series cannot be "M-####". It should be one of "", "M-", "S-"




Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/6c13f406-d48a-4ec3-b7e7-636c373b8251%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.