By: Pratik Sayare user 11 Dec 2017 at 5:27 a.m. CST

10 Responses
Pratik Sayare gravatar
Hi Team, Followed steps as per https://gluu.org/docs/ce/3.1.1/installation-guide/install/#centos-7x Everything went smoothly without any errors. Getting error while executing command /sbin/gluu-serverd-3.1.1 enable Error Failed to issue method call: No such file or directory Am I missing any steps or configuration? Kindly assist. /Pratik

By Aliaksandr Samuseu staff 11 Dec 2017 at 9:29 a.m. CST

Aliaksandr Samuseu gravatar
Hi, Pratik. It should be `# /usr/sbin/gluu-serverd-3.1.1 enable` I believe. Could you try this instead?

By Pratik Sayare user 11 Dec 2017 at 7:33 p.m. CST

Pratik Sayare gravatar
Still same. I also tried to run manually the commands from enable function and it gives the same result ``` /usr/sbin/gluu-serverd-3.1.1 /var/lib/container/gluu_server_3.1.1 [root@gluu ~]# /usr/sbin/gluu-serverd-3.1.1 enable Failed to issue method call: No such file or directory [root@gluu ~]# vi /usr/sbin/gluu-serverd-3.1.1 [root@gluu ~]# systemctl enable machines.target Failed to issue method call: No such file or directory [root@gluu ~]# systemctl enable systemd-nspawn@gluu_server_$GLUU_VERSION.service Failed to issue method call: No such file or directory [root@gluu ~]# ``` /Pratik

By Aliaksandr Samuseu staff 14 Dec 2017 at 12:06 p.m. CST

Aliaksandr Samuseu gravatar
Hi, Pratik. The error your are getting is clear. "Error Failed to issue method call: No such file or directory" mean that the some required file can't be found or accessed. To assert that type the following commands: 1. `# ls /sbin | grep "gluu"` 2. `# systemctl list-unit-files | grep grep "gluu"` If the output of both is empty it may mean that something went wrong during installation process and your Gluu CE package is broken. Regardless of results, I would still suggest to try reinstalling the package. Run next command `# yum remove gluu-server-3.1.1`, delete all remaining Gluu files under the `/opt` directory, clean yum's caches with `# yum clean all`, restart the machine and then try to install it again. In case it will fail to start again, please share all output `yum install` did provide. Make sure your system meets our [minimal requirements](https://gluu.org/docs/ce/3.1.1/installation-guide/#system-requirements). In particular, please make sure SElinux is not enabled there by running `# getenforce` NB: Make sure you have followed the right section according to your Operating system(in this case Centos7 not Centos6). One more question: What is your Centos version? You can get that with this comand: `# cat /etc/centos-release`. If that version is less than 7.2, please try with Centos7.2 or later.

By Pratik Sayare user 14 Dec 2017 at 10:08 p.m. CST

Pratik Sayare gravatar
Hi, I was using centos 7.1. Updated to 7.4 it seems to work now. But now getting another error while executing setup.py. Can I continue with the same thread for further errors or need to start a new thread for new errors? ``` [root@gluu community-edition-setup]# ./setup.py Traceback (most recent call last): File "./setup.py", line 44, in <module> from pyDes import * ImportError: No module named pyDes ================================================================ [root@gluu ~]# setenforce 0 [root@gluu ~]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: permissive Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28 [root@gluu ~]# wget https://repo.gluu.org/centos/Gluu-centos7.repo -O /etc/yum.r epos.d/Gluu.repo --2017-12-15 10:38:11-- https://repo.gluu.org/centos/Gluu-centos7.repo Resolving repo.gluu.org (repo.gluu.org)... 165.227.82.89 Connecting to repo.gluu.org (repo.gluu.org)|165.227.82.89|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 159 Saving to: ‘/etc/yum.repos.d/Gluu.repo’ 100%[======================================>] 159 --.-K/s in 0s 2017-12-15 10:38:13 (7.46 MB/s) - ‘/etc/yum.repos.d/Gluu.repo’ saved [159/159] [root@gluu ~]# wget https://repo.gluu.org/centos/RPM-GPG-KEY-GLUU -O /etc/pki/rp m-gpg/RPM-GPG-KEY-GLUU --2017-12-15 10:38:20-- https://repo.gluu.org/centos/RPM-GPG-KEY-GLUU Resolving repo.gluu.org (repo.gluu.org)... 165.227.82.89 Connecting to repo.gluu.org (repo.gluu.org)|165.227.82.89|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3112 (3.0K) Saving to: ‘/etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU’ 100%[======================================>] 3,112 --.-K/s in 0s 2017-12-15 10:38:21 (46.2 MB/s) - ‘/etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU’ saved [311 2/3112] [root@gluu ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU [root@gluu ~]# yum clean all Loaded plugins: fastestmirror, langpacks Cleaning repos: Gluu-rpm-centos7-repo base extras updates Cleaning up everything Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned d ata from disabled or removed repos Cleaning up list of fastest mirrors [root@gluu ~]# yum install gluu-server-3.1.1 Loaded plugins: fastestmirror, langpacks Gluu-rpm-centos7-repo | 2.9 kB 00:00:00 base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 base/7/x86_64/primary_db FAILED 0% [ ] 0.0 B/s | 0 B --:--:-- ETA http://repo.virtualhosting.hk/centos/7.4.1708/os/x86_64/repodata/0c34273ad0292747ee5e15c047d3e51c67ca59861a446972db45d71abacc7ad7-primary.sqlite.bz2: [Errno 14] HTTP Error 503 - Service Unavailable ] 0.0 B/s | 0 B --:--:-- ETA Trying other mirror. (1/5): base/7/x86_64/group_gz | 156 kB 00:00:00 extras/7/x86_64/primary_db FAILED http://repo.virtualhosting.hk/centos/7.4.1708/extras/x86_64/repodata/ba6ddbb2092a5f4ec8543798af073233a8920fc091e21386efb55cdeca0c1814-primary.sqlite.bz2: [Errno 14] HTTP Error 503 - Service Unavailable ] 0.0 B/s | 0 B --:--:-- ETA Trying other mirror. (2/5): extras/7/x86_64/primary_db | 145 kB 00:00:00 (3/5): updates/7/x86_64/primary_db | 4.5 MB 00:00:00 (4/5): base/7/x86_64/primary_db | 5.7 MB 00:00:01 (5/5): Gluu-rpm-centos7-repo/primary_db | 204 kB 00:00:03 Determining fastest mirrors * base: mirror.vpshosting.com.hk * extras: mirror.sunnyvision.com * updates: mirror.vpshosting.com.hk Resolving Dependencies --> Running transaction check ---> Package gluu-server-3.1.1.x86_64 0:1-2.centos7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Installing: gluu-server-3.1.1 x86_64 1-2.centos7 Gluu-rpm-centos7-repo 721 M Transaction Summary ============================================================================================================================================================================================================================================= Install 1 Package Total download size: 721 M Installed size: 1.3 G Is this ok [y/d/N]: y Downloading packages: gluu-server-3.1.1-1-2.centos7.x86_64.rpm | 721 MB 01:20:10 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : gluu-server-3.1.1-1-2.centos7.x86_64 1/1 Verifying : gluu-server-3.1.1-1-2.centos7.x86_64 1/1 Installed: gluu-server-3.1.1.x86_64 0:1-2.centos7 Complete! [root@gluu ~]# /sbin/gluu-serverd-3.1.1 enable Created symlink from /etc/systemd/system/multi-user.target.wants/machines.target to /usr/lib/systemd/system/machines.target. [root@gluu ~]# /sbin/gluu-serverd-3.1.1 start [root@gluu ~]# cd /install/community-edition-setup -bash: cd: /install/community-edition-setup: No such file or directory [root@gluu ~]# cd /opt/gluu-server-3.1.1/ [root@gluu gluu-server-3.1.1]# ls bin boot dev etc home install lib lib64 media mnt opt proc root run sbin srv sys tmp usr var [root@gluu gluu-server-3.1.1]# locate setup.py /opt/gluu-server-3.1.1/install/community-edition-setup/setup.py /opt/gluu-server-3.1.1/install/community-edition-setup/tests/test_setup.py /usr/lib/python2.7/site-packages/pykickstart/commands/ostreesetup.py /usr/lib/python2.7/site-packages/pykickstart/commands/ostreesetup.pyc /usr/lib/python2.7/site-packages/pykickstart/commands/ostreesetup.pyo [root@gluu gluu-server-3.1.1]# /opt/gluu-server-3.1.1/install/community-edition-setup/setup.py Traceback (most recent call last): File "/opt/gluu-server-3.1.1/install/community-edition-setup/setup.py", line 44, in <module> from pyDes import * ImportError: No module named pyDes [root@gluu gluu-server-3.1.1]# cd /opt/gluu-server-3.1.1/install/community-edition-setup/ You have mail in /var/spool/mail/root [root@gluu community-edition-setup]# ./setup.py Traceback (most recent call last): File "./setup.py", line 44, in <module> from pyDes import * ImportError: No module named pyDes [root@gluu community-edition-setup]# ```

By Aliaksandr Samuseu staff 15 Dec 2017 at 1:09 p.m. CST

Aliaksandr Samuseu gravatar
Hi, Pratik. These are required steps after Gluu CE installation: 1. `# /sbin/gluu-serverd-3.1.1 enable` 2. `# /sbin/gluu-serverd-3.1.1 start` 3. `# /sbin/gluu-serverd-3.1.1 login` And only then you can go to the remaining steps: 4. `# cd /install/community-edition-setup` 5. `# ./setup.py` Given the log you have provided, theses steps aren't respected. For instance the command at step three is missing. Note that the command at step 4) expect that you have already run the one in step 3) Also disable SELinux(`# setenforce 0`) and try again and let us know.

By Pratik Sayare user 17 Dec 2017 at 7:56 p.m. CST

Pratik Sayare gravatar
Hi, I tried the suggested steps. Still same error. Do I need to externally install this module? ``` login as: root root@192.168.109.133's password: Last login: Mon Dec 18 09:44:55 2017 [root@gluu ~]# /sbin/gluu-serverd-3.1.1 enable [root@gluu ~]# /sbin/gluu-serverd-3.1.1 start [root@gluu ~]# /sbin/gluu-serverd-3.1.1 login Welcome to the Gluu Server! [root@localhost ~]# cd /opt/ [root@localhost opt]# ls dist [root@localhost opt]# login as: root root@192.168.109.133's password: Last login: Mon Dec 18 09:49:57 2017 from 192.168.109.1 [root@gluu ~]# hostname gluu.gamatech.com [root@gluu ~]# cd /opt/gluu-server-3.1.1/install/community-edition-setup/ [root@gluu community-edition-setup]# ./setup.py Traceback (most recent call last): File "./setup.py", line 44, in <module> from pyDes import * ImportError: No module named pyDes [root@gluu community-edition-setup]# setenforce 0 [root@gluu community-edition-setup]# ./setup.py Traceback (most recent call last): File "./setup.py", line 44, in <module> from pyDes import * ImportError: No module named pyDes [root@gluu community-edition-setup]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: permissive Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28 [root@gluu community-edition-setup]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@gluu community-edition-setup]# ```

By Aliaksandr Samuseu staff 18 Dec 2017 at 12:45 p.m. CST

Aliaksandr Samuseu gravatar
Hi, Pratik. This line: ``` [root@gluu ~]# cd /opt/gluu-server-3.1.1/install/community-edition-setup/ ``` ...clearly shows you still don't do it as expected. The correct command from the doc is `# cd /install/community-edition-setup`, I'm not sure where did you get that one version you're trying to run. Please follow the docs to the letter, otherwise there is no guarantee you'll get a working Gluu instance. You first **login** into the container, and only then `setup.py` can be run (and you try to run it from outside of container again)

By Pratik Sayare user 18 Dec 2017 at 7:55 p.m. CST

Pratik Sayare gravatar
Hi, Ok thanks, it works now. Sorry, I didn't check the docs properly. Sorry for the inconvenience caused.

By Pratik Sayare user 18 Dec 2017 at 8:21 p.m. CST

Pratik Sayare gravatar
Hi, When I try to log in it gives 503 Service unavailable error.AM I still missing something?

By Aliaksandr Samuseu staff 19 Dec 2017 at 10:48 a.m. CST

Aliaksandr Samuseu gravatar
I would suggest to re-install it from scratch, following each step in docs closely, and also make sure again you meet system requirements of the package. At this point I can't be sure whether you followed all steps from the docs previously as well.