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

Generate Secrets script throwing errors on Debian #1

Closed
joshdentremont opened this issue Apr 25, 2023 · 2 comments
Closed

Generate Secrets script throwing errors on Debian #1

joshdentremont opened this issue Apr 25, 2023 · 2 comments

Comments

@joshdentremont
Copy link
Contributor

On Debian 11 (bullseye), running generate-secrets.sh creates the secrets OK, then asks for a sudo password and outputs this:

chcon: can't apply partial context to unlabeled file 'DRUPAL_DEFAULT_DB_PASSWORD'
chcon: can't apply partial context to unlabeled file 'JWT_ADMIN_TOKEN'
chcon: can't apply partial context to unlabeled file 'MATOMO_DB_PASSWORD'
chcon: can't apply partial context to unlabeled file '.gitignore'
chcon: can't apply partial context to unlabeled file 'JWT_PRIVATE_KEY'
chcon: can't apply partial context to unlabeled file 'DB_ROOT_PASSWORD'
chcon: can't apply partial context to unlabeled file 'DRUPAL_DEFAULT_SALT'
chcon: can't apply partial context to unlabeled file 'ACTIVEMQ_WEB_ADMIN_PASSWORD'
chcon: can't apply partial context to unlabeled file 'JWT_PUBLIC_KEY'
chcon: can't apply partial context to unlabeled file 'DRUPAL_DEFAULT_ACCOUNT_PASSWORD'
chcon: can't apply partial context to unlabeled file 'ACTIVEMQ_PASSWORD'
chcon: can't apply partial context to unlabeled file 'MATOMO_USER_PASS'
chcon: can't apply partial context to unlabeled file 'FCREPO_DB_PASSWORD'
chcon: can't apply partial context to unlabeled file '/path/to/secrets'
@joshdentremont
Copy link
Contributor Author

I've done a bit more digging and it looks like I don't have SELinux enabled, but I do have chcon. I suspect this if statement (https://github.com/Islandora-Devops/isle-site-template/blob/main/generate-secrets.sh#L65) is causing it to run chcon when it shouldn't be.

@nigelgbanks
Copy link
Contributor

Fixed by commit: 720e250

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

2 participants