Please tell me how to auto-start

Not applicable

We use OPDK 4.17.01.
Autostart configuration will fail, so please help me.


I did the following.

・I have disabled SELINUX on all servers.

・All the components of all servers were started.

・Command was executed on all servers.
 /opt/apigee/apigee-service/bin/apigee-all enable_autostart

・I confirmed that init.d for automatic startup was created.

・I restarted the server on which management-server and edge-ui and openldap are running.

・I checked the status after booting the OS but it was not running.



I checked the log and it seemed that the switch user was involved.

[ec2-user@ip-address ~]$ journalctl -b --no-pager | grep -i apigee
**hostname** systemd[1]: Starting LSB: Start up the apigee-openldap service...
**hostname** su[779]: (to apigee) root on none
**hostname** apigee-openldap[746]: This account is currently not available.
**hostname** su[779]: pam_unix(su:session): session opened for user apigee by (uid=0)
**hostname** systemd[1]: Started Session c1 of user apigee.
**hostname** su[779]: pam_unix(su:session): session closed for user apigee
**hostname** systemd[1]: Starting Session c1 of user apigee.
**hostname** systemd[1]: apigee-openldap.service: control process exited, code=exited status=1
**hostname** systemd[1]: Failed to start LSB: Start up the apigee-openldap service.
**hostname** systemd[1]: Unit apigee-openldap.service entered failed state.
**hostname** systemd[1]: apigee-openldap.service failed.
**hostname** su[915]: (to apigee) root on none
**hostname** systemd[1]: Started Session c2 of user apigee.
**hostname** systemd[1]: Starting Session c2 of user apigee.
**hostname** su[915]: pam_unix(su:session): session opened for user apigee by (uid=0)
**hostname** su[915]: pam_unix(su:session): session closed for user apigee
**hostname** su[926]: (to apigee) root on none
**hostname** systemd[1]: Started Session c3 of user apigee.
**hostname** systemd[1]: Starting Session c3 of user apigee.
**hostname** su[926]: pam_unix(su:session): session opened for user apigee by (uid=0)
**hostname** su[926]: pam_unix(su:session): session closed for user apigee
**hostname** sudo[2282]: ec2-user : TTY=pts/0 ; PWD=/home/ec2-user ; USER=apigee ; COMMAND=/opt/apigee/apigee-service-4.17.01-0.0.547/bin/sudo-apigee-service apigee-openldap status
Solved Solved
1 5 570
1 ACCEPTED SOLUTION

Not applicable

The following was output to "messages" of OS.

su: (to apigee) root on none
edge-message-processor: This account is currently not available.

I can not switch to apigee users because of nologin users.So I fixed the following.

vi /etc/passwd 

apigee:x:997:994:Apigee platform user:/opt/apigee:/sbin/nologin
→ apigee:x:997:994:Apigee platform user:/opt/apigee:/bin/bash

I am concerned about the influence on others due to the change, but auto-start was realized.

View solution in original post

5 REPLIES 5

@Tomoya Kimura did you install as root ?

Hi @Christin Brown,

I installed the component as root.
This command was executed by a general user as in the manual.
Are there any restrictions?

@Tomoya Kimura so what you are seeing is that the apigee user, which is the run user for all of our Edge installation is trying to execute the auto-start but you OS is "saying" that user doesn't have the right permissions. Please check the permission for the ldap and mgmt server installs and what user own the apigee processes

Hi @Christin Brown ,

Installation of ldap and mgmt was root.
The owning user of the process was Apigee.
Since I solved it by looking at the log, I comment it in a separate frame.

Not applicable

The following was output to "messages" of OS.

su: (to apigee) root on none
edge-message-processor: This account is currently not available.

I can not switch to apigee users because of nologin users.So I fixed the following.

vi /etc/passwd 

apigee:x:997:994:Apigee platform user:/opt/apigee:/sbin/nologin
→ apigee:x:997:994:Apigee platform user:/opt/apigee:/bin/bash

I am concerned about the influence on others due to the change, but auto-start was realized.