we are also having trouble updating our ERPNext instance. We get the following errors:
:/var/www/erpnext# lib/wnf.py --update origin master
From git://github.com/webnotes/wnframework
* branch master -> FETCH_HEAD
Already up-to-date.
From git://github.com/webnotes/erpnext
* branch master -> FETCH_HEAD
Already up-to-date.
Executing patches.june_2013.p08_shopping_cart_settings in erpnext
Traceback (innermost last):
File "/var/www/erpnext/lib/webnotes/modules/patch_handler.py", line 55, in execute_patch
webnotes.get_method(patchmodule + ".execute")()
File "app/patches/june_2013/p08_shopping_cart_settings.py", line 7, in execute
webnotes.reload_doc("website", "doctype", "shopping_cart_settings")
File "/var/www/erpnext/lib/webnotes/__init__.py", line 377, in reload_doc
return webnotes.modules.reload_doc(module, dt, dn, force)
File "/var/www/erpnext/lib/webnotes/modules/__init__.py", line 41, in reload_doc
return import_files(module, dt, dn, force)
File "/var/www/erpnext/lib/webnotes/modules/import_file.py", line 16, in import_files
return import_file(module, dt, dn, force)
File "/var/www/erpnext/lib/webnotes/modules/import_file.py", line 25, in import_file
ret = import_file_by_path(path, force)
File "/var/www/erpnext/lib/webnotes/modules/import_file.py", line 55, in import_file_by_path
raise Exception, '%s missing' % path
Exception: ./lib/website/doctype/shopping_cart_settings/shopping_cart_settings.txt missing
patches.june_2013.p08_shopping_cart_settings: failed: STOPPED
Building js and css files...
Wrote public/css/all-web.css - 149k
Wrote public/js/all-web.min.js - 40k
Wrote public/css/all-app.css - 207k
Wrote public/js/all-app.min.js - 528k
Wrote public/js/slickgrid.min.js - 108k
ro...@factory:/var/www/erpnext# mv /var/www/erpnext /var/www/erpnext-old
ro...@factory:/var/www/erpnext# mkdir /var/www/erpnext
ro...@factory:/var/www/erpnext# cd /var/www/erpnext
ro...@factory:/var/www/erpnext# git clone git://github.com/webnotes/wnframework.git lib
Cloning into 'lib'...
remote: Counting objects: 42650, done.
remote: Compressing objects: 100% (13773/13773), done.
remote: Total 42650 (delta 30086), reused 40967 (delta 28542)
Receiving objects: 100% (42650/42650), 14.08 MiB | 2.60 MiB/s, done.
Resolving deltas: 100% (30086/30086), done.
Please advise.
Best
Amin
On Friday, September 20, 2013 7:40:44 AM UTC+2, Anand Doshi wrote:
Hi Phea,
It is not possible to go back to old version unless you had taken a backup. When updating, database tables get modified according to the new version and the only way to revert back is to restore the backup of old version and use the older code.
Rather, try running the update again. The error you are seeing is from an older version. If you update again, this error will go away.
Thanks,
Anand.
Dear Mr,
How can I go to old version. It mean go to version that I don't have to update.
I am looking forward from your reply soon.
Best regards,
BUN Phea
On Fri, Sep 20, 2013 at 12:04 PM, Rushabh Mehta
<rm...@gmail.com> wrote:
Seems like your updates were not merged correctly.
Try:
lib/wnf.py --update origin master
and check if it works. If you see an error, please post the error.
when I update erpnext it show error like this:
Oops, a server error has occured
Traceback (innermost last):
File "../lib/webnotes/webutils.py", line 16, in render
html = get_html('index')
File "../lib/webnotes/webutils.py", line 41, in get_html
html = load_into_cache(page_name)
File "../lib/webnotes/webutils.py", line 95, in load_into_cache
args = prepare_args(page_name)
File "../lib/webnotes/webutils.py", line 129, in prepare_args
pages = get_page_settings()
File "../lib/webnotes/webutils.py", line 236, in get_page_settings
return webnotes.get_config()["web"]["pages"]
File "../lib/webnotes/__init__.py", line 498, in get_config
update_config(webnotes.utils.get_path("app", "config.json"))
File "../lib/webnotes/__init__.py", line 490, in update_config
_config.web.pages.update(this_config["web"]["pages"])
KeyError: u'web'
–
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.
For more options, visit https://groups.google.com/groups/opt_out.