Unable to complete schedulix installation

141 views
Skip to first unread message

Vetrichelvam Jayaraj

unread,
Feb 15, 2019, 5:04:01 AM2/15/19
to schedulix
Hi Team,

I am trying to install Schedulix 2.8 in linux box(RHEL 7.4) with postgres
My doubts could be silly also. Please excuse and clarify me.
 
1) What is the use of Schedulix server and client? Why because, I am installing Schedulix in a singe Linux box. So i think only server installation is sufficient. Is my understanding right?

2) While using the command 'server-start', below error is thrown.
[schedulix]/home/schedulix/schedulix/bin> server-start
/home/schedulix/schedulix/lib/functions.sh: line 46: syntax error near unexpected token `('
/home/schedulix/schedulix/lib/functions.sh: line 46: `which()'
Attaching function.sh file for reference. I couldn't see any discrepencies in the file.

3) What are the values to be configured in .sdmshrc file. In the sample file, below inputs are provided.
$ cat ~/.sdmshrc User=SYSTEM Password=G0H0ME Host=localhost Port=2506 Timeout=0 ( what are these parameters -user, password, host and port?)

4) While executing following commands, getting Connection refused error.
[schedulix]/home/schedulix> sdmsh < /home/schedulix/schedulix/install/convenience.sdms
Connect Error: java.net.ConnectException: Connection refused (Connection refused)

[schedulix]/home/schedulix/schedulix/install> ./setup_example_jobservers.sh
Connect Error: java.net.ConnectException: Connection refused (Connection refused)

Thanks in advance.
Regards,
VETRI

functions.sh.txt

Ronald Jeninga

unread,
Feb 15, 2019, 5:27:57 AM2/15/19
to schedulix
Hi Vetri,

there are a couple of scedulix rpms:

1. schedulix-base
    This package contains the common files for most other packages
2. schedulix-server-pg / schedulix-server-mariadb
    This, together with the schedulix-base package sets up the central scheduling server.
    That's the server in the centre of the architecture schema as shown in http://www.schedulix.org/en/highlights/architektur
3. schedulix-client
    This package is required to set up jobservers/agents
4. schedulix-zope
    This package sets up the Zope server for the Web GUI

The doc package provides the documentation, the example package provides some examples.

In your case you'll need all packages described above. The doc and examples are optional.

----

Is it possible that your /bin/sh points to something else than /bin/bash?
The sdmsctl script ($BICSUITEHOME/bin/sdmsctl) calls /bin/sh as a command interpreter, and depending on the Bourne shell you use, this works or fails.
Please change the hashbang line into

#!/bin/bash

and try again.

----

The .sdmshrc file makes it easier to work with the sdmsh command, especially in a scripting environment.
For a direct connection to the scheduling server, you need of course the host where it runs, the port at which it listens, then you need the user name and the corresponding password for authentication.
It is possible to specify the values at the command line of sdmsh, but that would mean your password is visible to others if they just do a "ps -ef".
If the password isn't specified, the utility will ask for it, but that makes it hard to use within a script.
The .sdmshrc file provides all the required information, no passwords on the command line, no interactive action.
Needless to say that the file permissions should be 0600

----

Since you had issues with the start of the scheduling server, it probably didn't start at all.
This means that no process is listening at the 2506 port.
Hence the "connection refused".

HTH

Best regards,

Ronald

Vetrichelvam Jayaraj

unread,
Feb 18, 2019, 12:58:15 AM2/18/19
to schedulix
Hi Ronald,
Thanks for the elaborate response. That gives me little more clarity. 
Now I am trying to install zope server using rpm package. Getting dependency error as below.
[ubgenadm]/home/ubgenadm/RPMs> sudo rpm -ivh schedulix-zope-2.8-18.el7.x86_64.rpm
warning: schedulix-zope-2.8-18.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID a8592297: NOKEY
Preparing...        (100%)^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H################################# [100%]
executing pre zope -- 2.8-18.el7
fetching zope
New python executable in /opt/schedulix/software/Zope/bin/python
Installing setuptools, pip, wheel...done.
Collecting AccessControl==2.13.15 (from -r /opt/schedulix/schedulix/etc/zope_requirements-2.13.26.txt (line 1))
^[[33m  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fdc1afe8d90>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[33m  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fdc1afe8e10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[33m  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fdc1afe8a10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[33m  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fdc1afe8710>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[33m  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fdc1afe8510>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[31m  Could not find a version that satisfies the requirement AccessControl==2.13.15 (from -r /opt/schedulix/schedulix/etc/zope_requirements-2.13.26.txt (line 1)) (from versions: )^[[0m
^[[31mNo matching distribution found for AccessControl==2.13.15 (from -r /opt/schedulix/schedulix/etc/zope_requirements-2.13.26.txt (line 1))^[[0m
Error during easy_install of Zope2 version 2.13.26
retrying ...(1/10)
Collecting AccessControl==2.13.15 (from -r /opt/schedulix/schedulix/etc/zope_requirements-2.13.26.txt (line 1))
^[[33m  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f1afaee2d90>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[33m  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f1afaee2e10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[33m  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f1afaee2a10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[33m  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f1afaee2710>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[33m  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f1afaee2510>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/^[[0m
^[[31m  Could not find a version that satisfies the requirement AccessControl==2.13.15 (from -r /opt/schedulix/schedulix/etc/zope_requirements-2.13.26.txt (line 1)) (from versions: )^[[0m

I tried downloading AccessControl package separately and kept in user home path. But while running rpm command, it doesn't pick up the package as it is not able to recongnize it.
Kindly guide to overcome this installation error.

Regards,
VETRI

Ronald Jeninga

unread,
Feb 18, 2019, 5:50:05 AM2/18/19
to schedulix
Hi Vetri,

since the installation already fails at the first python module it wants to install ("from -r ... (line 1)"), it could be a problem with your Internet connection or you could have a firewall issue.
Or maybe pip chooses a wrong mirror for downloading. Hard to say.

If your Internet connection is OK, you're probably running into one of those weird python/pip related errors.
From my experience those are transient and a repeated "yum install" (you might have to remove the package first) often works.

If your box isn't connected to the Internet, or if you have some firewall issues that are beyond your control, you'll need an "offline" installation.
In that case I'll post a kind of recipe.
My first action in your situation would be to give it another try first. If the problem persists, I'll guide you through the offline installation.

Best regards,

Ronald

Vetrichelvam Jayaraj

unread,
Feb 19, 2019, 8:55:10 PM2/19/19
to schedulix
Hi Ronald,

I tried repeatedly for installing. Didn't work out. 
Also I do not have internet access on my Linux server. Kindly guide on offline installation.

Regards,
VETRI

Ronald Jeninga

unread,
Feb 20, 2019, 2:49:07 AM2/20/19
to schedulix
Hi Vetri,

well, without an Internet connection the Zope installation won't work out of the box.
The process tries to download about 50 Python packages, which is proved to be hard without a connection.

The basic idea is:

1. download the packages yourself
2. setup the Zope server manually
3. install the schedulix-zope package _without_ executing the pre- and post-scrips

I've uploaded a document that describes this procedure more in detail: https://www.independit.de/Downloads/schedulix-setup.pdf
Please note: it is only a draft, basically formatted notes I took while performing an offline installation myself.

Hope it helps. Don't hesitate to suggest improvements of the document.

Best regards,

Ronald 

Vetrichelvam Jayaraj

unread,
Feb 24, 2019, 7:25:59 PM2/24/19
to schedulix
Hi Ronald,
I have enabled internet in my server now. I also tried the connection by wget( eg: wget  https://www.google.com). It  works.

I tried zope server installation command now.
[ubgenadm]/home/ubgenadm/RPMs> sudo rpm -ivh schedulix-zope-2.8-18.el7.x86_64.rpm
warning: schedulix-zope-2.8-18.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID a8592297: NOKEY
Preparing...                          ################################# [100%]
executing pre zope -- 2.8-18.el7
fetching zope
New python executable in /opt/schedulix/software/Zope/bin/python
Installing setuptools, pip, wheel...done.
Collecting AccessControl==2.13.15 (from -r /opt/schedulix/schedulix/etc/zope_requirements-2.13.26.txt (line 1))
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f530ae1bd90>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f530ae1be10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/accesscontrol/

Once again, it shows the same error. I am downloading the packages as mentioned in '/opt/schedulix/schedulix/etc/zope_requirements-2.13.26.txt' file.
Do let me know, if the above error can be fixed so that the manual action will be avoided.

Regards,
VETRI

Dieter Stubler

unread,
Feb 25, 2019, 7:45:46 AM2/25/19
to schedulix
Hi,

seems your internet connection is not open enough for pip to download packages.
First try to install any python package using pip.
Fix any problems with internet connections, filewalls, ... and try to continue installation after pip is working.

Regards
Dieter

Vetrichelvam Jayaraj

unread,
Feb 25, 2019, 8:54:58 AM2/25/19
to schedulix
Hi Dieter,

Yes you are right. I am not able to install pip itself. getting similar error.

[ubgenadm]/home/ubgenadm/software/pip-19.0.3/src> sudo python get-pip.py
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.
Collecting pip
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8a5dd9e50>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pip/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa8a5fb9e50>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pip/

I am trying to figure out the error. Kindly provide your inputs also if you find any.

Regards,
VETRI

Vetrichelvam Jayaraj

unread,
Mar 21, 2019, 7:23:05 AM3/21/19
to schedulix
Hi Dieter,

Apologies for the delayed reply.
The error was due to "Internet connection" only . It was not opened correctly in firewall.
Once the connection was fine, I was able to proceed with installation of Schedulix.

Regards,
VETRI

Suddapalli Dileep

unread,
Mar 26, 2019, 1:00:04 AM3/26/19
to schedulix
Hi Team,

I have installed schedulix in a Linux server version 2.8 and ive done ZOPE installation as well successfully on top of it. When I try to invoke http://localhost:8080, page is not getting displayed. PFB the error im getting when I curl the URL in Linux server.



Kindly help me resolving this issue. Thanks in advance.
Reply all
Reply to author
Forward
0 new messages