That is correct. Any ideas how I can resolve this?
so âŚi think you have to apologize to all community âŚright?
Thanks for your help.
Not to me âŚto all communuty you âaccusedâ âŚbtw there is a pending PR to fix docker:
https://github.com/frappe/frappe_docker/pull/32
So you have to wait until merged or get the changes and make it manually in your system
Thanks for the PR link, reviewing the diff it appears the only thing Iâm missing is LANG=C.UTF-8
⌠trying that now⌠thanks in advance!
so I did LANG=C.UTF-8
then bench switch-to-master
but I still see:
frappe@78b08a83ecaf:~/frappe-bench$ bench update --patch
Backing up sites...
Patching sites...
Migrating erp
Updating DocTypes for frappe : [ ]Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 94, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 222, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 33, in migrate
frappe.model.sync.sync_all(verbose=verbose)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py", line 19, in sync_all
sync_for(app, force, verbose=verbose, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py", line 45, in sync_for
reset_permissions=reset_permissions, for_sync=True)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 58, in import_file_by_path
ignore_version=ignore_version, reset_permissions=reset_permissions)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 132, in import_doc
doc.insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 237, in insert
d.db_insert()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py", line 303, in db_insert
), list(d.values()))
File "/home/frappe/frappe-bench/apps/frappe/frappe/database.py", line 166, in sql
self._cursor.execute(query, values)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 166, in execute
result = self._query(query)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 856, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1057, in _read_query_result
result.read()
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1340, in read
first_packet = self.connection._read_packet()
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 1014, in _read_packet
packet.check_error()
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py", line 393, in check_error
err.raise_mysql_exception(self._data)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.IntegrityError: (1048, u"Column 'translatable' cannot be null")
thats not realated to this problem âŚyou better rebuild docker using PR changes
@joshreeder @binary64
Hey guys, sorry for all the problems you are facing. I would like to tell you that I am actively working on these issues as soon as I discover it.
Issues are most related to docker as the repo is not updated to work with last, actually yarn its working fine
@JoEz Agreed, everything you have said so far I agree
@netchampfaris I appreciate this so much. Anything I can do, just ask
I have already installed yarn multiple ways and globally as root onto the frappe container.
Again, you have to install bench from master branch instead of develop âŚotherwise youâll not able to fix the issue âŚ
Tried the new PR - looks very promising!
It got stuck on 404 error for wkhtmltopdf - solved by adding apt-get -y update && apt-get upgrade -y
to Dockerfile
But now bench update --reset says invalid mysql user/pass. Even though the password is unchanged (I checked the backup files)
The new PR has bene merged âŚit works on bench init so you should install it from scratch
Please direct those Python 3 issues to me. Happy to work on it.
@joshreeder @binary64 @krnkris
We have pushed a potential fix. Please try setting up frappe-bench on production as well as develop.
If you face any problems please post the traceback.
on production in VM virtual image
the situation same as before, because the virtual image is 32 bit,
not allow the chromedriver somehow:
frappe@erpnext:~/frappe-bench$ bench update --reset
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow)
INFO:bench.app:pulling frappe
INFO:bench.utils:git fetch --all
Fetching upstream
INFO:bench.utils:git reset --hard upstream/master
HEAD is now at d46ac5e Merge branch 'hotfix'
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git fetch --all
Fetching upstream
remote: Counting objects: 230, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 230 (delta 199), reused 199 (delta 198), pack-reused 25
Receiving objects: 100% (230/230), 2.58 MiB | 1.09 MiB/s, done.
Resolving deltas: 100% (202/202), completed with 152 local objects.
From https://github.com/frappe/erpnext
* [new branch] codingCoffee-patch-2 -> upstream/codingCoffee-patch-2
e53a238..c209014 develop -> upstream/develop
3799f8b..a310cc7 hotfix -> upstream/hotfix
INFO:bench.utils:git reset --hard upstream/master
HEAD is now at 4ff4d18 Merge branch 'hotfix'
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext_demo
INFO:bench.utils:git fetch --all
Fetching upstream
INFO:bench.utils:git reset --hard upstream/master
HEAD is now at 5567d19 Merge pull request #25 from neilLasrado/master
INFO:bench.utils:find . -name "*.pyc" -delete
Updating Python libraries...
INFO:bench.utils:./env/bin/pip install --upgrade pip
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/bench-repo/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext_demo/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt
Updating node packages...
INFO:bench.utils:npm install
> chromedriver@2.35.0 install /home/frappe/frappe-bench/node_modules/chromedriver
> node install.js
Only Linux 64 bits supported.
npm WARN frappe@ No description
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"ia32"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chromedriver@2.35.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver@2.35.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/frappe/.npm/_logs/2018-02-28T15_57_21_709Z-debug.log
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/frappe/bench-repo/bench/commands/update.py", line 58, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, force=force, reset=reset)
File "/home/frappe/bench-repo/bench/commands/update.py", line 75, in _update
update_node_packages(bench_path=bench_path)
File "/home/frappe/bench-repo/bench/utils.py", line 443, in update_node_packages
update_npm_packages(bench_path)
File "/home/frappe/bench-repo/bench/utils.py", line 490, in update_npm_packages
exec_cmd('npm install', cwd=bench_path)
File "/home/frappe/bench-repo/bench/utils.py", line 145, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: npm install
Thank you for your hard work!
on develop in VM virtual image
the situation same as before everything runs smooth
- I have to upgrade yarn as requested in the traceback:
curl -o- -L https://yarnpkg.com/install.sh | bash
I got a very long traceback, but finally develop works.7
Installed Apps
ERPNext: v11.x.x-develop (c209014) (develop)
Frappe Framework: v11.x.x-develop (ad9a207) (develop)
When switching back to master, after login it not switch to the desk it stay on the login screen.
Have to F5 reload to get the drop down menu in the right.
+
same error, but it seem the cause is the chat is not integrated to master up today
Installed Apps
ERPNext: v10.1.4 (master)
Frappe Framework: v10.1.1 (master)
Applause to @JoEz for fixing frappe_docker to launch on a CLEAN system and by clean you must erase all content and setting in docker preferences to know it is clean. From there you can install the frappe_docker with no errors or issues. But the problem currently is that @JoEz switched the bench repo to âmasterâ but not âerpnextâ or âfrappeâ so switch-to-master bricks again with the âcolumn translatable nullâ error.
I think I have found a way to edit the travis.yml files after initial clone and before install and I am testing now - hope to report good news.
thanks again to @JoEz for getting 90% of the issues solved but still no way to develop on the stable masters at least in docker.
@netchampfaris Does this sound correct? Should the simple change from @JoEz to master branch of bench repo result in master branches of frappe and erpnext? Right now I can not get any conversion from develop back to master branchesâŚ
The best time to switch from develop to master is when develop is merged into master, or around the same time. Right now, develop is so different from master that switching will most likely not be successful. If youâre launching a new system for production, yes - using master from the get-go will be the best route to take.