Help stuck after updating

569 views
Skip to first unread message

Roy Ilagan

unread,
Sep 28, 2014, 6:44:29 AM9/28/14
to erpnext-dev...@googlegroups.com
after bench update we got stock at "

Updating. We will be back in a few moments...


any help would be much appreciated.

Pratik Vyas

unread,
Sep 28, 2014, 6:46:06 AM9/28/14
to erpnext-dev...@googlegroups.com

What is the error on the terminal? Maybe a patch failed to apply.

--
1. Please be kind and don't send large attachments
2. For issues, features requests use https://github.com/frappe/erpnext/issues
---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/15b86fd6-fb2a-4761-80ac-b9f395d3000a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roy Ilagan

unread,
Sep 28, 2014, 6:49:02 AM9/28/14
to erpnext-dev...@googlegroups.com
Hi sir,

this is the error when i tried to restart bench 

error: <class 'xmlrpclib.Fault'>, <Fault 10: 'BAD_NAME: frappe'>: file: /usr/lib/python2.7/xmlrpclib.py line: 793
Error: None
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/erpnext/web-cctv/bench-repo/bench/cli.py", line 29, in cli
    return bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 488, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 474, in main
    self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 758, in invoke
    return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 767, in invoke_subcommand
    return cmd.invoke(cmd_ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 659, in invoke
    ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 325, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/web-cctv/bench-repo/bench/cli.py", line 148, in restart
    restart_supervisor_processes()
  File "/home/erpnext/web-cctv/bench-repo/bench/utils.py", line 205, in restart_supervisor_processes
    exec_cmd(cmd, cwd=bench)
  File "/home/erpnext/web-cctv/bench-repo/bench/utils.py", line 59, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'sudo supervisorctl restart frappe:' returned non-zero exit status 2

Pratik Vyas

unread,
Sep 28, 2014, 6:52:52 AM9/28/14
to erpnext-dev...@googlegroups.com

This is strange.

As root, what is the output of

`supervisorctl status`

--
1. Please be kind and don't send large attachments
2. For issues, features requests use https://github.com/frappe/erpnext/issues
---
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.

Roy Ilagan

unread,
Sep 28, 2014, 7:05:00 AM9/28/14
to erpnext-dev...@googlegroups.com
Sir,

i noticed something on the error this is the cause of the iframe im trying to create 

Updating frappe                     : [========================================]
Traceback (most recent call last):
  File "/home/erpnext/web-cctv-erp/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.4.0', 'console_scripts', 'frappe')()
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    ret = run(fn, args)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
    out = globals().get(fn)(**args)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/cli.py", line 424, in latest
    frappe.model.sync.sync_all(verbose=verbose)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/model/sync.py", line 19, in sync_all
    sync_for(app, force, verbose=verbose)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/model/sync.py", line 28, in sync_for
    folder = os.path.dirname(frappe.get_module(app_name + "." + module_name).__file__)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/__init__.py", line 379, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named kayako
Error: None
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/erpnext/web-cctv/bench-repo/bench/cli.py", line 29, in cli
    return bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 488, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 474, in main
    self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 758, in invoke
    return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 767, in invoke_subcommand
    return cmd.invoke(cmd_ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 659, in invoke
    ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 325, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/web-cctv/bench-repo/bench/cli.py", line 130, in update
    patch_sites()
  File "/home/erpnext/web-cctv/bench-repo/bench/utils.py", line 81, in patch_sites
    exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, 'sites'))
  File "/home/erpnext/web-cctv/bench-repo/bench/utils.py", line 59, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/erpnext/web-cctv-erp/frappe-bench/env/bin/frappe --latest all' returned non-zero exit status 1



but i forgot where i inserted that code for the module. 

On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Pratik Vyas

unread,
Sep 28, 2014, 7:11:18 AM9/28/14
to erpnext-dev...@googlegroups.com
> ImportError: No module named kayako
> Error: None

Did you create a custom app?
You can run,
`find . -name "kayako*"` from apps dir

or

`grep kayako --include "*.py" -r .` from apps dir

Thanks,
--
Pratik
erpnext

Roy Ilagan

unread,
Sep 28, 2014, 7:30:05 AM9/28/14
to erpnext-dev...@googlegroups.com
found it sir.

erpnext@web-cctv:~/web-cctv-erp/frappe-bench$ locate kayako
/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/core/page/kayako
erpnext@web-cctv:~/web-cctv-erp/frappe-bench$


how do i delete it?

On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Roy Ilagan

unread,
Sep 28, 2014, 7:32:37 AM9/28/14
to erpnext-dev...@googlegroups.com
the folder is deleted but still i can find it when i locate kayako


On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Pratik Vyas

unread,
Sep 28, 2014, 7:34:25 AM9/28/14
to erpnext-dev...@googlegroups.com

Did you run bench update after removing?

--
1. Please be kind and don't send large attachments
2. For issues, features requests use https://github.com/frappe/erpnext/issues
---
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.

Roy Ilagan

