BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.

Hi Team,

 

Please advise how to start how to SAS Environment Manager on Linux server. Its throwing the below error when I execute command with root user.

 

Execution of HQ setup not allowed as the root user.
Please log in as a different user and re-run /opt/sas/software/SASEnvironmentManager/2.5/installer/bin/hq-setup.sh

 

Execution of HQ setup not allowed as the root user.
Please log in as a different user and re-run ./hq-setup.sh

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

@sewa_bal_gmail_com wrote:

I will not share these confidentials details. Please let me know the steps so that I can fix this issue.


In that case, SAS technical support is your only option.

View solution in original post

16 REPLIES 16
JuanS_OCS
Amethyst | Level 16

You need to start any sas service as your sas installer user account (generally named as sas or sasinst).

sewa_bal_gmail_com
Quartz | Level 8

Both the services are up :- 

 

SAS Environment Manager is UP
SAS Environment Manager Agent is UP

 

Please advise.

JuanS_OCS
Amethyst | Level 16

I mean: stop the services (that probably were started by root - I guess on your boot scripts), clean your logs and then ensure you will start them again with the sas installer account. At last, check your logs again, you should not get the same message on the new logs.

sewa_bal_gmail_com
Quartz | Level 8

How to start SAS environment manager on Linux. 

 

When I execute command with root user its throwing below error


Execution of HQ setup not allowed as the root user.
Please log in as a different user and re-run /opt/sas/software/SASEnvironmentManager/2.5/installer/bin/hq-setup.sh

 

But when i tried with other user it asking to installation of  : - 

y
WARNING: Setup properties file can't be written to /opt/sas/software/SASEnvironmentManager/2.5/installer/data/setup.properties
Setup properties will be written to /tmp/setup.properties instead.
Choose which software to install:
1: Hyperic HQ Server

 

Please advise : 
2: Hyperic HQ Agent

anja
SAS Employee

Hi there,

 

if this has not been resolved, Tech Sup would be a good next step. They 'll be able to help you and point you in the right direction.

 

Thanks

Anja

anja
SAS Employee

Adding one more thing to my update from yesterday:

 

Did you try to restart all your services? Since services depend on each other, it might help to restart all and see if

the error remains or, maybe a more detailed error message shows.

 

The order of starting

http://support.sas.com/documentation/cdl/en/bisag/68240/HTML/default/viewer.htm#p0d9d5nzmd8i4yn1usv2...

obviously, to stop, use reversed order.

 

Check the log for more details:

/sasconfig/Web/Lev1/Web/WebServer/logs/

 

How many SASServer instances do you have? I am asking because looking at the logs of each SASServer might help to

narrow down the problem. There should be logs in: 

Lev1\Web\Logs\SASServer1_1\  (SASServerxxxx, depending on how many web app servers you have).

and 
Lev1\Web\WebAppServer\SASServer1_1\logs

(here as well: SASServerxxx depending on how many Web App Servers you have).

 

Hopefully this helps to pin down the problem.

 

Thanks

Anja

 

SurajChand
Obsidian | Level 7

Hi There,

 

All SAS services should be started or stopped through your sas installaer user. you can start or stop the services through root user if SAS software installed by root user.

 

According to error it seems that root is not the installer user. you can start the service with following path through your installaer user.

 

Levxx/Web/SASEnvironmentManager/server-xx.xxx-EE/bin

sh hq-server.sh status/stop/start

OR

./hq-server.sh status/stop/start

 

To find the proccess for a service 

ps -ef | grep -i SASEnvironmentManager

 

by this command you can check which user started the services root or sas/sasinst.

 

if you found that services are started by root user then firslty stop the services with root user and then start it by your installer user (sas or sasinst)

 

Best Regards

Suraj

sewa_bal_gmail_com
Quartz | Level 8

Below services is running 

SAS Web Infrastructure Data Server is UP
SAS Metadata Server 1 is UP
SAS Object Spawner 1 is UP
SAS DIP Job Runner 1 is UP
SAS Information Retrieval Studio Server is UP
SAS JMS Broker is UP
SAS Cache Locator Service ins_41415 is UP
SAS Web Server is NOT up
SAS Web App Server SASServer1_1 is UP
SAS Web App Server SASServer12_1 is UP
SAS Web App Server SASServer2_1 is UP
SAS Environment Manager is UP
SAS Environment Manager Agent is UP

 

Actually I dont know how we can start Environment Manager on SS9.4 M4 on Linux environment.

Please advise whats steps I need to follow to open the SAS Environment Manager on linux server.

SurajChand
Obsidian | Level 7

Hi,

 

According to this snap you would not be able to access the portal as much i'm guessing.

 

all services are up except WebServer. Can you check the status for this particular service.

 

maku sure this task should be performed by your installer user (sas).

 

cd Levxx/Web/WebServer/bin

./httpdctl status/stop/start

 

is it running or not?

 

And request you share the letest logs for more details on this issue from below path.

 

Levxx/Web/WebServer/logs:-

access.....log

error.....log

 

Best Regards,

Suraj

sewa_bal_gmail_com
Quartz | Level 8

Here is status : - 

./httpdctl status

pivotal httpd (pid 24457?) NOT RUNNING

 

When I start service here is the log

./httpdctl start
Starting pivotal httpd
(13)Permission denied: make_sock: could not bind to address [::]:443
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Server start FAILED

 

 

 


@SurajChand wrote:

Hi,

 

According to this snap you would not be able to access the portal as much i'm guessing.

 

all services are up except WebServer. Can you check the status for this particular service.

 

maku sure this task should be performed by your installer user (sas).

 

cd Levxx/Web/WebServer/bin

./httpdctl status/stop/start

 

is it running or not?

 

And request you share the letest logs for more details on this issue from below path.

 

Levxx/Web/WebServer/logs:-

access.....log

error.....log

 

 


@SurajChand wrote:

Hi,

 

According to this snap you would not be able to access the portal as much i'm guessing.

 

all services are up except WebServer. Can you check the status for this particular service.

 

maku sure this task should be performed by your installer user (sas).

 

cd Levxx/Web/WebServer/bin

./httpdctl status/stop/start

 

is it running or not?

 

And request you share the letest logs for more details on this issue from below path.

 

Levxx/Web/WebServer/logs:-

access.....log

error.....log

 

Best Regards,

Suraj



 

 

 

Best Regards,

Suraj


 

SurajChand
Obsidian | Level 7

Hi,

 

Let me know about few things.

 

1. which user you have used to installed the SAS software?

2. httpdctl file permission should be sas as below (in numeric permission 600 if your umask value is 0022)

share the screenshot for this.

-rwx------     sas      sasgrp          httpdctl

 

3.  netstate -a | grep -i 443

by running this command you can check whether port is busy or not. (share the screenshot for this).

 

4. check for hosts file entries with your hostname

 

127.0.0.1      localhost.localdomain.com    localhost.localdomain.com

192.168.0.0  example.com                           example.com

(Example.com is your hostname)

sewa_bal_gmail_com
Quartz | Level 8

1. which user you have used to installed the SAS software?

SAS

2. httpdctl file permission should be sas as below (in numeric permission 600 if your umask value is 0022)

share the screenshot for this.

-rwx------     sas      sasgrp          httpdctl

sas user has -rwx------ permission

 

3.  netstate -a | grep -i 443

by running this command you can check whether port is busy or not. (share the screenshot for this).

 

-bash: netstate: command not found

 

4. check for hosts file entries with your hostname

 

127.0.0.1      localhost.localdomain.com    localhost.localdomain.com

192.168.0.0  example.com                           example.com

(Example.com is your hostname)

 

Where we find above details.

SurajChand
Obsidian | Level 7
netstat -a | grep -i 443

cat /etc/hosts
sewa_bal_gmail_com
Quartz | Level 8

I will not share these confidentials details. Please let me know the steps so that I can fix this issue.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 16 replies
  • 11074 views
  • 4 likes
  • 5 in conversation