--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/b338e1b1-3be4-488a-8607-a320667793e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Fernec, will push a fix today.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/4ec83fae-e1cc-4217-92e2-23ede09170e5%40googlegroups.com.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/3454a960-6e2e-4ce2-a826-6ffd371833bb%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
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/4918cb97-b59f-4cdc-b34d-c9e17f61c29b%40googlegroups.com.
[root@ip-172-31-0-5 frappe-bench]# ./scripts/install.sh migrate_3_to_4 /home/erpnext/erpnext
New python executable in env/bin/python2.7
Also creating executable in env/bin/python
Installing setuptools, pip...done.
remote: Reusing existing pack: 56374, done.
remote: Counting objects: 93, done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 56467 (delta 40), reused 0 (delta 0)
Receiving objects: 100% (56467/56467), 22.38 MiB | 4.03 MiB/s, done.
Resolving deltas: 100% (39646/39646), done.
remote: Reusing existing pack: 114207, done.
remote: Counting objects: 92, done.
remote: Compressing objects: 100% (91/91), done.
remote: Total 114299 (delta 54), reused 2 (delta 1)
Receiving objects: 100% (114299/114299), 35.93 MiB | 5.58 MiB/s, done.
Resolving deltas: 100% (81397/81397), done.
remote: Reusing existing pack: 904, done.
remote: Total 904 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (904/904), 260.24 KiB | 129 KiB/s, done.
Resolving deltas: 100% (622/622), done.
Wrote sites/assets/js/frappe-web.min.js - 63k
Wrote sites/assets/js/shopping-cart-web.min.js - 1k
Wrote sites/assets/js/erpnext.min.js - 12k
Wrote sites/assets/css/frappe.css - 211k
Wrote sites/assets/css/frappe-web.css - 162k
Wrote sites/assets/css/shopping-cart-web.css - 0k
Wrote sites/assets/js/editor.min.js - 26k
Wrote sites/assets/css/erpnext.css - 0k
Wrote sites/assets/js/frappe.min.js - 608k
Wrote sites/assets/js/erpnext-web.min.js - 0k
Wrote sites/assets/js/slickgrid.min.js - 102k
Wrote sites/assets/js/canvasResize.min.js - 22k
Executing execute:frappe.db.sql("""update `tabPatch Log` set patch=replace(patch, '.4_0.', '.v4_0.')""") #2014-05-12 in erpnext (hpharmerp)
Success
Executing execute:frappe.reload_doc('core', 'doctype', 'doctype', force=True) #2014-01-24 in erpnext (hpharmerp)
Success
Executing execute:frappe.reload_doc('core', 'doctype', 'docfield', force=True) #2014-03-01 in erpnext (hpharmerp)
Success
Executing execute:frappe.reload_doc('core', 'doctype', 'docperm') #2014-06-04 in erpnext (hpharmerp)
Success
Executing execute:frappe.reload_doc('core', 'doctype', 'page') #2013-13-26 in erpnext (hpharmerp)
Success
Executing execute:frappe.reload_doc('core', 'doctype', 'report') #2014-06-03 in erpnext (hpharmerp)
Success
Executing execute:frappe.reload_doc('core', 'doctype', 'version') #2014-02-21 in erpnext (hpharmerp)
Traceback (most recent call last):
File "scripts/3to4.py", line 32, in <module>
migrate(args.site)
File "scripts/3to4.py", line 26, in migrate
latest()
File "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
return fn(*args, **new_kwargs)
File "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 417, in latest
frappe.modules.patch_handler.run_all()
File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
if not run_single(patchmodule = patch):
File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 50, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 64, in execute_patch
exec patchmodule.split("execute:")[1] in globals()
File "<string>", line 1, in <module>
File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 364, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force)
File "/var/www/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 35, in reload_doc
return import_files(module, dt, dn, force=force)
File "/var/www/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 17, in import_files
return import_file(module, dt, dn, force=force)
File "/var/www/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 22, in import_file
ret = import_file_by_path(path, force)
File "/var/www/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 50, in import_file_by_path
import_doc(doc, force=force)
File "/var/www/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 111, in import_doc
doc.insert()
File "/var/www/frappe-bench/apps/frappe/frappe/model/document.py", line 147, in insert
self.run_post_save_methods()
File "/var/www/frappe-bench/apps/frappe/frappe/model/document.py", line 419, in run_post_save_methods
self.run_method("on_update")
File "/var/www/frappe-bench/apps/frappe/frappe/model/document.py", line 392, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File "/var/www/frappe-bench/apps/frappe/frappe/model/document.py", line 468, in composer
return composed(self, method, *args, **kwargs)
File "/var/www/frappe-bench/apps/frappe/frappe/model/document.py", line 451, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/var/www/frappe-bench/apps/frappe/frappe/model/document.py", line 386, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/var/www/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 86, in on_update
updatedb(self.name)
File "/var/www/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 390, in updatedb
tab.sync()
File "/var/www/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 170, in sync
self.create()
File "/var/www/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 90, in create
CHARACTER SET=utf8""" % (self.name, add_text))
File "/var/www/frappe-bench/apps/frappe/frappe/database.py", line 118, in sql
self._cursor.execute(query)
File "/var/www/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/var/www/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6),\n\t\t\tmodified datetime(6),\n\t\t\tmodified_by varchar(255),\n\t\t\towner varchar(255)' at line 3")
../env/bin/frappe --latest erpnext
Traceback (most recent call last):
File "../env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
File "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 49, in main
frappe.init(site, sites_path=sites_path)
File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 100, in init
local.conf = _dict(get_site_config())
File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 140, in get_site_config
config.update(get_file_json(site_config))
File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 497, in get_file_json
return json.load(f)
File "/usr/local/lib/python2.7/json/__init__.py", line 278, in load
**kw)
File "/usr/local/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 21 column 1 (char 608)
Success
Updating frappe : [========================================]
Updating Pages : [========================================]
Updating Generators : [========================================]
cp config/nginx.conf /etc/nginx/conf.d/frappe.conf
frappe --build --sites_path $SITES_PATH
python scripts/3to4.py $site
frappe --use $SINGLE_SITE_NAME --sites_path $SITES_PATH
python scripts/generate_config.py
echo please run "`which frappe` --serve $site --sites_path `pwd`/$SITES_PATH" to start erpnext
Traceback (most recent call last):
File "scripts/generate_config.py", line 28, in <module>
generate_config('supervisor', 'templates/supervisor.conf')
File "scripts/generate_config.py", line 15, in generate_config
with open("sites/currentsite.txt") as f:
IOError: [Errno 2] No such file or directory: 'sites/currentsite.txt'
/var/www/frappe-bench/env/bin/frappe --serve erpnext --sites_path /var/www/frappe-bench/sites
which is provided at the end of the upgrade.
Is there anything I missed?
Thanks,
Kenneth
root 22166 22163 0 00:40 ? 00:00:00 /var/www/frappe-bench/env/bin/python2.7 /var/www/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120 frappe.app:application
root 22180 22166 0 00:40 ? 00:00:00 /var/www/frappe-bench/env/bin/python2.7 /var/www/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120 frappe.app:application
root 22184 22166 0 00:40 ? 00:00:00 /var/www/frappe-bench/env/bin/python2.7 /var/www/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120 frappe.app:application
2014-07-21 01:48:41,453 CRIT Supervisor running as root (no user in config file)
2014-07-21 01:48:41,470 INFO /var/tmp/supervisor.sock:Medusa (V1.1.1.1) started at Mon Jul 21 01:48:41 2014
Hostname: <unix domain socket>
Port:/var/tmp/supervisor.sock
2014-07-21 01:48:41,538 CRIT Running without any HTTP authentication checking
2014-07-21 01:48:41,552 INFO daemonizing the process
2014-07-21 01:48:41,553 INFO supervisord started with pid 22699
2014-07-21 01:48:41,569 INFO spawned: 'frappe-workerbeat' with pid 22701
2014-07-21 01:48:41,585 INFO spawned: 'frappe-web' with pid 22702
2014-07-21 01:48:41,600 INFO spawned: 'frappe-worker' with pid 22703
2014-07-21 01:48:42,605 INFO success: frappe-workerbeat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-07-21 01:48:42,605 INFO success: frappe-web entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-07-21 01:48:42,605 INFO success: frappe-worker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-07-21 01:48:43,062 INFO exited: frappe-workerbeat (exit status 255; not expected)
2014-07-21 01:48:43,062 INFO exited: frappe-worker (exit status 255; not expected)
2014-07-21 01:48:43,062 INFO received SIGCLD indicating a child quit
2014-07-21 01:48:44,067 INFO spawned: 'frappe-workerbeat' with pid 22722
2014-07-21 01:48:44,081 INFO spawned: 'frappe-worker' with pid 22723
2014-07-21 01:48:44,963 INFO exited: frappe-workerbeat (exit status 255; not expected)
2014-07-21 01:48:44,963 INFO received SIGCLD indicating a child quit
2014-07-21 01:48:44,967 INFO exited: frappe-worker (exit status 255; not expected)
2014-07-21 01:48:44,967 INFO received SIGCLD indicating a child quit
2014-07-21 01:48:46,072 INFO localhost:0 - - [20/Jul/2014:17:48:46 +0800] "POST /RPC2 HTTP/1.0" 200 254
2014-07-21 01:48:46,086 INFO localhost:0 - - [20/Jul/2014:17:48:46 +0800] "POST /RPC2 HTTP/1.0" 200 3149
2014-07-21 01:48:47,091 INFO spawned: 'frappe-workerbeat' with pid 22737
2014-07-21 01:48:47,098 INFO spawned: 'frappe-worker' with pid 22738
2014-07-21 01:48:47,966 INFO exited: frappe-workerbeat (exit status 255; not expected)
2014-07-21 01:48:47,967 INFO exited: frappe-worker (exit status 255; not expected)
2014-07-21 01:48:47,967 INFO received SIGCLD indicating a child quit
2014-07-21 01:48:50,974 INFO spawned: 'frappe-workerbeat' with pid 22751
2014-07-21 01:48:50,987 INFO spawned: 'frappe-worker' with pid 22752
2014-07-21 01:48:51,812 INFO exited: frappe-workerbeat (exit status 255; not expected)
2014-07-21 01:48:51,812 INFO received SIGCLD indicating a child quit
2014-07-21 01:48:51,830 INFO gave up: frappe-workerbeat entered FATAL state, too many start retries too quickly
2014-07-21 01:48:51,859 INFO exited: frappe-worker (exit status 255; not expected)
2014-07-21 01:48:51,859 INFO received SIGCLD indicating a child quit
2014-07-21 01:48:52,860 INFO gave up: frappe-worker entered FATAL state, too many start retries too quickly
[root@ip-172-31-8-88 frappe-bench]# ./env/bin/honcho start
01:41:26 web.1 | started with pid 22645
01:41:26 worker.1 | started with pid 22646
01:41:26 workerbeat.1 | started with pid 22647
01:41:27 web.1 | * Running on http://0.0.0.0:8000/
01:41:27 web.1 | * Restarting with reloader
01:41:28 worker.1 | /var/www/frappe-bench/env/lib/python2.7/site-packages/celery/platforms.py:765: RuntimeWarning: You are running the worker with superuser privileges, which is
01:41:28 worker.1 | absolutely not recommended!
01:41:28 worker.1 | Please specify a different user using the -u option.
01:41:28 worker.1 | User information: uid=0 euid=0 gid=0 egid=0
01:41:28 worker.1 | uid=uid, euid=euid, gid=gid, egid=egid,
01:41:28 workerbeat.1 | [2014-07-21 01:41:28,228: INFO/MainProcess] beat: Starting...
01:41:28 workerbeat.1 | [2014-07-21 01:41:28,398: INFO/MainProcess] Scheduler: Sending due task scheduler (frappe.tasks.enqueue_scheduler_events)
01:41:29 worker.1 | [2014-07-21 01:41:29,590: WARNING/MainProcess] celery@ip-172-31-8-88 ready.
01:41:30 worker.1 | [2014-07-21 01:41:30,119: ERROR/MainProcess] Task frappe.tasks.enqueue_events_for_site[90a1b4b2-6e06-48b1-a1fc-d1048a415164] raised unexpected: IOError(2, 'No such file or directory')
01:41:30 worker.1 | Traceback (most recent call last):
01:41:30 worker.1 | File "/var/www/frappe-bench/env/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
01:41:30 worker.1 | R = retval = fun(*args, **kwargs)
01:41:30 worker.1 | File "/var/www/frappe-bench/env/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
01:41:30 worker.1 | return self.run(*args, **kwargs)
01:41:30 worker.1 | File "/var/www/frappe-bench/apps/frappe/frappe/tasks.py", line 105, in enqueue_events_for_site
01:41:30 worker.1 | enqueue_events(site)
01:41:30 worker.1 | File "/var/www/frappe-bench/apps/frappe/frappe/utils/scheduler.py", line 25, in enqueue_events
01:41:30 worker.1 | lock = create_lock('scheduler')
01:41:30 worker.1 | File "/var/www/frappe-bench/apps/frappe/frappe/utils/file_lock.py", line 17, in create_lock
01:41:30 worker.1 | return touch_file(lock_path)
01:41:30 worker.1 | File "/var/www/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 916, in touch_file
01:41:30 worker.1 | with open(path, 'a'):
01:41:30 worker.1 | IOError: [Errno 2] No such file or directory: u'./erpnext/locks/scheduler.lock'