Start/Stop SAP B1H Service Layer
Hi All,
I’d like to share some stuff that took me a couple of hours to solve even though it was as simple as a 5-minute task.
The situation was that I was in the middle of a development that included interaction with the Service Layer and for external reasons I needed to restart the SAP HANA server. After that, my developments didn’t work. I found out that the Service Layer was not started since nothing was coming back from https://<servername>:50000/b1s/v1. I spent some time to realise the path to the service through which the Service Layer can be started or stopped and that’s what I want to share with you today.
To start the Service Layer simply run the following line in the SUSE console:
/etc/init.d/b1s start
To stop it just change start for stop.
That’s all. So, remember: If the Service Layer is installed but does not work, chances are that it’s not started.
Hope this helps.
Alejandro Fonseca
Hi
I have a problem with those commands. Get the following error:
And by placing the URL https://<servername>:50000/b1s/v1 do not work.
Get the error server unavailable.
Thanks
I am also facing the same issue. On starting b1s I am getting below error message:-
hanab1:/etc/init.d # ./b1s start
Starting Service Layer...
Starting service with port 50001.
Starting service with port 50002.
Starting service with port 50003.
Starting service with port 50004.
Starting service with port 50000.
(20014)Internal error (specific information not available): AH00058: Error retrieving pid file logs/httpd_50001.pid
AH00059: Remove it before continuing if it is corrupted.
(20014)Internal error (specific information not available): AH00058: Error retrieving pid file logs/httpd_50002.pid
AH00059: Remove it before continuing if it is corrupted.
(20014)Internal error (specific information not available): AH00058: Error retrieving pid file logs/httpd_50003.pid
AH00059: Remove it before continuing if it is corrupted.
httpd (pid 13152) already running
(20014)Internal error (specific information not available): AH00058: Error retrieving pid file logs/httpd_50000.pid
AH00059: Remove it before continuing if it is corrupted.
Started.
Please help me in resolving the isssue.
Thanks and Regards,
Aditya
Try to remove the logs PID service, normaly in /usr/sap/SAPBusinessOne/logs/ServiceLayer/
rm http*
Regards
Thank you Alejandro Fonseca,
It solved my problem...
Complementing your solution, to avoid this service to stop every time the Hana machine restart, you can turn on the automatic start of this service executing the following command on linux:
chkconfig b1s on
Best Regards,
Everton Weschenfelder
Excellent David Lopes, your contribution was very useful, delete the logs with rm http * from the / usr / sap / SAPBusinessOne / logs / ServiceLayer / folder
It worked.