Skip to content

FIX: Tianji reporter service failing for SELinux #237

@SKJoy

Description

@SKJoy

(forgive me if this is the wrong place)

If Tianji reporter service is not starting after copying the installation command from the Tianji application, check if it is an SELinux restriction on RHEL;

Command: journalctl | grep tianji-reporter

That should bring up something like the following;

tianji-reporter.service: Failed at step EXEC spawning /usr/local/tianji/reporter/tianji-reporter: Permission denied

Now we know which file needs to be allowed through SELinux, and here are the commands;

semanage fcontext -a -t bin_t "/usr/local/tianji/reporter(/.*)?"
restorecon -r -v /usr/local/tianji/reporter

No need to reinstall the Tianji reporter service anymore, it should automatically retry and the server should be visible on your Tianji panel by now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions