Running with gitlab-runner 13.2.4 (264446b2)
  on gitlab-runner-gitlab-runner-757f4cc95c-xlx5v FvAeEGPM
section_start:1613221806:prepare_executor
Preparing the "kubernetes" executor
Using Kubernetes namespace: ci
Using Kubernetes executor with image gcr.io/kaniko-project/executor:debug ...
section_end:1613221806:prepare_executor
section_start:1613221806:prepare_script
Preparing environment
Waiting for pod ci/runner-fvaeegpm-project-50-concurrent-02zlq6 to be running, status is Pending
Waiting for pod ci/runner-fvaeegpm-project-50-concurrent-02zlq6 to be running, status is Pending
Waiting for pod ci/runner-fvaeegpm-project-50-concurrent-02zlq6 to be running, status is Pending
Waiting for pod ci/runner-fvaeegpm-project-50-concurrent-02zlq6 to be running, status is Pending
Running on runner-fvaeegpm-project-50-concurrent-02zlq6 via gitlab-runner-gitlab-runner-757f4cc95c-xlx5v...
section_end:1613221819:prepare_script
section_start:1613221819:get_sources
Getting source from Git repository
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/justJanne/umami/.git/
Created fresh repository.
Checking out 58f51981 as master...

Skipping Git submodules setup
section_end:1613221819:get_sources
section_start:1613221819:step_script
Executing "step_script" stage of the job script
$ mkdir -p /kaniko/.docker
$ echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
$ /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}
INFO[0000] Retrieving image manifest node:alpine        
INFO[0000] Retrieving image node:alpine                 
INFO[0001] Retrieving image manifest node:alpine        
INFO[0001] Retrieving image node:alpine                 
INFO[0002] Built cross stage deps: map[]                
INFO[0002] Retrieving image manifest node:alpine        
INFO[0002] Retrieving image node:alpine                 
INFO[0003] Retrieving image manifest node:alpine        
INFO[0003] Retrieving image node:alpine                 
INFO[0004] Executing 0 build triggers                   
INFO[0004] Unpacking rootfs as cmd RUN apk add --no-cache git &&     git clone https://github.com/mikecao/umami.git /umami requires it. 
INFO[0007] RUN apk add --no-cache git &&     git clone https://github.com/mikecao/umami.git /umami 
INFO[0007] Taking snapshot of full filesystem...        
INFO[0029] cmd: /bin/sh                                 
INFO[0029] args: [-c apk add --no-cache git &&     git clone https://github.com/mikecao/umami.git /umami] 
INFO[0029] Running: [/bin/sh -c apk add --no-cache git &&     git clone https://github.com/mikecao/umami.git /umami] 
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
(1/6) Installing ca-certificates (20191127-r2)
(2/6) Installing nghttp2-libs (1.40.0-r1)
(3/6) Installing libcurl (7.67.0-r3)
(4/6) Installing expat (2.2.9-r1)
(5/6) Installing pcre2 (10.34-r1)
(6/6) Installing git (2.24.3-r0)
Executing busybox-1.31.1-r9.trigger
Executing ca-certificates-20191127-r2.trigger
OK: 23 MiB in 22 packages
Cloning into '/umami'...
INFO[0031] Taking snapshot of full filesystem...        
INFO[0041] WORKDIR /umami                               
INFO[0041] cmd: workdir                                 
INFO[0041] Changed working directory to /umami          
INFO[0041] No files changed in this command, skipping snapshotting. 
INFO[0041] Using files from context: [/builds/justJanne/umami/src/fix.diff] 
INFO[0041] ADD src/fix.diff /umami/fix.diff             
INFO[0041] Taking snapshot of files...                  
INFO[0041] RUN git apply fix.diff &&     npm install &&     npm run build-tracker &&     DATABASE_URL=postgresql://localhost/db npm run build 
INFO[0041] cmd: /bin/sh                                 
INFO[0041] args: [-c git apply fix.diff &&     npm install &&     npm run build-tracker &&     DATABASE_URL=postgresql://localhost/db npm run build] 
INFO[0041] Running: [/bin/sh -c git apply fix.diff &&     npm install &&     npm run build-tracker &&     DATABASE_URL=postgresql://localhost/db npm run build] 
error: patch failed: lib/web.js:49
error: lib/web.js: patch does not apply
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1
section_end:1613221860:step_script
section_start:1613221860:cleanup_file_variables
Cleaning up file based variables
section_end:1613221860:cleanup_file_variables
ERROR: Job failed: command terminated with exit code 1