Hi
Tried some commands following the forums
[root@erp frappe-bench]# curl -sL https://rpm.nodesource.com/setup_6.x | bash -
## Installing the NodeSource Node.js 6.x LTS Boron repo...
## Inspecting system...
+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
+ uname -m
## Confirming "el7-x86_64" is supported...
+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_6.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
## Downloading release setup RPM...
+ mktemp
+ curl -sL -o '/tmp/tmp.IMrgfHhXOZ' 'https://rpm.nodesource.com/pub_6.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'
## Installing release setup RPM...
+ rpm -i --nosignature --force '/tmp/tmp.IMrgfHhXOZ'
## Cleaning up...
+ rm -f '/tmp/tmp.IMrgfHhXOZ'
## Checking for existing installations...
+ rpm -qa 'node|npm' | grep -v nodesource
## Run `sudo yum install -y nodejs` to install Node.js 6.x LTS Boron and npm.
## You may also need development tools to build native addons:
sudo yum install gcc-c++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum install yarn
[root@erp frappe-bench]# yum install nodejs
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.teknoboss.com.tr
* epel: my.fedora.ipserverone.com
* extras: mirror.hosting.com.tr
* updates: repo.boun.edu.tr
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 0:5.12.0-1nodesource.el7.centos will be updated
---> Package nodejs.x86_64 1:6.16.0-1.el7 will be an update
--> Processing Dependency: npm = 1:3.10.10-1.6.16.0.1.el7 for package: 1:nodejs-6.16.0-1.el7.x86_64
--> Processing Dependency: libuv >= 1:1.9.1 for package: 1:nodejs-6.16.0-1.el7.x86_64
--> Processing Dependency: libuv.so.1()(64bit) for package: 1:nodejs-6.16.0-1.el7.x86_64
--> Running transaction check
---> Package libuv.x86_64 1:0.10.34-2.el7 will be updated
--> Processing Dependency: libuv(x86-64) = 1:0.10.34-2.el7 for package: 1:libuv-devel-0.10.34-2.el7.x86_64
--> Processing Dependency: libuv.so.0.10()(64bit) for package: 1:libuv-devel-0.10.34-2.el7.x86_64
---> Package libuv.x86_64 1:1.24.1-1.el7 will be an update
---> Package npm.x86_64 1:3.10.10-1.6.16.0.1.el7 will be installed
--> Running transaction check
---> Package libuv-devel.x86_64 1:0.10.34-2.el7 will be updated
---> Package libuv-devel.x86_64 1:1.24.1-1.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================
Updating:
nodejs x86_64 1:6.16.0-1.el7 epel 4.7 M
Installing for dependencies:
npm x86_64 1:3.10.10-1.6.16.0.1.el7 epel 2.5 M
Updating for dependencies:
libuv x86_64 1:1.24.1-1.el7 epel 131 k
libuv-devel x86_64 1:1.24.1-1.el7 epel 31 k
Transaction Summary
===============================================================================================================================================================================
Install ( 1 Dependent package)
Upgrade 1 Package (+2 Dependent packages)
Total size: 7.4 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction check error:
file /usr/lib/node_modules/npm/node_modules/node-gyp from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/doc from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/html from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/man from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/node_modules/uid-number from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/node_modules/umask from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/node_modules/unique-filename from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/node_modules/unpipe from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/node_modules/validate-npm-package-license from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/node_modules/validate-npm-package-name from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/node_modules/which from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/node_modules/wrappy from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
file /usr/lib/node_modules/npm/node_modules/write-file-atomic from install of npm-1:3.10.10-1.6.16.0.1.el7.x86_64 conflicts with file from package nodejs-5.12.0-1nodesource.el7.centos.x86_64
Error Summary
[root@erp frappe-bench]# yum remove nodejs
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 0:5.12.0-1nodesource.el7.centos will be erased
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================
Removing:
nodejs x86_64 5.12.0-1nodesource.el7.centos @nodesource 30 M
Transaction Summary
===============================================================================================================================================================================
Remove 1 Package
Installed size: 30 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : nodejs-5.12.0-1nodesource.el7.centos.x86_64 1/1
Verifying : nodejs-5.12.0-1nodesource.el7.centos.x86_64 1/1
Removed:
nodejs.x86_64 0:5.12.0-1nodesource.el7.centos
Complete!
[root@erp frappe-bench]# yum install nodejs
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.teknoboss.com.tr
* epel: my.fedora.ipserverone.com
* extras: mirror.hosting.com.tr
* updates: repo.boun.edu.tr
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 1:6.16.0-1.el7 will be installed
--> Processing Dependency: npm = 1:3.10.10-1.6.16.0.1.el7 for package: 1:nodejs-6.16.0-1.el7.x86_64
--> Processing Dependency: libuv >= 1:1.9.1 for package: 1:nodejs-6.16.0-1.el7.x86_64
--> Processing Dependency: libuv.so.1()(64bit) for package: 1:nodejs-6.16.0-1.el7.x86_64
--> Running transaction check
---> Package libuv.x86_64 1:0.10.34-2.el7 will be updated
--> Processing Dependency: libuv(x86-64) = 1:0.10.34-2.el7 for package: 1:libuv-devel-0.10.34-2.el7.x86_64
--> Processing Dependency: libuv.so.0.10()(64bit) for package: 1:libuv-devel-0.10.34-2.el7.x86_64
---> Package libuv.x86_64 1:1.24.1-1.el7 will be an update
---> Package npm.x86_64 1:3.10.10-1.6.16.0.1.el7 will be installed
--> Running transaction check
---> Package libuv-devel.x86_64 1:0.10.34-2.el7 will be updated
---> Package libuv-devel.x86_64 1:1.24.1-1.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================
Installing:
nodejs x86_64 1:6.16.0-1.el7 epel 4.7 M
Installing for dependencies:
npm x86_64 1:3.10.10-1.6.16.0.1.el7 epel 2.5 M
Updating for dependencies:
libuv x86_64 1:1.24.1-1.el7 epel 131 k
libuv-devel x86_64 1:1.24.1-1.el7 epel 31 k
Transaction Summary
===============================================================================================================================================================================
Install 1 Package (+1 Dependent package)
Upgrade ( 2 Dependent packages)
Total size: 7.4 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 1:libuv-1.24.1-1.el7.x86_64 1/6
Installing : 1:npm-3.10.10-1.6.16.0.1.el7.x86_64 2/6
Installing : 1:nodejs-6.16.0-1.el7.x86_64 3/6
Updating : 1:libuv-devel-1.24.1-1.el7.x86_64 4/6
Cleanup : 1:libuv-devel-0.10.34-2.el7.x86_64 5/6
Cleanup : 1:libuv-0.10.34-2.el7.x86_64 6/6
Verifying : 1:libuv-devel-1.24.1-1.el7.x86_64 1/6
Verifying : 1:nodejs-6.16.0-1.el7.x86_64 2/6
Verifying : 1:libuv-1.24.1-1.el7.x86_64 3/6
Verifying : 1:npm-3.10.10-1.6.16.0.1.el7.x86_64 4/6
Verifying : 1:libuv-0.10.34-2.el7.x86_64 5/6
Verifying : 1:libuv-devel-0.10.34-2.el7.x86_64 6/6
Installed:
nodejs.x86_64 1:6.16.0-1.el7
Dependency Installed:
npm.x86_64 1:3.10.10-1.6.16.0.1.el7
Dependency Updated:
libuv.x86_64 1:1.24.1-1.el7 libuv-devel.x86_64 1:1.24.1-1.el7
Complete!
[root@erp frappe-bench]# curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
[yarn]
name=Yarn Repository
baseurl=https://dl.yarnpkg.com/rpm/
enabled=1
gpgcheck=1
gpgkey=https://dl.yarnpkg.com/rpm/pubkey.gpg
[root@erp frappe-bench]# yum install yarn
Loaded plugins: fastestmirror, langpacks
yarn | 2.9 kB 00:00:00
yarn/primary_db | 19 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirror.teknoboss.com.tr
* epel: my.fedora.ipserverone.com
* extras: mirror.hosting.com.tr
* updates: repo.boun.edu.tr
Resolving Dependencies
--> Running transaction check
---> Package yarn.noarch 0:1.13.0-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================
Installing:
yarn noarch 1.13.0-1 yarn 1.1 M
Transaction Summary
===============================================================================================================================================================================
Install 1 Package
Total download size: 1.1 M
Installed size: 4.7 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/yarn/packages/yarn-1.13.0-1.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 6963f07f: NOKEY============= ] 1.5 MB/s | 1.1 MB 00:00:00 ETA
Public key for yarn-1.13.0-1.noarch.rpm is not installed
yarn-1.13.0-1.noarch.rpm | 1.1 MB 00:00:01
Retrieving key from https://dl.yarnpkg.com/rpm/pubkey.gpg
Importing GPG key 0x6963F07F:
Userid : "Yarn RPM Packaging <yarn@dan.cx>"
Fingerprint: 9a6f 73f3 4beb 7473 4d8c 6914 9cbb b558 6963 f07f
From : https://dl.yarnpkg.com/rpm/pubkey.gpg
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : yarn-1.13.0-1.noarch 1/1
Verifying : yarn-1.13.0-1.noarch 1/1
Installed:
yarn.noarch 0:1.13.0-1
Complete!
After that restarted the server
[root@erp frappe-bench]# cd ..
[root@erp frappe]# cd bench-repo/
[root@erp bench-repo]# git pull
Already up-to-date.
[root@erp bench-repo]# cd ../frappe-bench/
[root@erp frappe-bench]# ls
apps archived_sites config env logs node_modules package.json patches.txt Procfile sites
[root@erp frappe-bench]# cd apps/
erpnext/ frappe/
[root@erp frappe-bench]# cd apps/erpnext/
[root@erp erpnext]# git pull
remote: Enumerating objects: 94, done.
remote: Counting objects: 100% (94/94), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 95 (delta 77), reused 91 (delta 76), pack-reused 1
Unpacking objects: 100% (95/95), done.
From https://github.com/frappe/erpnext
da1dc7f..665ee4a develop -> upstream/develop
7612030..504f317 hotfix -> upstream/hotfix
Already up-to-date.
[root@erp erpnext]# cd ../erpnext/
[root@erp erpnext]# git pull
Already up-to-date.
[root@erp erpnext]# su frappe
[frappe@erp erpnext]$ cd /home/frappe/frappe-bench/
[frappe@erp 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
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages (5.3.0)
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
Updating Python libraries...
INFO:bench.utils:./env/bin/pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages (19.0.1)
INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/bench-repo/requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
INFO:bench.app:installing frappe
INFO:bench.utils:./env/bin/pip install -q -e ./apps/frappe
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
INFO:bench.app:installing erpnext
INFO:bench.utils:./env/bin/pip install -q -e ./apps/erpnext
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Updating node packages...
INFO:bench.utils:yarn install
yarn install v1.13.0
node: relocation error: node: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference
Traceback (most recent call last):
File "/usr/bin/bench", line 9, in <module>
load_entry_point('bench==4.0.0', 'console_scripts', 'bench')()
File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/frappe/bench-repo/bench/commands/update.py", line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
File "/home/frappe/bench-repo/bench/commands/update.py", line 77, in _update
update_node_packages(bench_path=bench_path)
File "/home/frappe/bench-repo/bench/utils.py", line 449, in update_node_packages
update_yarn_packages(bench_path)
File "/home/frappe/bench-repo/bench/utils.py", line 462, in update_yarn_packages
exec_cmd('yarn install', cwd=app_path)
File "/home/frappe/bench-repo/bench/utils.py", line 159, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: yarn install
Any help please…
KR
Fasil