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

[NEOS-1114] Unable to run backend/gen.sh script on Linux #2020

Closed
nickzelei opened this issue May 24, 2024 · 0 comments
Closed

[NEOS-1114] Unable to run backend/gen.sh script on Linux #2020

nickzelei opened this issue May 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@nickzelei
Copy link
Member

nickzelei commented May 24, 2024

The gen.sh script fails due to Docker runs not setting the correct uid/gid.

This causes files to drop in as root which then the bare metal user does not have permissions to move.

example of error:

tai@hulk:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/code/foss/neosync/backend[main ?]$ make
./hack/gen.sh
mv: cannot move 'gen/docs/proto_docs.json' to '../docs/protos/data/proto_docs.json': Permission denied
mv: cannot move 'gen/es/protos/mgmt' to '../frontend/packages/sdk/src/client/mgmt': Permission denied
rm: cannot remove 'gen/docs/proto_docs.json': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/api_key_connect.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/metrics_pb.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/api_key_pb.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/job_connect.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/user_account_pb.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/connection_connect.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/connection_data_pb.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/job_pb.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/metrics_connect.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/connection_pb.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/auth_connect.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/user_account_connect.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/connection_data_connect.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/auth_pb.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/transformer_connect.ts': Permission denied
rm: cannot remove 'gen/es/protos/mgmt/v1alpha1/transformer_pb.ts': Permission denied
go vet ./...
hack/build.sh
fatal: No names found, cannot describe anything.

This is most likely solvable via setting the uid/gid in the container so that it has the correct permissions when it comes out of the other side. Just need to make sure it's compatible with all systems.

The reporting user's OS is archlinux, with uid of 1000 (default).

From SyncLinear.com | NEOS-1114

@nickzelei nickzelei added the bug Something isn't working label May 24, 2024
@nickzelei nickzelei self-assigned this Jun 7, 2024
@nickzelei nickzelei added this to the v.21 milestone Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@nickzelei and others