Based on the knowledge sources, it appears you're experiencing a permission issue with Sentry's entrypoint scripts during installation or operation on RHEL 8.6.
This is a common issue with self-hosted Sentry installations, and several similar cases have been documented. The problem often extends beyond just making the scripts executable with chmod +x.
From the information provided, there are several potential solutions you could try:
-
Check ownership of files: In some cases, files in /etc/sentry have incorrect ownership. For example, one user found that files had UID/GID 1006 which didn't exist in /etc/passwd while the Sentry user had UID/GID 999 Permission denied for sentry.conf.py.
-
Adjust permissions more broadly: Several users have resolved similar issues by applying broader permissions:
chmod 777 /opt/sentry
chmod 777 /opt/sentry/sentry/postgres/init_hba.sh
chmod 777 /opt/sentry/sentry/postgres/postgres-entrypoint.sh
chmod 777 /opt/sentry/sentry/sentry/entrypoint.sh
-
Check all script files: Make sure all shell scripts are executable:
find $SENTRY_FOLDER -type f -name "*.sh" | xargs chmod a+x
-
Make directories traversable: Ensure all directories are accessible:
find $SENTRY_FOLDER -type d | xargs chmod a+x
-
Check config file permissions: Some users found that config.yml with chmod 600 permissions caused issues and changing to chmod 644 fixed it install/set-up-and-migrate-database.sh:source:13 error.
Since you've already disabled SELinux temporarily with setenforce 0, that eliminates one potential cause. However, the permission issues might be more complex than just making the scripts executable.