Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omi server cannot start: failed to change directory #729

Open
kanelo75 opened this issue Sep 28, 2022 · 16 comments
Open

omi server cannot start: failed to change directory #729

kanelo75 opened this issue Sep 28, 2022 · 16 comments

Comments

@kanelo75
Copy link

I have the following error in the omiserver.log when I start the omi server, and the omi server cannot be started.

failed to change directory to:
EventId=10005 Priority=FATAL abnormal termination of engine process detected...shutting down server

I check the code. It should have the directory name after "failed to change directory to:"

@JumpingYang001
Copy link
Contributor

JumpingYang001 commented Sep 29, 2022

@kanelo75 can you share the whole omiserver.log?
also check these commands: cat /etc/*-release;rpm -qa|grep omi;rpm -qa|grep scx;dpkg -l|grep omi;dpkg -l|grep scx;ps -ef|grep omi;ls -al /opt;ls -al /var/opt/omi/run

@cinimodmik
Copy link

omilog.txt
Hi @JumpingYang001 ,
I have attached the logs for your advise

@JumpingYang001
Copy link
Contributor

JumpingYang001 commented Sep 29, 2022

@cinimodmik it seems the program cannot load rundir, can you run /opt/omi/bin/omiserver -p?
The error message hit here:

err(ZT("failed to change directory to: %s"), scs(OMI_GetPath(ID_RUNDIR)));

@cinimodmik
Copy link

hi @JumpingYang001, i have only running it via scxadmin -start and systemctl start omid. Do i run /opt/omi/bin/omiserver -p directly?

@JumpingYang001
Copy link
Contributor

@cinimodmik yes, run /opt/omi/bin/omiserver -p directly with root account.

@cinimodmik
Copy link

@JumpingYang001, will try and get back

@cinimodmik
Copy link

@JumpingYang001, i have attached the results .
omilog2.txt

@JumpingYang001
Copy link
Contributor

@cinimodmik that means root user can get OMI_GetPath, and omi user cannot get OMI_GetPath, it looks strange, I have no idea now.
root user get OMI_GetPath values :

PrintPaths();

void PrintPaths()
when /opt/omi/bin/omiserver -p

BTW, is your box enabled selinux?

@kanelo75
Copy link
Author

yes, the box is enabled selinux if I am not mistaken.
Is there anyway we can configure those -p information in some configuration file and let's omi user to retrieve the information.

@JumpingYang001
Copy link
Contributor

it has built by default, and some values from /etc/opt/omi/conf/omiserver.conf.

@cinimodmik
Copy link

Hi @JumpingYang001,

I have also tried previously to temporally set selinux to permissive but it is still the same failure results.

@cinimodmik
Copy link

hi @JumpingYang001, any further advise for this issue

@JumpingYang001
Copy link
Contributor

JumpingYang001 commented Oct 8, 2022

@cinimodmik after set selinux t permissive do you reboot the machine?
we didn't repro the issue, so I suggest you to create a ticket on SCOM support.

@cinimodmik
Copy link

Hi @JumpingYang001 , I have not reboot the machine as selinux will be resumed to enforce if i do that.
Noted thanks for your help .

@kanelo75
Copy link
Author

kanelo75 commented Oct 12, 2022

@JumpingYang001 is the SCOM support you mention under Microsoft? @cinimodmik have raised this case to Microsoft before, and there is one Microsoft engineer has come to look at it before we raised the issue here, and he seemed to have no idea too. To move it forward, if we raise to Microsoft again, anything we could do in order to speed up to find the root cause.

@JumpingYang001
Copy link
Contributor

@kanelo75 yes, SCOM support is under Microsoft.
If that's the case, you should ping the engineer to contact OMI team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants