Hi Anand,I lost you in your explanation. I have checked my production server and there indeed is a standard_apps.json file under frappe-bench folder but when I checked on the contents then there is no mention of the custom apps in this json file.Can you please elaborate as to how I could accomplish this feat.
On Wednesday, July 2, 2014 7:29:24 PM UTC+5:30, Anand Doshi wrote:-Anand.You need to have your custom apps also installed on your setup.I recommend that you clone a fresh bench, but before restore/install, copy the standard_apps.json file from your production setup. Then run the install command and later restore your database.
On Wed, Jul 2, 2014 at 7:02 PM, Aditya Duggal <ad…@gmail.com> wrote:
Hi Anand,Please disregard the previous post, it turns out that I was not using the correct path (new to Linux and its paths)But after the import of database I guess I am stuck with the Apps and I am getting an error for the rigpl_erpnext apps hook.The error console is here: http://pastebin.com/JFr24LVvLet me know how could I resolve this error.I guess this error would also answer one of my queries that how could I setup a system on Develop branch to do the testing and then push the commits to the production branch.
On Wednesday, July 2, 2014 6:48:00 PM UTC+5:30, Aditya Duggal wrote:Hi Anand,
Thanks for the tip. But now I guess I am stuck with another error as below:(env)ad…@addy:~/frappe-bench/sites$ frappe --restore DB_NAME /home/Downloads/XXX_database.sql --forceMySQL root password:Created user DB_NAMECreated database DB_NAMEGranted privileges to user DB_NAME and database DB_NAMEStarting database import...sh: 1: cannot open /home/Downloads/XXX_database.sql: No such fileImported from database /home/Downloads/XXX_database.sqlTraceback (most recent call last):File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in mainreturn run(fn, parsed_args)File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in runout = globals().get(fn)(*args.get(fn), **args)File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fnreturn fn(*args, **new_kwargs)File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore_install(db_name, source_sql=source_sql, quiet=quiet, force=force)File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 308, in _installinstall_app("frappe", verbose=verbose, set_as_patched=not source_sql)File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 87, in install_appfrappe.clear_cache()File "/home/addy/frappe-bench/apps/frappe/frappe/__init__.py", line 284, in clear_cachefrappe.sessions.clear_cache()File "/home/addy/frappe-bench/apps/frappe/frappe/sessions.py", line 55, in clear_cachefor sess in frappe.db.sql("""select user, sid from tabSessions""", as_dict=1):File "/home/addy/frappe-bench/apps/frappe/frappe/database.py", line 118, in sqlself._cursor.execute(query)File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in executeself.errorhandler(self, exc, value)File "/home/addy/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandlerraise errorclass, errorvalue_mysql_exceptions.ProgrammingError: (1146, "Table 'rigpl.tabSessions' doesn't exist")
On Wednesday, July 2, 2014 6:31:44 PM UTC+5:30, Anand Doshi wrote:If you are doing this in a VM or somewhere other than your production server, use --force at the end of the command and it should be safe. Also, once the database is restored, you should get a message "Scheduler is disabled". Make sure that this message appears, else email pulling will start on this test setup.-Anand.
On Wed, Jul 2, 2014 at 4:49 PM, Aditya Duggal <ad…@gmail.com> wrote:
I am getting this error:Traceback (most recent call last):File "/home/addy/frappe-bench/env/bin/frappe", line 9, in <module>load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 53, in mainreturn run(fn, parsed_args)File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 81, in runout = globals().get(fn)(*args.get(fn), **args)File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fnreturn fn(*args, **new_kwargs)File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 375, in restore_install(db_name, source_sql=source_sql, quiet=quiet, force=force)File "/home/addy/frappe-bench/apps/frappe/frappe/cli.py", line 306, in _installadmin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 30, in install_dbcreate_database_and_user(force, verbose)File "/home/addy/frappe-bench/apps/frappe/frappe/installer.py", line 47, in create_database_and_userraise Exception("Database %s already exists" % (db_name,))Exception: Database rigpl already existsNo matter what name of the database I choose, I am getting the same error. Could you please let me know what is it that I am missing.
On Tuesday, June 17, 2014 12:46:21 PM UTC+5:30, rushabh wrote:Aditya,You have to start the Python virtual env:cd frappe-bench. env/bin/activateOn 16-Jun-2014, at 5:01 pm, Aditya Duggal <ad...@gmail.com> wrote:
Hi,I am getting a frappe command not found after I did the below things::~/frappe-bench/sites$ frappe --restore DBNAME SQLFILEfrappe: command not foundWhat am I missing?
On Monday, June 16, 2014 12:35:53 PM UTC+5:30, rushabh wrote:Thanks Aditya for pointing out. Fixed instructions:https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup
On 16-Jun-2014, at 11:15 am, Aditya Duggal <ad…@gmail.com> wrote:Hi,I am trying to restore a backup on v4 but I guess the old method does not work.Can someone please let me know the correct way to restore an old backup on v4.I am using the wiki page here: https://github.com/frappe/erpnext/wiki/Restoring-From-ERPNext-Backup
On Thursday, December 12, 2013 10:54:07 AM UTC+5:30, Mahesh wrote:Regards,Sorry for putting a very silly question here.....what am I missing.where as I checked with dir , the file is very much there...it is saying no such file.hi, when I say./lib/wnf.py --restore erpnext path/to/sqlfile --force
MaheshOn Wed, Dec 11, 2013 at 12:02 PM, Pratik Vyas <pd...@gmail.com> wrote:
Hi Mahesh,
Can you run update again, latest version should be able to patch your instance without any exceptions.
--Pratik
erpnext
–
Note:
If you are posting an issue,
- 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.
- Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
- 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+unsubscr…@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.
–
Note:
If you are posting an issue,
- 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.
- Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
- 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+unsubscr…@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/aeddb58c-a507-4d08-8673-cb069e31257b%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
–
Note:
If you are posting an issue,
- 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.
- Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
- 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+unsubscr…@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8f43f0a9-bdd5-45c2-96f5-65885a2d883a%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8c2d6ad2-ca18-418f-be23-384e7baa5ce8%40googlegroups.com.–
Note:
If you are posting an issue,
- 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.
- Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
- 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+unsubscr…@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/ab8fc319-499e-4edf-8c4f-60a6938d6163%40googlegroups.com.–
Note:
If you are posting an issue,
- 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.
- Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
- 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.–
Note:
If you are posting an issue,
- 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.
- Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
- 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/77b95933-5af7-4bfd-bd30-9fd2574d2ace%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
–
Note:
If you are posting an issue,
- 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.
- Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
- 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/7A7C22D9-36A2-449D-BEC0-A0B4FE231B3A%40gmail.com.
For more options, visit https://groups.google.com/d/optout.