ERPNext 7 Issues and Info Megathread

Upgrade to v7 success.
But i found two issues:

  1. erpnext/quotation.json at 804b8f7baf4c74f93f82110545d50fb787b0cd4f · frappe/erpnext · GitHub
    Line 9 : “default_print_format”: “test123”,
    But there is not print format’s name is test123.

  2. the website_theme.css for a website is empty.

Hi,

I got this following error.

frappe.exceptions.UniqueValidationError: (u’Desktop Icon’, ‘5b2d92fbdd’, IntegrityError(1062, “Duplicate entry ‘Student-Administrator-1’ for key ‘unique_module_name_owner_standard’”))

As I was running the bench update on my Ubuntu server, I am not able to copy paste the entire trace… Can anyone please help with this?

Thanks
Uma

Successfully migrated my local server to v7.

one suggestion, As we have bench switch-to-v5 command, similarly bench switch-to-v6 command is missing

Regards,
Sambhaji Kolate,
New Indictrans Technologies Pvt Ltd.

Issue:
Since the system now remembers the limit of the list so if I click on 500 as the list size for any transaction then there seems to be no way to reduce the limit.

I think the buttons need to show now since after 500 the buttons are not shown and hence the user is stuck with the 500 limit option in list view

There is also an issue with email account for local smtp settings.

Leaving the password field blank as shown below forcibly logs you out

http://imgur.com/a/5yb4O

Click Save

http://imgur.com/a/UsgQy

Wasn’t an issue in 6.X

@iHello Thanks for reporting this issue. It has been fixed.

Upgrade works after install cryptography lib, but in end getting this error

frappe-bench-frappe-async-worker: stopped frappe-bench-frappe-longjob-worker: stopped frappe-bench-frappe-workerbeat: stopped frappe-bench-frappe-worker: stopped frappe-bench-frappe-web: stopped frappe-bench-node-socketio: stopped frappe-bench-frappe-async-worker: ERROR (abnormal termination) frappe-bench-frappe-longjob-worker: ERROR (abnormal termination) frappe-bench-frappe-workerbeat: ERROR (abnormal termination) frappe-bench-frappe-worker: ERROR (abnormal termination) frappe-bench-node-socketio: started frappe-bench-frappe-web: started

My migration is kind of stuck as I have some custom fields which are getting importing into the db via CSV of my custom fixtures and here is the query which is making my system hang;

+----+-------+-----------+-------+---------+------+----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+
| Id | User  | Host      | db    | Command | Time | State          | Info                                                                                                                                                                     | Progress |
+----+-------+-----------+-------+---------+------+----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+
|  3 | rigpl | localhost | rigpl | Query   |  236 | altering table | alter table `tabCommunication` add column `follow_up` int(1) not null default 0, alter column `seen` set default 0, alter column `communication_medium` set default null |    0.000 |
|  4 | root  | localhost | NULL  | Query   |    0 | init           | SHOW FULL PROCESSLIST                                                                                                                                                    |    0.000 |
+----+-------+-----------+-------+---------+------+----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+

This issue has also been reported on github at Adding a Custom field to Communication Table Hangs the System · Issue #1877 · frappe/frappe · GitHub

This has made bench migrate take very long time almost like 15mins~20mins

Resolved: solution on below link

Abnormal termination errors

Thanks to @tkhamdan

we are migrating v6 to v7
we got following issue (May be related o Role enable/disable feature)

  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 816, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 799, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 632, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 139, in on_update
    make_module_and_roles(self)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 595, in make_module_and_roles
    r.insert()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 212, in insert
    self.run_before_save_methods()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 687, in run_before_save_methods
    self.run_method("validate")
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 638, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 816, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 799, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 632, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/role/role.py", line 22, in validate
    if self.disabled:
**AttributeError: 'Role' object has no attribute 'disabled'**

Hello!
i have un error like this anybody help plz
the last time i try to upgrade to V7 it doesn’t success
then now when i run bench it has un error like that

bench Traceback (most recent call last): File "/usr/local/bin/bench", line 9, in <module> load_entry_point('bench', 'console_scripts', 'bench')() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point return ep.load() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2229, in load return self.resolve() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/frappe/.bench/bench/cli.py", line 3, in <module> from bench.utils import is_root, PatchError, drop_privileges, get_env_cmd, get_cmd_output, get_frappe File "/home/frappe/.bench/bench/utils.py", line 4, in <module> from bench import env ImportError: cannot import name env root@W360S-ERP:/home/frappe#

Hm, first of all you shouldn’t be using the root user, use the frappe user (su frappe) and try updating. If you get something like “Permission denied” run, as root:

chown -R frappe:frappe frappe-bench

Do the same for the bench-repo directory and try updating again.

Yep this is the question i want to ask :slight_smile: still die to wait :slight_smile:
Hello!
what does it mean? normally i often use root user but now it seem tobe un error

During install, a new user is created and everything related to ERPNext is installed into the user’s folder, and given the permission of that user. If you run commands using the root user, you might get issues later because some of your file ownerships might change.

Maybe doing git fetch origin and git checkout master and then git reset --hard origin/master inside the .bench folder as frappe user fix the issue for you

Please post queries on independent threads. This is too chaotic!