Resolve remote origin already exists error at Git lab RunnerDealing with data in Docker Containers with Gitlab-CiGitlabCI run docker review appGitlab CI runner unabled to shared build sources on docker executorThe container name is already in use by container — gitlab ciGitlab CI 9.5 service is not runninghow to run docker-compose inside docker in docker witch runs inside gitlab-runner conatiner?Gitlab CI Pages not foundHow to synchronize two docker volumes?Need advice with gitLab-runner for continuous deploymentGitlab-ci.yml Docker executer cannot run shell commands
Examples of hyperbolic groups
Can I enter a rental property without giving notice if I'm afraid a tenant may be hurt?
Only charge capacitor when button pushed then turn on LED momentarily with capacitor when button released
How easy is it to get a gun illegally in the United States?
Why do dragons like shiny stuff?
Why do scoped enums allow use of | operator when initializing using previously assigned values?
How to check a file was encrypted (really & correctly)
Getting Lost in the Caves of Chaos
If I build a custom theme, will it update?
London underground zone 1-2 train ticket
In MTG, was there ever a five-color deck that worked well?
Premier League simulation
Could an areostationary satellite help locate asteroids?
How do I get the =LEFT function in excel, to also take the number zero as the first number?
How does LIDAR avoid getting confused in an environment being scanned by hundreds of other LIDAR?
The meaning of "scale" in "because diversions scale so easily wealth becomes concentrated"
What is the German idiom or expression for when someone is being hypocritical against their own teachings?
Is the first page of a novel really that important?
How to approach protecting my code as a research assistant? Should I be worried in the first place?
print field before and after matching pattern of single line
Why am I not getting stuck in the loop
What does the ISO setting for mechanical 35mm film cameras actually do?
Does the length of a password for Wi-Fi affect speed?
Write The Shortest Program To Check If A Binary Tree Is Balanced
Resolve remote origin already exists error at Git lab Runner
Dealing with data in Docker Containers with Gitlab-CiGitlabCI run docker review appGitlab CI runner unabled to shared build sources on docker executorThe container name is already in use by container — gitlab ciGitlab CI 9.5 service is not runninghow to run docker-compose inside docker in docker witch runs inside gitlab-runner conatiner?Gitlab CI Pages not foundHow to synchronize two docker volumes?Need advice with gitLab-runner for continuous deploymentGitlab-ci.yml Docker executer cannot run shell commands
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
My Error at git lab runner terminal
fatal: remote origin already exists.
warning: failed to remove code/ecom_front_proj/dist/sections: Permission denied
ERROR: Job failed: exit status 1
I am trying to deploy my project to an AWS server by git runner using CI CD. First time the code deploys successfully. If I commit a second time it shows the above error.
If I delete my runner and create new one it is deploying successfully.
I don't know how to delete the remote origin file that already exists.
My Git.yml
image: docker
>
> services:
> - docker:dind
>
> stages:
> - test
> - deploy
>
> test: stage: test only:
> - master
> script:
> - echo run tests in this section
>
> step-deploy-prod: stage: deploy only:
> - master script:
>
> - sudo docker system prune -f
> - sudo docker volume prune -f
> - sudo docker image prune -f
> - sudo docker-compose build --no-cache
> - sudo docker-compose up -d environment: development
My Docker file
FROM node:6 LABEL Aathi <aathi@techardors.com>
>
> RUN apk update && apk add git RUN apk add nodejs RUN apk add nginx
> RUN set -x ; addgroup -g 82 -S www-data ; adduser -u 82 -D -S
> -G www-data www-data && exit 0 ; exit 1
>
> COPY ./nginx.conf /etc/nginx/nginx.conf
> #COPY ./localhost.crt /etc/nginx/localhost.crt
> #COPY ./localhost.key /etc/nginx/localhost.key COPY ./code/ecom_front_proj /sections WORKDIR sections RUN npm install RUN
> npm install -g @angular/cli RUN ng build --prod
My docker Compose File
version: '2'
>
> services: web:
> container_name: nginx
> build: .
> ports:
> - "4200:4200"
> command: nginx -g "daemon off";
> volumes:
> - ./code/ecom_front_proj/dist/sections:/www:ro
My nginx file
user www-data; worker_processes 1; pid /run/nginx.pid;
>
> events worker_connections 768; # multi_accept on;
>
> http sendfile off; tcp_nopush on; tcp_nodelay on;
> keepalive_timeout 65; types_hash_max_size 2048;
>
> include /etc/nginx/mime.types; default_type
> application/octet-stream;
>
> #access_log /var/log/nginx/access.log; #error_log
> /var/log/nginx/error.log;
>
> gzip on; gzip_disable "msie6";
>
> server #listen 8443 ssl; listen 4200; #server_name
> localhost;
>
> #ssl_certificate localhost.crt; #ssl_certificate_key
> localhost.key;
>
> location /
> root /sections/dist/sections;
> index index.html;
>
>
>
continuous-integration gitlab devops gitlab-ci-runner cd
add a comment |
My Error at git lab runner terminal
fatal: remote origin already exists.
warning: failed to remove code/ecom_front_proj/dist/sections: Permission denied
ERROR: Job failed: exit status 1
I am trying to deploy my project to an AWS server by git runner using CI CD. First time the code deploys successfully. If I commit a second time it shows the above error.
If I delete my runner and create new one it is deploying successfully.
I don't know how to delete the remote origin file that already exists.
My Git.yml
image: docker
>
> services:
> - docker:dind
>
> stages:
> - test
> - deploy
>
> test: stage: test only:
> - master
> script:
> - echo run tests in this section
>
> step-deploy-prod: stage: deploy only:
> - master script:
>
> - sudo docker system prune -f
> - sudo docker volume prune -f
> - sudo docker image prune -f
> - sudo docker-compose build --no-cache
> - sudo docker-compose up -d environment: development
My Docker file
FROM node:6 LABEL Aathi <aathi@techardors.com>
>
> RUN apk update && apk add git RUN apk add nodejs RUN apk add nginx
> RUN set -x ; addgroup -g 82 -S www-data ; adduser -u 82 -D -S
> -G www-data www-data && exit 0 ; exit 1
>
> COPY ./nginx.conf /etc/nginx/nginx.conf
> #COPY ./localhost.crt /etc/nginx/localhost.crt
> #COPY ./localhost.key /etc/nginx/localhost.key COPY ./code/ecom_front_proj /sections WORKDIR sections RUN npm install RUN
> npm install -g @angular/cli RUN ng build --prod
My docker Compose File
version: '2'
>
> services: web:
> container_name: nginx
> build: .
> ports:
> - "4200:4200"
> command: nginx -g "daemon off";
> volumes:
> - ./code/ecom_front_proj/dist/sections:/www:ro
My nginx file
user www-data; worker_processes 1; pid /run/nginx.pid;
>
> events worker_connections 768; # multi_accept on;
>
> http sendfile off; tcp_nopush on; tcp_nodelay on;
> keepalive_timeout 65; types_hash_max_size 2048;
>
> include /etc/nginx/mime.types; default_type
> application/octet-stream;
>
> #access_log /var/log/nginx/access.log; #error_log
> /var/log/nginx/error.log;
>
> gzip on; gzip_disable "msie6";
>
> server #listen 8443 ssl; listen 4200; #server_name
> localhost;
>
> #ssl_certificate localhost.crt; #ssl_certificate_key
> localhost.key;
>
> location /
> root /sections/dist/sections;
> index index.html;
>
>
>
continuous-integration gitlab devops gitlab-ci-runner cd
i have given access to my git runner sudo usermod -aG docker gitlab-runner sudo nano /etc/sudoers gitlab-runner ALL=(ALL) NOPASSWD: ALL added this line in my sudoers
– Aathitha Nambi
Apr 2 at 9:43
which git-runner version is working fine and can any one give me a link for installation.
– Aathitha Nambi
Apr 2 at 9:45
add a comment |
My Error at git lab runner terminal
fatal: remote origin already exists.
warning: failed to remove code/ecom_front_proj/dist/sections: Permission denied
ERROR: Job failed: exit status 1
I am trying to deploy my project to an AWS server by git runner using CI CD. First time the code deploys successfully. If I commit a second time it shows the above error.
If I delete my runner and create new one it is deploying successfully.
I don't know how to delete the remote origin file that already exists.
My Git.yml
image: docker
>
> services:
> - docker:dind
>
> stages:
> - test
> - deploy
>
> test: stage: test only:
> - master
> script:
> - echo run tests in this section
>
> step-deploy-prod: stage: deploy only:
> - master script:
>
> - sudo docker system prune -f
> - sudo docker volume prune -f
> - sudo docker image prune -f
> - sudo docker-compose build --no-cache
> - sudo docker-compose up -d environment: development
My Docker file
FROM node:6 LABEL Aathi <aathi@techardors.com>
>
> RUN apk update && apk add git RUN apk add nodejs RUN apk add nginx
> RUN set -x ; addgroup -g 82 -S www-data ; adduser -u 82 -D -S
> -G www-data www-data && exit 0 ; exit 1
>
> COPY ./nginx.conf /etc/nginx/nginx.conf
> #COPY ./localhost.crt /etc/nginx/localhost.crt
> #COPY ./localhost.key /etc/nginx/localhost.key COPY ./code/ecom_front_proj /sections WORKDIR sections RUN npm install RUN
> npm install -g @angular/cli RUN ng build --prod
My docker Compose File
version: '2'
>
> services: web:
> container_name: nginx
> build: .
> ports:
> - "4200:4200"
> command: nginx -g "daemon off";
> volumes:
> - ./code/ecom_front_proj/dist/sections:/www:ro
My nginx file
user www-data; worker_processes 1; pid /run/nginx.pid;
>
> events worker_connections 768; # multi_accept on;
>
> http sendfile off; tcp_nopush on; tcp_nodelay on;
> keepalive_timeout 65; types_hash_max_size 2048;
>
> include /etc/nginx/mime.types; default_type
> application/octet-stream;
>
> #access_log /var/log/nginx/access.log; #error_log
> /var/log/nginx/error.log;
>
> gzip on; gzip_disable "msie6";
>
> server #listen 8443 ssl; listen 4200; #server_name
> localhost;
>
> #ssl_certificate localhost.crt; #ssl_certificate_key
> localhost.key;
>
> location /
> root /sections/dist/sections;
> index index.html;
>
>
>
continuous-integration gitlab devops gitlab-ci-runner cd
My Error at git lab runner terminal
fatal: remote origin already exists.
warning: failed to remove code/ecom_front_proj/dist/sections: Permission denied
ERROR: Job failed: exit status 1
I am trying to deploy my project to an AWS server by git runner using CI CD. First time the code deploys successfully. If I commit a second time it shows the above error.
If I delete my runner and create new one it is deploying successfully.
I don't know how to delete the remote origin file that already exists.
My Git.yml
image: docker
>
> services:
> - docker:dind
>
> stages:
> - test
> - deploy
>
> test: stage: test only:
> - master
> script:
> - echo run tests in this section
>
> step-deploy-prod: stage: deploy only:
> - master script:
>
> - sudo docker system prune -f
> - sudo docker volume prune -f
> - sudo docker image prune -f
> - sudo docker-compose build --no-cache
> - sudo docker-compose up -d environment: development
My Docker file
FROM node:6 LABEL Aathi <aathi@techardors.com>
>
> RUN apk update && apk add git RUN apk add nodejs RUN apk add nginx
> RUN set -x ; addgroup -g 82 -S www-data ; adduser -u 82 -D -S
> -G www-data www-data && exit 0 ; exit 1
>
> COPY ./nginx.conf /etc/nginx/nginx.conf
> #COPY ./localhost.crt /etc/nginx/localhost.crt
> #COPY ./localhost.key /etc/nginx/localhost.key COPY ./code/ecom_front_proj /sections WORKDIR sections RUN npm install RUN
> npm install -g @angular/cli RUN ng build --prod
My docker Compose File
version: '2'
>
> services: web:
> container_name: nginx
> build: .
> ports:
> - "4200:4200"
> command: nginx -g "daemon off";
> volumes:
> - ./code/ecom_front_proj/dist/sections:/www:ro
My nginx file
user www-data; worker_processes 1; pid /run/nginx.pid;
>
> events worker_connections 768; # multi_accept on;
>
> http sendfile off; tcp_nopush on; tcp_nodelay on;
> keepalive_timeout 65; types_hash_max_size 2048;
>
> include /etc/nginx/mime.types; default_type
> application/octet-stream;
>
> #access_log /var/log/nginx/access.log; #error_log
> /var/log/nginx/error.log;
>
> gzip on; gzip_disable "msie6";
>
> server #listen 8443 ssl; listen 4200; #server_name
> localhost;
>
> #ssl_certificate localhost.crt; #ssl_certificate_key
> localhost.key;
>
> location /
> root /sections/dist/sections;
> index index.html;
>
>
>
continuous-integration gitlab devops gitlab-ci-runner cd
continuous-integration gitlab devops gitlab-ci-runner cd
edited Mar 27 at 3:50
Aathitha Nambi
asked Mar 26 at 14:36
Aathitha NambiAathitha Nambi
12 bronze badges
12 bronze badges
i have given access to my git runner sudo usermod -aG docker gitlab-runner sudo nano /etc/sudoers gitlab-runner ALL=(ALL) NOPASSWD: ALL added this line in my sudoers
– Aathitha Nambi
Apr 2 at 9:43
which git-runner version is working fine and can any one give me a link for installation.
– Aathitha Nambi
Apr 2 at 9:45
add a comment |
i have given access to my git runner sudo usermod -aG docker gitlab-runner sudo nano /etc/sudoers gitlab-runner ALL=(ALL) NOPASSWD: ALL added this line in my sudoers
– Aathitha Nambi
Apr 2 at 9:43
which git-runner version is working fine and can any one give me a link for installation.
– Aathitha Nambi
Apr 2 at 9:45
i have given access to my git runner sudo usermod -aG docker gitlab-runner sudo nano /etc/sudoers gitlab-runner ALL=(ALL) NOPASSWD: ALL added this line in my sudoers
– Aathitha Nambi
Apr 2 at 9:43
i have given access to my git runner sudo usermod -aG docker gitlab-runner sudo nano /etc/sudoers gitlab-runner ALL=(ALL) NOPASSWD: ALL added this line in my sudoers
– Aathitha Nambi
Apr 2 at 9:43
which git-runner version is working fine and can any one give me a link for installation.
– Aathitha Nambi
Apr 2 at 9:45
which git-runner version is working fine and can any one give me a link for installation.
– Aathitha Nambi
Apr 2 at 9:45
add a comment |
1 Answer
1
active
oldest
votes
Looks like you run gitlab-runner
version 11.9.0 and it has a bug.
Alternatively, your gitlab-runner
was installed with privileges that not allow it to change file structure in the mentioned path, consider reinstalling or adding these privileges.
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/3.0/"u003ecc by-sa 3.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%2f55359775%2fresolve-remote-origin-already-exists-error-at-git-lab-runner%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
Looks like you run gitlab-runner
version 11.9.0 and it has a bug.
Alternatively, your gitlab-runner
was installed with privileges that not allow it to change file structure in the mentioned path, consider reinstalling or adding these privileges.
add a comment |
Looks like you run gitlab-runner
version 11.9.0 and it has a bug.
Alternatively, your gitlab-runner
was installed with privileges that not allow it to change file structure in the mentioned path, consider reinstalling or adding these privileges.
add a comment |
Looks like you run gitlab-runner
version 11.9.0 and it has a bug.
Alternatively, your gitlab-runner
was installed with privileges that not allow it to change file structure in the mentioned path, consider reinstalling or adding these privileges.
Looks like you run gitlab-runner
version 11.9.0 and it has a bug.
Alternatively, your gitlab-runner
was installed with privileges that not allow it to change file structure in the mentioned path, consider reinstalling or adding these privileges.
answered Mar 29 at 18:51
Denis PisarevDenis Pisarev
114 bronze badges
114 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%2f55359775%2fresolve-remote-origin-already-exists-error-at-git-lab-runner%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
i have given access to my git runner sudo usermod -aG docker gitlab-runner sudo nano /etc/sudoers gitlab-runner ALL=(ALL) NOPASSWD: ALL added this line in my sudoers
– Aathitha Nambi
Apr 2 at 9:43
which git-runner version is working fine and can any one give me a link for installation.
– Aathitha Nambi
Apr 2 at 9:45