Error after ./scripts/update.sh

40 views
Skip to first unread message

hrd24...@gmail.com

unread,
Jun 23, 2014, 4:29:44 AM6/23/14
to erpnext-dev...@googlegroups.com
After running ./scripts/update.sh

I get this error, Please Help

on web " Updating. We will be back in few moments..." 
on console i get this.

nabil@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-"

Anand Doshi

unread,
Jun 23, 2014, 9:47:44 AM6/23/14
to ERPNext Developer's Forum
Do you have any custom doctypes? This does not seem to be an error of standard doctypes.


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/ce8fd127-faf7-42bd-90b6-9391fd5383e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hrd24...@gmail.com

unread,
Jun 24, 2014, 4:11:51 AM6/24/14
to erpnext-dev...@googlegroups.com
Well there are no custom doc types. would you like to connect through ssh and check?
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Rushabh Mehta

unread,
Jun 24, 2014, 4:38:10 AM6/24/14
to erpnext-dev...@googlegroups.com
On 24-Jun-2014, at 1:41 pm, hrd24...@gmail.com wrote:

Well there are no custom doc types. would you like to connect through ssh and check?

Are you a paid subscriber?

Else seems like there is problem with a DocType where naming series is M-####

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/4ce91eaf-268e-4ae1-a27c-8e47470ad097%40googlegroups.com.

hrd24...@gmail.com

unread,
Jun 24, 2014, 4:41:17 AM6/24/14
to erpnext-dev...@googlegroups.com
No i am not paid subscriber - but you are right series are different  M-#### 

Anand, Heard yesterday you were working on some script is that ready?
Reply all
Reply to author
Forward
0 new messages