unread,
Sep 28, 2014, 7:55:03 AM9/28/14
to erpnext-dev...@googlegroups.com
yes sir 

Updating frappe                     : [========================================]
Traceback (most recent call last):
  File "/home/erpnext/web-cctv-erp/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.4.0', 'console_scripts', 'frappe')()
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    ret = run(fn, args)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
    out = globals().get(fn)(**args)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/cli.py", line 424, in latest
    frappe.model.sync.sync_all(verbose=verbose)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/model/sync.py", line 19, in sync_all
    sync_for(app, force, verbose=verbose)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/model/sync.py", line 28, in sync_for
    folder = os.path.dirname(frappe.get_module(app_name + "." + module_name).__file__)
  File "/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/__init__.py", line 379, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named kayako
Error: None
On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Pratik Vyas

unread,
Sep 28, 2014, 7:57:31 AM9/28/14
to erpnext-dev...@googlegroups.com
Try clearing cache,

```
bench frappe --flush_memcache
bench update
```
> --
> 1. Please be kind and don't send large attachments
> 2. For issues, features requests use
> https://github.com/frappe/erpnext/issues
> ---
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/f1d10d0f-6f51-42b0-ad1e-342efae46f6f%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext

Roy Ilagan

unread,
Sep 28, 2014, 8:16:58 AM9/28/14
to erpnext-dev...@googlegroups.com
Still can find kayako but when i tried to browse it on sftp its doesnt exist

 the erpnext@web-cctv:~/web-cctv-erp$ locate kayako
/home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/core/page/kayako
erpnext@web-cctv:~/web-cctv-erp$


On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Pratik Vyas

unread,
Sep 28, 2014, 8:29:40 AM9/28/14
to erpnext-dev...@googlegroups.com
What is the output of
`ls /home/erpnext/web-cctv-erp/frappe-bench/apps/frappe/frappe/core/page/`

The last resort would be to do a `git clean -df` in apps/frappe dir

Roy Ilagan

unread,
Sep 28, 2014, 8:30:48 AM9/28/14
to erpnext-dev...@googlegroups.com
if i try to reinstall it data wont be erased?


On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Roy Ilagan

unread,
Sep 28, 2014, 8:32:19 AM9/28/14
to erpnext-dev...@googlegroups.com
what do you mean output sir? im sorry im not a developer.


On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Pratik Vyas

unread,
Sep 28, 2014, 8:32:21 AM9/28/14
to erpnext-dev...@googlegroups.com
On Sun, Sep 28, 2014 at 6:00 PM, Roy Ilagan <ad...@webtechnology.ph> wrote:
> if i try to reinstall it data wont be erased?
>
> On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

No need to reinstall. This should be solvable without that.

What is the output of `git status` in apps/frappe dir

Also, did you enable developer mode by any chance?


--
Pratik
erpnext

Pratik Vyas

unread,
Sep 28, 2014, 8:33:35 AM9/28/14
to erpnext-dev...@googlegroups.com
On Sun, Sep 28, 2014 at 6:02 PM, Roy Ilagan <ad...@webtechnology.ph> wrote:
> what do you mean output sir? im sorry im not a developer.

Output when you run the command from the shell (via ssh or from
terminal if on a local machine)

Thanks,
--
Pratik
erpnext

Roy Ilagan

unread,
Sep 28, 2014, 8:41:16 AM9/28/14
to erpnext-dev...@googlegroups.com
this is the output sir

erpnext@web-cctv:~/web-cctv-erp/frappe-bench/apps/frappe$ git status
On branch develop
Your branch is ahead of 'upstream/develop' by 10 commits.
  (use "git push" to publish your local commits)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   frappe/core/page/messages/messages.py

no changes added to commit (use "git add" and/or "git commit -a")
erpnext@web-cctv:~/web-cctv-erp/frappe-bench/apps/frappe$



On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Roy Ilagan

unread,
Sep 28, 2014, 8:44:35 AM9/28/14
to erpnext-dev...@googlegroups.com
how do i revert the changes i made sir?


On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Pratik Vyas

unread,
Sep 28, 2014, 8:47:40 AM9/28/14
to erpnext-dev...@googlegroups.com
On Sun, Sep 28, 2014 at 6:14 PM, Roy Ilagan <ad...@webtechnology.ph> wrote:
> how do i revert the changes i made sir?
>

Run the following commands,

```
cd ~/web-cctv-erp/frappe-bench/apps/frappe
git reset --hard
git clean -df
cd ~/web-cctv-erp/frappe-bench/
bench update
```


Thanks,
--
Pratik
erpnext

Roy Ilagan

unread,
Sep 28, 2014, 8:57:14 AM9/28/14
to erpnext-dev...@googlegroups.com
HEAD is now at e1089d1 Merge branch 'develop'


On Sunday, September 28, 2014 6:44:29 PM UTC+8, Roy Ilagan wrote:

Pratik Vyas

