Please Help! Error update.sh ./apps.txt not found

124 views
Skip to first unread message

Armando Hernandez

unread,
Aug 26, 2014, 7:26:59 PM8/26/14
to erpnext-u...@googlegroups.com
Help please !

im getting an error while updating plese see the following console output, anyone can help?

thanks!!

erpnext@erpnext062514:~/frappe-bench$ ./scripts/update.sh
Already up-to-date.
updating apps/erpnext
 * branch            HEAD       -> FETCH_HEAD
Current branch develop is up to date.
/home/erpnext/frappe-bench
updating apps/frappe
 * branch            HEAD       -> FETCH_HEAD
Current branch develop is up to date.
/home/erpnext/frappe-bench
updating apps/shopping_cart
 * branch            HEAD       -> FETCH_HEAD
Current branch develop is up to date.
/home/erpnext/frappe-bench

Running latest for erpnext
--------------------------------------------------
Executing erpnext.patches.v4_2.default_website_style in erpnext (erpnext)
Success
Updating frappe                     : [========================================]
Updating erpnext                    : [======================================  ]                                                                                                                               Traceback (most recent call last):
  File "/home/erpnext/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.1', 'console_scripts', 'frappe')()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    ret = run(fn, args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
    out = globals().get(fn)(**args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_f                                                                                                                               n
    return fn(*args, **new_kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 424, in late                                                                                                                               st
    frappe.model.sync.sync_all(verbose=verbose)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/sync.py", line 19, i                                                                                                                               n sync_all
    sync_for(app, force, verbose=verbose)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/sync.py", line 34, i                                                                                                                               n sync_for
    import_file_by_path(doc_path, force=force)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/import_file.py", l                                                                                                                               ine 50, in import_file_by_path
    import_doc(doc, force=force)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/import_file.py", l                                                                                                                               ine 111, in import_doc
    doc.insert()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 1                                                                                                                               56, in insert
    self.run_post_save_methods()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 4                                                                                                                               33, in run_post_save_methods
    self.run_method("on_update")
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 4                                                                                                                               06, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 4                                                                                                                               84, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 4                                                                                                                               67, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 4                                                                                                                               00, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/doctype/docty                                                                                                                               pe.py", line 100, in on_update
    module = load_doctype_module(self.name, self.module)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/__init__.py", line                                                                                                                                58, in load_doctype_module
    doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, mod                                                                                                                               ule, prefix))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 374, in                                                                                                                                get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/support/doctype/newslett                                                                                                                               er/newsletter.py", line 11, in <module>
    import erpnext.tasks
  File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/tasks.py", line 8, in <m                                                                                                                               odule>
    @celery_task()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/celery_app.py", line 85, i                                                                                                                               n celery_task
    return get_celery().task(*args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/celery_app.py", line 34, i                                                                                                                               n get_celery
    setup_celery(_app, conf)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/celery_app.py", line 40, i                                                                                                                               n setup_celery
    sites_path=SITES_PATH))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 403, in                                                                                                                                get_all_apps
    apps = get_file_items(os.path.join(sites_path, "apps.txt"), raise_not_found=                                                                                                                               True)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 488, in                                                                                                                                get_file_items
    content = read_file(path, raise_not_found=raise_not_found)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 507, in                                                                                                                                read_file
    raise IOError("{} Not Found".format(path))
IOError: ./apps.txt Not Found

Rushabh Mehta

unread,
Aug 27, 2014, 12:37:31 AM8/27/14
to erpnext-u...@googlegroups.com
Which bench are you using?

Please use the new one: https://github.com/frappe/bench



@rushabh_mehta

--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/9941ba9d-19c2-4552-a6eb-b3bc0610a032%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Armando Hernandez

unread,
Aug 27, 2014, 8:33:43 AM8/27/14
to erpnext-u...@googlegroups.com
i think im using the new bench i have installed it on june 25 2014 and have updated on a regular basis, any way how can i know the version am i running , command ? and what is the new bech version number ? thanks ! 
You received this message because you are subscribed to a topic in the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-user-forum/ibbWlLqmAmk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/1F5D9607-C808-4B53-A47B-9F0CC7499054%40gmail.com.

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


--
Enviado con Gmail para celulares

Pratik Vyas

unread,
Aug 27, 2014, 4:20:35 PM8/27/14
to erpnext-u...@googlegroups.com
On Wed, Aug 27, 2014 at 6:03 PM, Armando Hernandez
<armando.her...@gmail.com> wrote:
> i think im using the new bench i have installed it on june 25 2014 and have
> updated on a regular basis, any way how can i know the version am i running
> , command ? and what is the new bech version number ? thanks !
>


you run the following commands from the bench dir to fix the problem,

cd sites
../env/bin/frappe --latest

Instructions to upgrade to the new bench are here,
https://github.com/frappe/bench/wiki/Migrating-from-old-bench
> https://groups.google.com/d/msgid/erpnext-user-forum/CAF%3Dab8qqfUreRgfYXdz7iafv9xWXx44CQcz1WmGdY6z_LGO44w%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext

Armando Hernandez

unread,
Aug 29, 2014, 2:25:21 PM8/29/14
to erpnext-u...@googlegroups.com
Thank you for your help Pratik,

 i have run the command
 and this was the output 

What could be causing the problem ? 

erpnext@erpnext062514:~/frappe-bench/sites$ ../env/bin/frappe --latest
Traceback (most recent call last):
  File "../env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.1', 'console_scripts', 'frappe')()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
    out = globals().get(fn)(**args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 422, in latest
    frappe.modules.patch_handler.run_all()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 21, in run_all
    executed = [p[0] for p in frappe.db.sql("""select patch from `tabPatch Log`""")]
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 76, in sql
    self.connect()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 47, in connect
    use_unicode=True, charset='utf8')
  File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
TypeError: connect() argument 2 must be string, not None
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/erpnext-user-forum/9941ba9d-19c2-4552-a6eb-b3bc0610a032%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "ERPNext User's Forum" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/erpnext-user-forum/ibbWlLqmAmk/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/erpnext-user-forum/1F5D9607-C808-4B53-A47B-9F0CC7499054%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Enviado con Gmail para celulares
>
> --
> You received this message because you are subscribed to the Google Groups
> "ERPNext User's Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Anand Doshi

unread,
Aug 29, 2014, 2:30:35 PM8/29/14
to erpnext-u...@googlegroups.com
Try passing the site'a folder name as an extra argument to the --latest command

Sent from my phone
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/cb00ce4f-6e35-4ba4-a1ea-1daf22cb582d%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages