have error when upadate erpnext

78 views
Skip to first unread message

Phea Bun

unread,
Sep 20, 2013, 1:00:35 AM9/20/13
to erpnext-dev...@googlegroups.com
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'

Rushabh Mehta

unread,
Sep 20, 2013, 1:04:00 AM9/20/13
to erpnext-dev...@googlegroups.com
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. 


W: https://erpnext.com
T: @rushabh_mehta

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Phea Bun

unread,
Sep 20, 2013, 1:13:17 AM9/20/13
to erpnext-dev...@googlegroups.com
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



You received this message because you are subscribed to a topic in the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/e1N3gmz3wFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to erpnext-developer...@googlegroups.com.

Anand Doshi

unread,
Sep 20, 2013, 1:40:44 AM9/20/13
to erpnext-dev...@googlegroups.com
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.

Amin Zayani

unread,
Sep 20, 2013, 2:19:31 PM9/20/13
to erpnext-dev...@googlegroups.com
Dear Anand,

we are also having trouble updating our ERPNext instance. We get the following errors:

:/var/www/erpnext# lib/wnf.py --update origin master
 * branch            master     -> FETCH_HEAD
Already up-to-date.
 * 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

root@factory:/var/www/erpnext# mv /var/www/erpnext /var/www/erpnext-old
root@factory:/var/www/erpnext# mkdir /var/www/erpnext
root@factory:/var/www/erpnext# cd /var/www/erpnext
root@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
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
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 a topic in the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/e1N3gmz3wFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
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-forum+unsub...@googlegroups.com.

Anand Doshi

unread,
Sep 21, 2013, 4:14:35 AM9/21/13
to erpnext-dev...@googlegroups.com
Hi Amin,

Please update again. We have fixed this issue.

Thanks,
Anand.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.

Phea Bun

unread,
Sep 23, 2013, 9:21:41 PM9/23/13
to erpnext-dev...@googlegroups.com
Dear Anand,

Now I have problem with create company. when I create on company, it also show me one page of the company.
So, if I want to disable the page. where should I go to disable this page.
I am looking forward from your reply soon.

Best regards,

BUN Phea
To unsubscribe from this group and all its topics, send an email to erpnext-developer...@googlegroups.com.

Rushabh Mehta

unread,
Sep 24, 2013, 12:54:00 AM9/24/13
to erpnext-dev...@googlegroups.com
Phea, What do you mean by "disable" can you be more descriptive?


To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--



Twitter: @rushabh_mehta

Phea Bun

unread,
Sep 24, 2013, 12:59:57 AM9/24/13
to erpnext-dev...@googlegroups.com
That mean when I create one company in  the system, I always see new page about company that I create and I don't see anything for login as the user.
So, I would to delete this page from this system. What should I do for delete this page? because I want to see page login as normal.

Rushabh Mehta

unread,
Sep 24, 2013, 1:01:28 AM9/24/13
to erpnext-dev...@googlegroups.com
Have you assigned appropriate roles for your user? Sorry not able to understand your query correctly.

Anand Doshi

unread,
Sep 24, 2013, 1:04:10 AM9/24/13
to erpnext-dev...@googlegroups.com
Hi Phea,

Go to Website Settings and clear the Website Home Page. This will reset the home page to the Login Page.

Thanks,
Anand.

Phea Bun

unread,
Sep 24, 2013, 1:08:33 AM9/24/13
to erpnext-dev...@googlegroups.com
Dear brothers,

I am every thank you for help me.

Best regards,

BUN Phea

Phea Bun

unread,
Sep 30, 2013, 11:28:14 PM9/30/13
to erpnext-dev...@googlegroups.com
Hi all brother,

Now I  have one problems when I setup the company. It show one page that I cannot login.
so, if want to delete this page. what should I do?
Please see my picture in my attachment file.

Best regards,

BUN Phea
errer.JPG

Nabin Hait

unread,
Sep 30, 2013, 11:59:13 PM9/30/13
to Phea Bun, erpnext-dev...@googlegroups.com
This is a sample home page of your website, you should find a "Login" link at the footer of this page. If you want to remove this page as home page, remove "Home Page" from Website -> Website Settings page, it will set Login page as Home page.

<errer.JPG>

Reply all
Reply to author
Forward
0 new messages