unread,
Sep 28, 2014, 9:24:37 AM9/28/14
to erpnext-dev...@googlegroups.com
On Sun, Sep 28, 2014 at 6:27 PM, Roy Ilagan <ad...@webtechnology.ph> wrote:
> HEAD is now at e1089d1 Merge branch 'develop'
>
>

Great!

DId you try running
```
bench frappe --flush_memcache
bench update
```
?


--
Pratik
erpnext

Roy Ilagan

unread,
Sep 28, 2014, 9:58:12 AM9/28/14
to erpnext-dev...@googlegroups.com
Yes sir i did 
bench frappe --flush_memcache 
bench update 

then 

tried to open it but not loading so i did

bench start

and still

Updating. We will be back in a few moments...

Pratik Vyas

unread,
Sep 28, 2014, 10:18:48 AM9/28/14
to erpnext-dev...@googlegroups.com
Did bench update give any errors?
> --
> 1. Please be kind and don't send large attachments
> 2. For issues, features requests use
> https://github.com/frappe/erpnext/issues
> ---
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/1a7d5c74-4dde-47d7-a3ce-53e091a33d38%40googlegroups.com.

Roy Ilagan

unread,
Sep 28, 2014, 10:42:37 AM9/28/14
to erpnext-dev...@googlegroups.com
this shows when i try to run bench start

erpnext@web-cctv:~/web-cctv-erp/frappe-bench$ bench start
10:41:51 web.1        | started with pid 2898
10:41:51 worker.1     | started with pid 2900
10:41:51 workerbeat.1 | started with pid 2901
10:41:52 web.1        |  * Running on http://0.0.0.0:8000/
10:41:52 web.1        |  * Restarting with reloader
10:41:52 workerbeat.1 | Stale pidfile exists. Removing it.
10:41:52 workerbeat.1 | [2014-09-28 10:41:52,456: INFO/MainProcess] beat: Starting...
10:41:52 workerbeat.1 | [2014-09-28 10:41:52,496: INFO/MainProcess] Scheduler: Sending due task scheduler (frappe.tasks.enqueue_scheduler_events)
10:41:53 worker.1     | [2014-09-28 10:41:53,475: WARNING/MainProcess] /home/erpnext/web-cctv-erp/frappe-bench/env/local/lib/python2.7/site-packages/celery/app/control.py:36: DuplicateNodenameWarning: Received multiple replies from node name: 'name'.
10:41:53 worker.1     | Please make sure you give each node a unique nodename using the `-n` option.
10:41:53 worker.1     |   pluralize(len(dupes), 'name'), ', '.join(sorted(dupes)),
10:41:53 worker.1     | [2014-09-28 10:41:53,486: WARNING/MainProcess] cel...@web-cctv.camera ready.

Roy Ilagan

unread,
Sep 28, 2014, 10:44:39 AM9/28/14
to erpnext-dev...@googlegroups.com
update bench

Requirement already satisfied (use --upgrade to upgrade): celery in ./env/lib/python2.7/site-packages (from frappe->-r ./apps/erpnext/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): redis in ./env/lib/python2.7/site-packages (from frappe->-r ./apps/erpnext/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): selenium in ./env/lib/python2.7/site-packages (from frappe->-r ./apps/erpnext/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): pdfkit in ./env/lib/python2.7/site-packages (from frappe->-r ./apps/erpnext/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): babel in ./env/lib/python2.7/site-packages (from frappe->-r ./apps/erpnext/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): ipython in ./env/lib/python2.7/site-packages (from frappe->-r ./apps/erpnext/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): urllib3 in ./env/lib/python2.7/site-packages (from dropbox->frappe->-r ./apps/erpnext/requirements.txt (line 1))
Cleaning up...
database backup taken - ./webcctv/private/backups/20140928_58739572_database.sql.gz - on 2014-09-28 22:43:56.232533

Running latest for webcctv
--------------------------------------------------

Pratik Vyas

unread,
Sep 28, 2014, 10:50:19 AM9/28/14
to erpnext-dev...@googlegroups.com
Hi Roy,

Did you also create a module?

Until `bench update --patch` doesn't exit cleanly, the message is not
going to go away.


--
Pratik
erpnext

Roy Ilagan

unread,
Sep 28, 2014, 10:56:44 AM9/28/14
to erpnext-dev...@googlegroups.com
its ok now. i found kayako in modules.txt and removed it

run  bench frappe --flush_memcache
and bench update

its ok now running fine. 

thank you so much!

Pratik Vyas

unread,
Sep 28, 2014, 11:13:51 AM9/28/14
to erpnext-dev...@googlegroups.com
On Sun, Sep 28, 2014 at 8:26 PM, Roy Ilagan <ad...@webtechnology.ph> wrote:
> its ok now. i found kayako in modules.txt and removed it
>
> run bench frappe --flush_memcache
> and bench update
>
> its ok now running fine.
>
> thank you so much!
>

Awesome, I thought that git reset should haved taken care of that :)


--
Pratik
erpnext
Reply all
Reply to author
Forward
0 new messages