init.d service problem at startup

503 views
Skip to first unread message

Rheine Adithia

unread,
Aug 21, 2017, 4:24:06 AM8/21/17
to iDempiere
Hello, its me again

Today i'm going to ask about the initializing services for idempiere
i already copied the idempiere_Debian.sh to the etc/init.d/ folder
and after that i already use the command :
update-rc.d idempiere_Debian.sh defaults

but after i reboot, i type "service idempiere_Debian status" to check the status of the service, and it gave me this error :









Like you can see the service failed to initialize because it can't open "/home/idempiere/idempiere-server/utils" folder

But the weirder part is, if i try to call the "service idempiere start" it starts authentication process, and after i type the password, the service started without problem.
can anyone tell me what's wrong my setting? i attach the "idempiere.sh" file and the "error log" from the services to this thread.
Thanks for the attention

Regards,
Rheine Adithia
idempiere.sh
idempiere_20170821144551.log

Magno Loran

unread,
Aug 27, 2017, 5:07:41 PM8/27/17
to iDempiere
try this

ln -s <idempiere_home>/utils/unix/idempiere_Debian.sh /etc/init.d/idempiere_Debian.sh

chmod 775 /etc/init.d/idempiere_Debian.sh
chmod +x /etc/init.d/idempiere_Debian.sh
update-rc.d idempiere_Debian.sh defaults

systemctl daemon-reload

//Then verify that the user exists in:
vi /etc/init.d/idempiere_Debian.sh

IDEMPIEREUSER=

Wilson Gayo

unread,
Sep 22, 2017, 5:05:58 AM9/22/17
to iDempiere
Hi Rheine,

Have you fix this? also has the same problem initializing services idempiere. Already tried Magno Loran advice but no success at all. but my problem is different from Rheine. I can manual run the idempiere-server.sh but not service idempiere_Debian start, seems like a problem opening a directory for a log file, and service has not started. 

Thanks,
Wilson


Rheine Adithia

unread,
Sep 22, 2017, 5:57:13 AM9/22/17
to iDempiere
Hi Wilson,

No i haven't solve this issue too. Your case is the same with me Wilson,
 i can initialize the idempiere from calling its sh too.. 
If you see the status of idempiere Debian, there is a couple problem i encountered using the service
the problem is :
  • failed to open some log because it doesn't have permission
  • it can't create or read myEnvirontment
  • it can't open folder Utils. 

I'm still tinkering with this problem. But because the problem can be fixed with running the jobs on background, i'm not too focused with this problem.. 

giving chmod or changing chown of the folder is not helping too..
I guess it is not meant to be for idempiere to start itself :\

Best Regard 
Rheine Adithia 

Orlando Curieles

unread,
Sep 22, 2017, 7:44:17 AM9/22/17
to iDempiere
Hi guys, try with idempiere_Redhat.sh. I'm using this also on Ubuntu Server, I created a idempiere user and make owner of /opt/idempiere-server/

sudo chown -R idempiere:idempiere /opt/idempiere-server/

And the same for the /etc/init.d/idempiere_Redhat.sh

Please let's me know if this solve your issue

Rheine Adithia

unread,
Sep 25, 2017, 10:04:49 PM9/25/17
to iDempiere
hi Orlando, thanks for the reply!

Do i need to change certain properties from the idempiere_Redhat.sh?
Cause i did change the the IDEMPIERE_HOME and IDEMPIEREUSER.. 
and if that change was neccessary, the IDEMPIEREUSER is the owner of the idempiere-server.sh right?
from what you describe on your answer, then the IDEMPIEREUSER= idempiere?

Best Regard,
Rheine Adithia

Wilson Gayo

unread,
Oct 9, 2017, 11:01:09 PM10/9/17
to iDempiere
Hi,

Any updates on this?., i have tried idempiere_Redhat.sh but still no success., any other ideas?

Chuck Boecking

unread,
Oct 10, 2017, 12:24:21 PM10/10/17
to iDempiere
Hi Everyone,

If you are just looking for how to install iDempiere as a service, it is modeled for Ubuntu in the iDempiere installation script. I hope this helps! This script also demonstrates how to use telnet to osgi and shut the server down by making the "sudo service idempiere stop" command.

Rheine Adithia

unread,
Oct 10, 2017, 9:07:29 PM10/10/17
to iDempiere
Hi wilson, 

use Orlando's answer, it worked like a charm on my server,
you just need to give the owner of the init.d file to your primary user and then call the service using the new owner.

for further info just look to the reply that i've marked as the answer 

Best Regards,
Rheine Adithia

Wilson Gayo

unread,
Oct 16, 2017, 3:59:55 AM10/16/17
to iDempiere
Hello Rheine,

I have tried to follow the instructions of Orlando's answer

Add user idempiere

make owner of /opt/idempiere-server/

make owner of /etc/init.d/idempiere_RedHat.sh

but still have not solve the issue., can i know what is your setup or how did you do it?

thanks,

Wilson Gayo

unread,
Oct 16, 2017, 4:05:14 AM10/16/17
to iDempiere
Hi Chuck,

Sorry im still noob on this script stuff. Previously was not able to install using your script (reason was not able to setup using internet up to 5mbps), so i try to install it on step by step good thing i was able to manage to run it manually but now having issue on this install iDempiere as a service. Im trying to follow Orlando's answer but still no success. Right now im just running it manually to test the system. im trying to understand the script now on the link. if you can enlighten me on this.

Thanks,

Wilson Gayo

unread,
Oct 16, 2017, 4:10:42 AM10/16/17
to iDempiere

Dirk Niemeyer

unread,
Oct 16, 2017, 11:13:20 AM10/16/17
to idem...@googlegroups.com
Hi Wilson,

the picture implies that you are on Ubuntu. So you better give
idempiere_Debian.sh a try because Ubuntu is a variant of Debian.

The Redhat script is expecting stuff to load which is named differently
and obtained from a different path than on Debain. That is causing the
error message you are seeing.

Regards,

Dirk Niemeyer

Am 16.10.2017 um 10:10 schrieb Wilson Gayo:
>
>
> <https://lh3.googleusercontent.com/-GQo5mSNEwEE/WeRpfExM11I/AAAAAAAAB7k/e5YdRwpVAScjZpSO9HCwE53oOgQPAlNDwCLcBGAs/s1600/idempiere_10162017.png>

Chuck Boecking

unread,
Oct 16, 2017, 4:48:24 PM10/16/17
to idem...@googlegroups.com
Hi Wilson,

My script has it's own file that it installs as a service. Note that this file has a dependency on chuboe.properties at line 21. You would need to update lines 23 thought 25 if you are to use this file.

At line 984 of the installation script, the script sets privileges for the idempiere user. 

At line 1054 of the installation script, the script copies the service file to /etc/init.d/ and registers the service to start automatically.

The hardest part of understanding the installation script is dereferencing the variable names (example: $INITDNAME = a file named idempiere).



Regards,


Chuck Boecking
512.850.6068 (office and cell)
ch...@chuboe.com
ChuckBoecking.com
chuck.boecking (skype)

--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/96MXVYDP63c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/892ecd40-dd5b-487f-9859-3bbfafa78212%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages