Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (env)root@satishvm:/home/satish/frappe-bench/sites# frappe --restore site1.local /tmp/database.sql --force
- MySQL root password:
- Created user site1.local
- Created database site1.local
- Granted privileges to user site1.local and database site1.local
- Starting database import...
- Imported from database /tmp/database.sql
- Updating frappe : [========================================]
- Updating Pages : [========================================]
- Updating Generators : [========================================]
- Installing Fixtures...
- *** Scheduler is disabled ***
- *** Scheduler is disabled ***
- (env)root@satishvm:/home/satish/frappe-bench/sites# frappe --install_app erpnext site1.local
- Traceback (most recent call last):
- File "/home/satish/frappe-bench/env/bin/frappe", line 9, in <module>
- load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
- File "/home/satish/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
- return run(fn, parsed_args)
- File "/home/satish/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
- out = globals().get(fn)(*args.get(fn), **args)
- File "/home/satish/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
- return fn(*args, **new_kwargs)
- File "/home/satish/frappe-bench/apps/frappe/frappe/cli.py", line 347, in install_app
- install_app(app_name, verbose=verbose)
- File "/home/satish/frappe-bench/apps/frappe/frappe/installer.py", line 107, in install_app
- add_module_defs(name)
- File "/home/satish/frappe-bench/apps/frappe/frappe/installer.py", line 196, in add_module_defs
- d.save()
- File "/home/satish/frappe-bench/apps/frappe/frappe/model/document.py", line 163, in save
- self.insert()
- File "/home/satish/frappe-bench/apps/frappe/frappe/model/document.py", line 145, in insert
- self.db_insert()
- File "/home/satish/frappe-bench/apps/frappe/frappe/model/base_document.py", line 202, in db_insert
- ), d.values())
- File "/home/satish/frappe-bench/apps/frappe/frappe/database.py", line 107, in sql
- self._cursor.execute(query, values)
- File "/home/satish/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
- self.errorhandler(self, exc, value)
- File "/home/satish/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
- raise errorclass, errorvalue
- frappe.exceptions.NameError: (u'Module Def', u'Accounts', IntegrityError(1062, "Duplicate entry 'Accounts' for key 'PRIMARY'"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement