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
@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.
You need to start any sas service as your sas installer user account (generally named as sas or sasinst).
Both the services are up :-
SAS Environment Manager is UP
SAS Environment Manager Agent is UP
Please advise.
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.
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
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
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
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
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
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.
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
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
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)
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.
I will not share these confidentials details. Please let me know the steps so that I can fix this issue.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.