Update issue

Hello Sir,
   I have tried to update my local project to push on git fork. I use sudo lib/wnf.py --update origin master, there were changes in some files so used git stash in app as well as lib folder. Then i tried to take update using same command. I got following error on terminal.

Executing patches.february_2013.p09_timesheets in mtnlive
Traceback (innermost last):
  File “/var/www/mtnlive/lib/webnotes/modules/patch_handler.py”, line 74, in execute_patch
    webnotes.get_method(patchmodule + “.execute”)()
  File “app/patches/february_2013/p09_timesheets.py”, line 55, in execute
    tl.doc.insert()
  File “/var/www/mtnlive/lib/webnotes/model/doc.py”, line 413, in insert
    self.save()
  File “/var/www/mtnlive/lib/webnotes/model/doc.py”, line 408, in save
    keep_timestamps=keep_timestamps)
  File “/var/www/mtnlive/lib/webnotes/model/doc.py”, line 362, in _update_values
    (self.doctype, ', '.join(update_str), “%s”), values)
  File “/var/www/mtnlive/lib/webnotes/db.py”, line 130, in sql
    raise e
 OperationalError: (1054, “Unknown column ‘store’ in ‘field list’”)

patches.february_2013.p09_timesheets: failed: STOPPED

Building js and css files…

I also used sudo lib/wnf.py --patch_sync_build but got same error for this also. Store is a custom doctye and its references are in some doctypes.

When i log in in application it displayed blank app.html and following error  in firebug

Traceback (innermost last):
  File “…/lib/webnotes/handler.py”, line 154, in handle
    execute_cmd(cmd)
  File “…/lib/webnotes/handler.py”, line 189, in execute_cmd
    ret = call(method, webnotes.form_dict)
  File “…/lib/webnotes/handler.py”, line 206, in call
    return fn(**newargs)
  File “…/lib/webnotes/handler.py”, line 54, in startup
    webnotes.response.update(webnotes.sessions.get())
  File “…/lib/webnotes/sessions.py”, line 82, in get
    bootinfo = get_bootinfo()
  File “…/lib/webnotes/boot.py”, line 75, in get_bootinfo
    startup.boot.boot_session(bootinfo)
  File “…/app/startup/boot.py”, line 41, in boot_session
    as_dict=1, update={“doctype”:":Company"})
  File “…/lib/webnotes/db.py”, line 130, in sql
    raise e
 OperationalError: (1054, “Unknown column ‘cost_center’ in ‘field list’”)

How can i resolve this issue and push updated code on git fork?
Thank you

Regards,
Gangadhar kadam



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 post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/dff8ae2f-04b2-40e9-a768-f978007b67f6%40googlegroups.com?hl=en.

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

 

 

Gangadhar,

git stash will only stash you "uncommitted" changes. Maybe you have committed changes that you need to look into.

Follow the trace and see why the pages are not being committed.

I think you are trying to run patches in a fresh database that does not have the required columns

try running

lib/wnf.py --sync_all

before patching.

(can't guarantee it will work)




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

On 31-May-2013, at 3:22 PM, gangadhar kadam <em...@gmail.com> wrote:

Hello Sir,
   I have tried to update my local project to push on git fork. I use sudo lib/wnf.py --update origin master, there were changes in some files so used git stash in app as well as lib folder. Then i tried to take update using same command. I got following error on terminal.

Executing patches.february_2013.p09_timesheets in mtnlive
Traceback (innermost last):
  File "/var/www/mtnlive/lib/webnotes/modules/patch_handler.py", line 74, in execute_patch
    webnotes.get_method(patchmodule + ".execute")()
  File "app/patches/february_2013/p09_timesheets.py", line 55, in execute
    tl.doc.insert()
  File "/var/www/mtnlive/lib/webnotes/model/doc.py", line 413, in insert
    self.save()
  File "/var/www/mtnlive/lib/webnotes/model/doc.py", line 408, in save
    keep_timestamps=keep_timestamps)
  File "/var/www/mtnlive/lib/webnotes/model/doc.py", line 362, in _update_values
    (self.doctype, ', '.join(update_str), "%s"), values)
  File "/var/www/mtnlive/lib/webnotes/db.py", line 130, in sql
    raise e
 OperationalError: (1054, "Unknown column 'store' in 'field list'")

patches.february_2013.p09_timesheets: failed: STOPPED

Building js and css files...

I also used sudo lib/wnf.py --patch_sync_build but got same error for this also. Store is a custom doctye and its references are in some doctypes.

When i log in in application it displayed blank app.html and following error  in firebug

Traceback (innermost last):
  File "../lib/webnotes/handler.py", line 154, in handle
    execute_cmd(cmd)
  File "../lib/webnotes/handler.py", line 189, in execute_cmd
    ret = call(method, webnotes.form_dict)
  File "../lib/webnotes/handler.py", line 206, in call
    return fn(**newargs)
  File "../lib/webnotes/handler.py", line 54, in startup
    webnotes.response.update(webnotes.sessions.get())
  File "../lib/webnotes/sessions.py", line 82, in get
    bootinfo = get_bootinfo()
  File "../lib/webnotes/boot.py", line 75, in get_bootinfo
    startup.boot.boot_session(bootinfo)
  File "../app/startup/boot.py", line 41, in boot_session
    as_dict=1, update={"doctype":":Company"})
  File "../lib/webnotes/db.py", line 130, in sql
    raise e
 OperationalError: (1054, "Unknown column 'cost_center' in 'field list'")

How can i resolve this issue and push updated code on git fork?
Thank you

Regards,
Gangadhar kadam



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 post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/dff8ae2f-04b2-40e9-a768-f978007b67f6%40googlegroups.com?hl=en.

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

 

 




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 post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CBC4FE67-E876-490B-8CEA-AE6DC26891BC%40erpnext.com?hl=en.

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