Thank you for the response!
frappe@erpnext:~$ cd ~/.bench
-bash: cd: /home/frappe/.bench: No such file or directory
frappe@erpnext:~$
Any update on this?
Thank you for the response!
frappe@erpnext:~$ cd ~/.bench
-bash: cd: /home/frappe/.bench: No such file or directory
frappe@erpnext:~$
Any update on this?
Try:
cd ~/bench-repo
git pull
cd ~/frappe-bench
bench update
No change:
frappe@erpnext:~/bench-repo$ git pull
Already up-to-date.
frappe@erpnext:~/bench-repo$ cd ~/frappe-bench
frappe@erpnext:~/frappe-bench$ bench update
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 pull upstream master
From https://github.com/frappe/frappe
* branch master -> FETCH_HEAD
Already up-to-date.
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git pull upstream master
From https://github.com/frappe/erpnext
* branch master -> FETCH_HEAD
Already up-to-date.
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext_demo
INFO:bench.utils:git pull upstream master
From https://github.com/frappe/erpnext_demo
* branch master -> FETCH_HEAD
Already up-to-date.
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 libraries...
INFO:bench.utils:npm install yarn
npm WARN deprecated yarn@1.3.2: It is recommended to install Yarn using the native installation method for your environment. See https://yarnpkg.com/en/docs/install
npm WARN prefer global yarn@1.3.2 should be installed with -g
frappe@ /home/frappe/frappe-bench/apps/frappe
└── yarn@1.3.2 extraneous
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.3
INFO:bench.utils:./node_modules/.bin/yarn install
yarn install v1.3.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/2] ⠁ uws
[2/2] ⠁ chromedriver
[-/2] ⠁ waiting...
[-/2] ⠁ waiting...
error /home/frappe/frappe-bench/apps/frappe/node_modules/chromedriver: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /home/frappe/frappe-bench/apps/frappe/node_modules/chromedriver
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_npm_packages(bench_path=bench_path)
File "/home/frappe/bench-repo/bench/utils.py", line 440, in update_npm_packages
exec_cmd('{yarn} install'.format(yarn=yarn_executable), cwd=app_path)
File "/home/frappe/bench-repo/bench/utils.py", line 142, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./node_modules/.bin/yarn install
frappe@erpnext:~/frappe-bench$
the VM virtual image on
https://erpnext.com/download
is 64bit or 32bit OS?
chromedriver: Only Linux 64 bits supported!!!
the VM virtual image on
https://erpnext.com/download
ERPNext-Production
UBUNTU (32bit)
In this case the VM Virtual image instance
can’t be update anymore?
The log file about the yarn install:
frappe@erpnext:~/frappe-bench/apps/frappe$ sudo yarn install -g
yarn install v1.3.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/2] ⠂ uws
[2/2] ⠂ chromedriver: Only Linux 64 bits supported.
[-/2] ⠂ waiting...
[-/2] ⠂ waiting...
error /home/frappe/frappe-bench/apps/frappe/node_modules/chromedriver: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /home/frappe/frappe-bench/apps/frappe/node_modules/chromedriver
frappe@erpnext:~/frappe-bench/apps/frappe$
Chromedriver not supported on 32-bit Linux
https://groups.google.com/forum/#!msg/chromedriver-users/JZUYvp_xr60/pyTRBxv1CwAJ
Please resolve this issue in
the VM virtual image on
https://erpnext.com/download
Please understand that 32bits is now virtually obsolete. Support for libraries is also waning and for 32bit installs too.
Did you read my post before , or I understand differently.
Please explain.
Update problem - yarn install in VM virtual image - #10 by krnkris
More precise:
John Chen
We intend to stop supporting Linux 32 bit version of ChromeDriver, due to its low usage, and also because Chrome itself no longer supports 32-bit Linux. If you are an active user of 32-bit Linux, could you give us some information about the type of system you’re using, and how critical it is for you to have Linux 32 bit version of ChromeDriver? This will help us assess the demand for Linux 32 bit.
Thanks,
John
I tried with
bench update --reset
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 7b9c874 Merge branch 'hotfix'
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git fetch --all
Fetching upstream
INFO:bench.utils:git reset --hard upstream/master
HEAD is now at db6f084 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
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 libraries...
INFO:bench.utils:npm install yarn
npm WARN deprecated yarn@1.3.2: It is recommended to install Yarn using the native installation method for your environment. See https://yarnpkg.com/en/docs/install
npm WARN prefer global yarn@1.3.2 should be installed with -g
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.3
npm ERR! Linux 3.13.0-79-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "yarn"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! path ../yarn/bin/yarn.js
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall symlink
npm ERR! Error: EACCES: permission denied, symlink '../yarn/bin/yarn.js' -> '/home/frappe/frappe-bench/apps/frappe/node_modules/.bin/yarn'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, symlink '../yarn/bin/yarn.js' -> '/home/frappe/frappe-bench/apps/frappe/node_modules/.bin/yarn']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'symlink',
npm ERR! path: '../yarn/bin/yarn.js',
npm ERR! dest: '/home/frappe/frappe-bench/apps/frappe/node_modules/.bin/yarn',
npm ERR! parent: 'frappe' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/frappe/frappe-bench/apps/frappe/npm-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_npm_packages(bench_path=bench_path)
File "/home/frappe/bench-repo/bench/utils.py", line 439, in update_npm_packages
exec_cmd('npm install yarn', cwd=app_path)
File "/home/frappe/bench-repo/bench/utils.py", line 142, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: npm install yarn
frappe@erpnext:~/frappe-bench$
I installed YARN:
sudo npm install --global yarn
frappe@erpnext:~/frappe-bench$ yarn --version
1.3.2
frappe@erpnext:~/frappe-bench$
but
the above problem existing
may be in the update script the operation should be changed?
INFO:bench.utils:npm install yarn
to
sudo npm install --global yarn
Hi @krnkris,
this might sound silly, but the above error -13 indicates an access permission issue on ‘/home/frappe/frappe-bench/apps/frappe/node_modules/.bin/yarn’. Can you make sure that all files below frappe-bench are owned by frappe (or you run the command with elevated rights)?
$ cd /home/frappe/frappe-bench
$ sudo chown -R frappe:frappe *
The right are all right!
Only able to run the
bench update --reset
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 7b9c874 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: 15, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 15 (delta 10), reused 10 (delta 10), pack-reused 1
Unpacking objects: 100% (15/15), done.
From https://github.com/frappe/erpnext
e255830..7c744ac develop -> upstream/develop
INFO:bench.utils:git reset --hard upstream/master
Checking out files: 100% (6297/6297), done.
HEAD is now at db6f084 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 libraries...
INFO:bench.utils:npm install yarn
npm WARN deprecated yarn@1.3.2: It is recommended to install Yarn using the native installation method for your environment. See https://yarnpkg.com/en/docs/install
npm WARN prefer global yarn@1.3.2 should be installed with -g
frappe@ /home/frappe/frappe-bench/apps/frappe
└── yarn@1.3.2 extraneous
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.3
INFO:bench.utils:./node_modules/.bin/yarn install
yarn install v1.3.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/2] ⠂ uws
[2/2] ⠂ chromedriver
[-/2] ⠂ waiting...
[-/2] ⠂ waiting...
error /home/frappe/frappe-bench/apps/frappe/node_modules/chromedriver: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /home/frappe/frappe-bench/apps/frappe/node_modules/chromedriver
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_npm_packages(bench_path=bench_path)
File "/home/frappe/bench-repo/bench/utils.py", line 440, in update_npm_packages
exec_cmd('{yarn} install'.format(yarn=yarn_executable), cwd=app_path)
File "/home/frappe/bench-repo/bench/utils.py", line 142, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./node_modules/.bin/yarn install
frappe@erpnext:~/frappe-bench$
may be in the update script the operation should be changed?
INFO:bench.utils:npm install yarn
to
sudo npm install --global yarn
Faced same issue, which was solved with “sudo npm install --global yarn” now bench update runs without errors, but after the update I’m not able to see query reports, make buttons and workflow transitions doesn’t work, I don’t know if it is related, but it happened just after updating yarn and completing the update.
It was released an update for develop branch,
Hopefully will be released to master soon.
It will fix both.
Sadly this dind’t fix, I’m able to login, but query reports and saving documents are not working
Finally something moves forward.
What I done:
as @tundebabzy suggested (Thank you!)
sudo npm install -g yarn
cd to frappe folder (something like ./apps/frappe. It should contain a yarn.lock file
sudo yarn
after I get lots of new files I do
as @lasalesi suggested (Thank you!)
cd /home/frappe/frappe-bench
$ sudo chown -R frappe:frappe *
then
sudo npm install -g yarn
bench update --requirements
bench setup socketio
bench build
Went trough!
bench update --reset
No success!
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 c06dfaf Merge branch 'hotfix'
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git fetch --all
Fetching upstream
INFO:bench.utils:git reset --hard upstream/master
Checking out files: 100% (6313/6313), done.
HEAD is now at 93f138e 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
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:yarn install
yarn install v1.3.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
error An unexpected error occurred: "EACCES: permission denied, unlink '/home/frappe/frappe-bench/apps/frappe/node_modules/.bin/_mocha-nightwatch'".
info If you think this is a bug, please open a bug report with the information provided in "/home/frappe/frappe-bench/apps/frappe/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
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 441, in update_node_packages
update_yarn_packages(bench_path)
File "/home/frappe/bench-repo/bench/utils.py", line 454, in update_yarn_packages
exec_cmd('yarn install', cwd=app_path)
File "/home/frappe/bench-repo/bench/utils.py", line 143, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: yarn install
Then if I install yarn as before @tundebabzy suggested again then
I have the same problem as this:
Some update.
When I switch-to-develope
I got some green lights, BUT some red in the end.
Any help would be helpful.
When all this changes will be pulled to master?
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/develop
HEAD is now at 7e6153c conditional check for single docs (#5060)
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git fetch --all
Fetching upstream
INFO:bench.utils:git reset --hard upstream/develop
Checking out files: 100% (6556/6556), done.
HEAD is now at 5b9f3b0 Merge branch 'master' into develop
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:yarn install
yarn install v1.3.2
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.33s.
Backing up sites...
Patching sites...
Migrating erpnext.vm
Updating DocTypes for frappe : [========================================]
Updating DocTypes for erpnext : [========================================]
Syncing help database...
/home/frappe/frappe-bench/apps/frappe/frappe/build.py:108: UserWarning: Source /home/frappe/frappe-bench/apps/erpnext_demo/erpnext_demo/docs does not exist.
warnings.warn('Source {source} does not exist.'.format(source = source))
> frappe@ production /home/frappe/frappe-bench/apps/frappe
> FRAPPE_ENV=production rollup -c
[!] SyntaxError: Unexpected token {
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.require.extensions..js (/home/frappe/frappe-bench/apps/frappe/node_modules/rollup/bin/rollup:2757:19)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at /home/frappe/frappe-bench/apps/frappe/node_modules/rollup/bin/rollup:2764:32
at process._tickCallback (internal/process/next_tick.js:103:7)
at Function.Module.runMain (module.js:449:11)
npm ERR! Linux 3.13.0-79-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "production"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! frappe@ production: `FRAPPE_ENV=production rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frappe@ production script 'FRAPPE_ENV=production rollup -c'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the frappe package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! FRAPPE_ENV=production rollup -c
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs frappe
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls frappe
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/frappe/frappe-bench/apps/frappe/npm-debug.log
INFO:bench.utils:sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-frappe-schedule: stopped
frappe-bench-frappe-default-worker-0: stopped
frappe-bench-frappe-long-worker-0: stopped
frappe-bench-frappe-short-worker-0: stopped
frappe-bench-frappe-web: stopped
frappe-bench-node-socketio: stopped
frappe-bench-frappe-schedule: started
frappe-bench-frappe-default-worker-0: started
frappe-bench-frappe-long-worker-0: started
frappe-bench-frappe-short-worker-0: started
frappe-bench-node-socketio: started
frappe-bench-frappe-web: started
________________________________________________________________________________
Bench: Deployment tool for Frappe and ERPNext (https://erpnext.org).
Open source depends on your contributions, so please contribute bug reports, patches, fixes or cash and be a part of the community
()
frappe@erpnext:~/frappe-bench$
Main problem is with the
bench build
frappe@erpnext:~/frappe-bench$ bench build
/home/frappe/frappe-bench/apps/frappe/frappe/build.py:108: UserWarning: Source /home/frappe/frappe-bench/apps/erpnext_demo/erpnext_demo/docs does not exist.
warnings.warn('Source {source} does not exist.'.format(source = source))
> frappe@ production /home/frappe/frappe-bench/apps/frappe
> FRAPPE_ENV=production rollup -c
[!] SyntaxError: Unexpected token {
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.require.extensions..js (/home/frappe/frappe-bench/apps/frappe/node_modules/rollup/bin/rollup:2757:19)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at /home/frappe/frappe-bench/apps/frappe/node_modules/rollup/bin/rollup:2764:32
at process._tickCallback (internal/process/next_tick.js:103:7)
at Function.Module.runMain (module.js:449:11)
npm ERR! Linux 3.13.0-79-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "production"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! frappe@ production: `FRAPPE_ENV=production rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frappe@ production script 'FRAPPE_ENV=production rollup -c'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the frappe package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! FRAPPE_ENV=production rollup -c
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs frappe
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls frappe
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/frappe/frappe-bench/apps/frappe/npm-debug.log
frappe@erpnext:~/frappe-bench$