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;








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;
>
>
>









share|improve this question


























  • 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

















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;
>
>
>









share|improve this question


























  • 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













0












0








0


1






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;
>
>
>









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer
























    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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.






    share|improve this answer





























      0














      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.






      share|improve this answer



























        0












        0








        0







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 29 at 18:51









        Denis PisarevDenis Pisarev

        114 bronze badges




        114 bronze badges





















            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.



















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript