GitLab CI: iOS project issue (permission denied)ERROR: While executing gem … (Gem::FilePermissionError)GitLab's Shell executor, no privilegeshow to set up GitLab CI for iOS projectGitLab CI with Docker, Fastlane and Cocoapods not workinggitlab runner The requested URL returned error: 403How do I use docker to run a gitlab-runner for a gitlab-hosted project?Gitlab CI 9.5 service is not runningGitlab CI - Build Docker Image With Shared Runner (cannot connect to Docker Daemon)Gitlab CI pull access denied for builder, repository does not exist or may require 'docker login'Permission denied when executing docker commands from Gitlab CI/CD pipelineGitlab-runner without DockerGitLab CI error: gem install bundler on MacOSGitLab CI with Docker, Fastlane and Cocoapods not working
Do household ovens ventilate heat to the outdoors?
Tips for remembering the order of parameters for ln?
Availability Group Notification when new DB is added
What is the rail connection between Paris Charles de Gaulle Airport and Gare de Lyon like?
Flying pigs arrive
As a discovery writer, how to complete unfinished novel (which is highly diverted from original plot ) after a time-gap
Is there any reason nowadays to use a neon indicator lamp instead of a LED?
Dear Fellow PSE Users,
Debussy as term for bathroom?
What to do as a player when ranger animal companion dies
Are lay articles good enough to be the main source of information for PhD research?
What are sources for Magic Items that are not adventure-specific?
What do solvers like Gurobi and CPLEX do when they run into hard instances of MIP
Why do we need to use transistors when building an OR gate?
What is the maximum viable speed for a projectile within earth's atmosphere?
Is there a comprehensive book, contains (algebra, trig, calculus, differential equations, statistics, ...)?
Simulate a 1D Game-of-Life-ish Model
How should I avoid someone patenting technology in my paper/poster?
Is Zack Morris's 'time stop' ability in "Saved By the Bell" a supernatural ability?
Get the encrypted payload from an unencrypted wrapper PDF document
Do you add your strength modifier once or twice to an unarmed strike?
Delete empty subfolders, keep parent folder
Algorithm for competing cells of 0s and 1s
What's the purpose of autocorrelation?
GitLab CI: iOS project issue (permission denied)
ERROR: While executing gem … (Gem::FilePermissionError)GitLab's Shell executor, no privilegeshow to set up GitLab CI for iOS projectGitLab CI with Docker, Fastlane and Cocoapods not workinggitlab runner The requested URL returned error: 403How do I use docker to run a gitlab-runner for a gitlab-hosted project?Gitlab CI 9.5 service is not runningGitlab CI - Build Docker Image With Shared Runner (cannot connect to Docker Daemon)Gitlab CI pull access denied for builder, repository does not exist or may require 'docker login'Permission denied when executing docker commands from Gitlab CI/CD pipelineGitlab-runner without DockerGitLab CI error: gem install bundler on MacOSGitLab CI with Docker, Fastlane and Cocoapods not working
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Trying GitLab CI for my iOS project, I follow this, this and this tutorial.
Two questions:
- What is wrong with my gitlab-runner (with "shell" registration) since GitLab CI throws the following error:
Running with gitlab-runner 11.9.0 (692ae235)
on MyApp runner with shell DsaBC-oQ
Using Shell executor...
Running on MyComputer.network.provider...
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
ERROR: Job failed: exit status 1
- Some people say to use "sudo" for the gitlab-runner registration. But then I would need "docker". But it seems that "docker" can't be used for an iOS project in GitLab (but only "shell" registration). Is this true ? (if no, how does the gitlab-runner registration cmd look like exactly for a docker registration ??). Does "docker" work for an iOS-project at all using GitLab ??
Here is my .gitlab-ci.yml
file:
stages:
- unit_tests
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- gem install bundler
- bundle install
unit_tests:
dependencies: []
stage: unit_tests
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- bundle exec fastlane tests
tags:
- ios
I tried to register the gitlab-runner as follows:
gitlab-runner register
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCDEF"
--description "MyApp runner with shell"
--tag-list ios
--executor "shell"
The "shell" trial make Gitlab-CI show the above mentioned error (i.e. permission denied
)
And I also tried to register the gitlab-runner with docker:
gitlab-runner register
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCEDF"
--description "MyApp runner with docker and ruby-2.6”
--tag-list ios
--executor "docker"
--docker-image ruby:2.6
But the "docker" trial made the GitLab-CI show another error (i.e. [!] You cannot run CocoaPods as root
) as explained in more detail here...
Any idea on how to make this GitLab-CI for an iOS-project finally work properly at all ?? Thanks for any hint. (after 3 days of trials I am more than desperate for this to work)...
docker continuous-integration realm gitlab cocoapods
add a comment
|
Trying GitLab CI for my iOS project, I follow this, this and this tutorial.
Two questions:
- What is wrong with my gitlab-runner (with "shell" registration) since GitLab CI throws the following error:
Running with gitlab-runner 11.9.0 (692ae235)
on MyApp runner with shell DsaBC-oQ
Using Shell executor...
Running on MyComputer.network.provider...
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
ERROR: Job failed: exit status 1
- Some people say to use "sudo" for the gitlab-runner registration. But then I would need "docker". But it seems that "docker" can't be used for an iOS project in GitLab (but only "shell" registration). Is this true ? (if no, how does the gitlab-runner registration cmd look like exactly for a docker registration ??). Does "docker" work for an iOS-project at all using GitLab ??
Here is my .gitlab-ci.yml
file:
stages:
- unit_tests
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- gem install bundler
- bundle install
unit_tests:
dependencies: []
stage: unit_tests
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- bundle exec fastlane tests
tags:
- ios
I tried to register the gitlab-runner as follows:
gitlab-runner register
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCDEF"
--description "MyApp runner with shell"
--tag-list ios
--executor "shell"
The "shell" trial make Gitlab-CI show the above mentioned error (i.e. permission denied
)
And I also tried to register the gitlab-runner with docker:
gitlab-runner register
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCEDF"
--description "MyApp runner with docker and ruby-2.6”
--tag-list ios
--executor "docker"
--docker-image ruby:2.6
But the "docker" trial made the GitLab-CI show another error (i.e. [!] You cannot run CocoaPods as root
) as explained in more detail here...
Any idea on how to make this GitLab-CI for an iOS-project finally work properly at all ?? Thanks for any hint. (after 3 days of trials I am more than desperate for this to work)...
docker continuous-integration realm gitlab cocoapods
add a comment
|
Trying GitLab CI for my iOS project, I follow this, this and this tutorial.
Two questions:
- What is wrong with my gitlab-runner (with "shell" registration) since GitLab CI throws the following error:
Running with gitlab-runner 11.9.0 (692ae235)
on MyApp runner with shell DsaBC-oQ
Using Shell executor...
Running on MyComputer.network.provider...
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
ERROR: Job failed: exit status 1
- Some people say to use "sudo" for the gitlab-runner registration. But then I would need "docker". But it seems that "docker" can't be used for an iOS project in GitLab (but only "shell" registration). Is this true ? (if no, how does the gitlab-runner registration cmd look like exactly for a docker registration ??). Does "docker" work for an iOS-project at all using GitLab ??
Here is my .gitlab-ci.yml
file:
stages:
- unit_tests
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- gem install bundler
- bundle install
unit_tests:
dependencies: []
stage: unit_tests
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- bundle exec fastlane tests
tags:
- ios
I tried to register the gitlab-runner as follows:
gitlab-runner register
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCDEF"
--description "MyApp runner with shell"
--tag-list ios
--executor "shell"
The "shell" trial make Gitlab-CI show the above mentioned error (i.e. permission denied
)
And I also tried to register the gitlab-runner with docker:
gitlab-runner register
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCEDF"
--description "MyApp runner with docker and ruby-2.6”
--tag-list ios
--executor "docker"
--docker-image ruby:2.6
But the "docker" trial made the GitLab-CI show another error (i.e. [!] You cannot run CocoaPods as root
) as explained in more detail here...
Any idea on how to make this GitLab-CI for an iOS-project finally work properly at all ?? Thanks for any hint. (after 3 days of trials I am more than desperate for this to work)...
docker continuous-integration realm gitlab cocoapods
Trying GitLab CI for my iOS project, I follow this, this and this tutorial.
Two questions:
- What is wrong with my gitlab-runner (with "shell" registration) since GitLab CI throws the following error:
Running with gitlab-runner 11.9.0 (692ae235)
on MyApp runner with shell DsaBC-oQ
Using Shell executor...
Running on MyComputer.network.provider...
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied
ERROR: Job failed: exit status 1
- Some people say to use "sudo" for the gitlab-runner registration. But then I would need "docker". But it seems that "docker" can't be used for an iOS project in GitLab (but only "shell" registration). Is this true ? (if no, how does the gitlab-runner registration cmd look like exactly for a docker registration ??). Does "docker" work for an iOS-project at all using GitLab ??
Here is my .gitlab-ci.yml
file:
stages:
- unit_tests
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- gem install bundler
- bundle install
unit_tests:
dependencies: []
stage: unit_tests
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
script:
- bundle exec fastlane tests
tags:
- ios
I tried to register the gitlab-runner as follows:
gitlab-runner register
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCDEF"
--description "MyApp runner with shell"
--tag-list ios
--executor "shell"
The "shell" trial make Gitlab-CI show the above mentioned error (i.e. permission denied
)
And I also tried to register the gitlab-runner with docker:
gitlab-runner register
--non-interactive
--url "https://gitlab.com/"
--registration-token "TOKENABCEDF"
--description "MyApp runner with docker and ruby-2.6”
--tag-list ios
--executor "docker"
--docker-image ruby:2.6
But the "docker" trial made the GitLab-CI show another error (i.e. [!] You cannot run CocoaPods as root
) as explained in more detail here...
Any idea on how to make this GitLab-CI for an iOS-project finally work properly at all ?? Thanks for any hint. (after 3 days of trials I am more than desperate for this to work)...
docker continuous-integration realm gitlab cocoapods
docker continuous-integration realm gitlab cocoapods
edited Mar 29 at 10:13
iKK
asked Mar 28 at 14:10
iKKiKK
1,6412 gold badges25 silver badges53 bronze badges
1,6412 gold badges25 silver badges53 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.
I was able to update my Ruby version with the help of this post (i.e. using chruby
). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.
As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55399687%2fgitlab-ci-ios-project-issue-permission-denied%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.
I was able to update my Ruby version with the help of this post (i.e. using chruby
). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.
As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.
add a comment
|
It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.
I was able to update my Ruby version with the help of this post (i.e. using chruby
). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.
As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.
add a comment
|
It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.
I was able to update my Ruby version with the help of this post (i.e. using chruby
). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.
As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.
It turned out that the "permission denied" error on my GitLab Pipeline had nothing to do with GitLab itself - but was due to a Ruby version mismatch on my Mac that I connected with the gitlab-runner.
I was able to update my Ruby version with the help of this post (i.e. using chruby
). There are other possibilities out there on how to update Ruby on your Mac. It is important to understand that GitLab requires your Mac to have a stable Ruby environment.
As a side-note: Here is the best tutorial on how to set up GitLab CI for an iOS-project that I have found.
answered Mar 29 at 19:19
iKKiKK
1,6412 gold badges25 silver badges53 bronze badges
1,6412 gold badges25 silver badges53 bronze badges
add a comment
|
add a comment
|
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55399687%2fgitlab-ci-ios-project-issue-permission-denied%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown