DFabric / DPlatform-Shell

Deploy self-hosted apps easily: simple, bloat-free, independent installation
https://dfabric.github.io/DPlatform-Shell
MIT License
271 stars 44 forks source link

Rocker.chat - Installing problems #25

Closed Rohlik closed 7 years ago

Rohlik commented 7 years ago

I want install Rocket.chat and local DB, but I get this error in stdout/stderr:

You have the newer MongoDB version available
Failed to open: /var/cache/dnf/x86_64/7.2/x86_64/7.2/epel/repodata/8415cbb16f52517f34e3edac12a97c9893117f7b9de6cb22fc086048febd1c60-updateinfo.xml.bz2.

## Installing the NodeSource Node.js 6.x 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.yHDSRJTQXD' '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.yHDSRJTQXD'

## Cleaning up...

+ rm -f '/tmp/tmp.yHDSRJTQXD'

## Checking for existing installations...

+ rpm -qa 'node|npm' | grep -v nodesource

## Run `yum install -y nodejs` (as root) to install Node.js 6.x and npm.
## You may also need development tools to build native addons:
##   `yum install -y gcc-c++ make`

Failed to open: /var/cache/dnf/x86_64/7.2/x86_64/7.2/epel/repodata/8415cbb16f52517f34e3edac12a97c9893117f7b9de6cb22fc086048febd1c60-updateinfo.xml.bz2.
Failed to open: /var/cache/dnf/x86_64/7.2/x86_64/7.2/epel/repodata/8415cbb16f52517f34e3edac12a97c9893117f7b9de6cb22fc086048febd1c60-updateinfo.xml.bz2.
Node.js installed
Failed to open: /var/cache/dnf/x86_64/7.2/x86_64/7.2/epel/repodata/8415cbb16f52517f34e3edac12a97c9893117f7b9de6cb22fc086048febd1c60-updateinfo.xml.bz2.
Failed to open: /var/cache/dnf/x86_64/7.2/x86_64/7.2/epel/repodata/8415cbb16f52517f34e3edac12a97c9893117f7b9de6cb22fc086048febd1c60-updateinfo.xml.bz2.
mv: cannot stat ‘bundle/*’: No such file or directory
mv: cannot stat ‘bundle/.[^.]*’: No such file or directory
rm: cannot remove ‘bundle’: No such file or directory
apps/Rocket.Chat.sh: line 100: cd: programs/server: No such file or directory
apps/Rocket.Chat.sh: line 102: npm: command not found
Created symlink from /etc/systemd/system/multi-user.target.wants/rocket.chat.service to /etc/systemd/system/rocket.chat.service.

Using RHEL 7.2. Can you help me?

j8r commented 7 years ago

You have a problem with the dnf package. Try to find a solution for Failed to open: /var/cache/dnfon the Internet. If you can't fix it, you can remove this lines in dplatform.sh, yum will be used instead.

elif hash dnf 2>/dev/null ;then
    PKG=rpm
    install="dnf install -y"
    remove="dnf remove -y"
Rohlik commented 7 years ago

Ok, for resolve my problems with dnf I used this solution: http://unix.stackexchange.com/a/250265 but now I have this problem.

You have the newer MongoDB version available

## Installing the NodeSource Node.js 6.x 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.Um7yDyW1fE' '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.Um7yDyW1fE'

## Cleaning up...

+ rm -f '/tmp/tmp.Um7yDyW1fE'

## Checking for existing installations...

+ rpm -qa 'node|npm' | grep -v nodesource

## Run `yum install -y nodejs` (as root) to install Node.js 6.x and npm.
## You may also need development tools to build native addons:
##   `yum install -y gcc-c++ make`

Using metadata from Fri Nov  4 16:48:23 2016
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Package nodejs-2:6.9.1-1nodesource.el7.centos.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Using metadata from Fri Nov  4 16:48:23 2016
No package npm available.
Error: no package matched: npm
Node.js installed
Removed symlink /etc/systemd/system/multi-user.target.wants/rocket.chat.service.
userdel: rocketchat mail spool (/var/spool/mail/rocketchat) not found
groupdel: group 'rocketchat' does not exist
You have the newer MongoDB version available
Using metadata from Fri Nov  4 16:48:23 2016
Package python-2.7.5-34.el7.x86_64 is already installed, skipping.
Package python-2.7.5-34.el7.x86_64 is already installed, skipping.
Package make-1:3.82-21.el7.x86_64 is already installed, skipping.
Package make-1:3.82-21.el7.x86_64 is already installed, skipping.
No package g++ available.
Error: no package matched: g++
You have Node.js installed
Using metadata from Fri Nov  4 16:48:23 2016
No package graphicsmagick available.
Error: no package matched: graphicsmagick
Config error: Can not read configuration: /etc/dnf/dnf.conf
mv: cannot stat ‘bundle/*’: No such file or directory
mv: cannot stat ‘bundle/.[^.]*’: No such file or directory
rm: cannot remove ‘bundle’: No such file or directory
apps/Rocket.Chat.sh: line 100: cd: programs/server: No such file or directory
npm WARN enoent ENOENT: no such file or directory, open '/home/rocketchat/package.json'
npm WARN rocketchat No description
npm WARN rocketchat No repository field.
npm WARN rocketchat No README data
npm WARN rocketchat No license field.
ln: failed to create symbolic link ‘node_modules/fibers/bin/linux-x64-v8-5.1’: No such file or directory
Created symlink from /etc/systemd/system/multi-user.target.wants/rocket.chat.service to /etc/systemd/system/rocket.chat.service.

But for instance, file /etc/dnf/dnf.conf exists. I don't know why script is complaining.

j8r commented 7 years ago

Ok I've found problems on the scripts: g++ is gcc-c++ and GraphicsMagick doesn't exist on official repos, we need to enable EPEL. Finally, some $1 should be replaced by "$1" on some places

Rohlik commented 7 years ago

No package graphicsmagick available. yum list | grep graphicsmagick - nothing found yum list | grep GraphicsMagick - 1 result found: GraphicsMagick.x86_64 1.3.25-1.el7 @epel

j8r commented 7 years ago

I have written repel instead of epel, should be good now.