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

Unable to run sqitch from inside a Kubernetes Job #844

Open
stefanoric opened this issue Dec 5, 2024 · 2 comments
Open

Unable to run sqitch from inside a Kubernetes Job #844

stefanoric opened this issue Dec 5, 2024 · 2 comments
Labels
waiting Waiting on feedback

Comments

@stefanoric
Copy link

Hello,

I have a requirement to run sqitch from a container hosted in k8s for security reasons, but I seem to be getting an error with permissions. My sqitch deploy stops with the following error:

mkdir /.sqitch: Permission denied at /usr/bin/../lib/perl5/App/Sqitch/Command/config.pm line 374.
Starting deployment
Adding registry tables to db:pg://***:***@********5433/testdb
Cannot find your name; run sqitch config --user user.name "YOUR NAME"

I am able to run the same docker container from my MacOS machine, so I suspect there are some issues with the user that sqitch is running under in Kubernetes. Any ideas how to approach this?

@berdon
Copy link

berdon commented Dec 12, 2024

mkdir /.sqitch: Permission denied at /usr/bin/../lib/perl5/App/Sqitch/Command/config.pm line 374.

It's complaining it can't create a directory in root /. Additionally, it's also saying it can't find your user configuration in ~/.sqitch/sqitch.conf. These all are environment issues you'll need to address and aren't related to sqitch.

@theory
Copy link
Collaborator

theory commented Dec 29, 2024

Did you get it figured out, @stefanoric?

@theory theory added the waiting Waiting on feedback label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Waiting on feedback
Projects
None yet
Development

No branches or pull requests

3 participants