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

Unable to create new repo #26

Closed
g4s8 opened this issue Sep 18, 2019 · 12 comments
Closed

Unable to create new repo #26

g4s8 opened this issue Sep 18, 2019 · 12 comments
Assignees
Labels
bug Something isn't working stale

Comments

@g4s8
Copy link
Owner

g4s8 commented Sep 18, 2019

Getting error on create command:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x7c4f57]

goroutine 1 [running]:
github.com/g4s8/gitstrap.(*strapCtx).createRepo(0xc00000e6a0, 0xc000294fac, 0x4, 0xc000102300, 0xc0000974d0, 0xc0000dc600, 0xc000152000, 0x0)
        /home/g4s8/go/src/github.com/g4s8/gitstrap/gitstrap.go:189 +0xd7
github.com/g4s8/gitstrap.(*strapCreate).Run(0xc0000100a0, 0xc0000974d0, 0x7ffe67b7d12c, 0x6)
        /home/g4s8/go/src/github.com/g4s8/gitstrap/gitstrap.go:158 +0x2bd
main.main()
        /home/g4s8/projects/github.com/g4s8/gitstrap/cmd/gitstrap/main.go:54 +0x4a4
@g4s8 g4s8 added the bug Something isn't working label Sep 18, 2019
@g4s8 g4s8 self-assigned this Sep 18, 2019
@0crat 0crat added the scope label Sep 18, 2019
@0crat
Copy link

0crat commented Sep 18, 2019

Job #26 is now in scope, role is DEV

@0crat
Copy link

0crat commented Sep 18, 2019

The job #26 assigned to @g4s8/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be no monetary reward for this job

@0crat
Copy link

0crat commented Sep 18, 2019

It is strongly discouraged to assign jobs to their creators, see §19: -15 point(s) just awarded to @g4s8/z

@0crat
Copy link

0crat commented Sep 18, 2019

Manual assignment of issues is discouraged, see §19: -5 point(s) just awarded to @g4s8/z

@0crat
Copy link

0crat commented Sep 18, 2019

Bug was reported, see §29: +15 point(s) just awarded to @g4s8/z

g4s8 added a commit that referenced this issue Sep 18, 2019
@github-actions
Copy link

@g4s8 ping (issue is stale)

@github-actions github-actions bot added the stale label Sep 29, 2019
@g4s8
Copy link
Owner Author

g4s8 commented Sep 30, 2019

@rultor release, tag=0.2.5

@rultor
Copy link
Contributor

rultor commented Sep 30, 2019

@rultor release, tag=0.2.5

@g4s8 OK, I will release it now. Please check the progress here

@rultor
Copy link
Contributor

rultor commented Sep 30, 2019

@rultor release, tag=0.2.5

@g4s8 Oops, I failed. You can see the full log here (spent 2min)

+ git checkout -b __rultor
Switched to a new branch '__rultor'
+ docker_when_possible
+ true
++ uptime
++ sed 's/ /\n/g'
++ tail -n 1
+ load=5.30
++ echo 5.30 '>' 30
++ bc
+ '[' 0 -eq 1 ']'
+ echo 'load average is 5.30, low enough to run a new Docker container'
load average is 5.30, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=g4s8/gorultor:alpine
+ docker pull g4s8/gorultor:alpine
alpine: Pulling from g4s8/gorultor
Digest: sha256:c51fb822d6daf42888ae3a9a86b9ed12aa50af8ef18d206de1153e367e9d3bcc
Status: Image is up to date for g4s8/gorultor:alpine
+ docker ps --filter=status=exited
+ grep --quiet '\sg4s8_gitstrap_26\s*$'
+ ls -al .
total 708
drwx--x--x  3 rultor rultor   4096 Sep 30 21:07 .
drwxrwxrwt 39 root   root   684032 Sep 30 21:07 ..
-rw-rw-r--  1 rultor rultor    444 Sep 30 21:07 end.sh
-rwxrwxr-x  1 rultor rultor    338 Sep 30 21:07 entry.sh
-rw-rw-r--  1 rultor rultor      5 Sep 30 21:07 pid
drwxrwxr-x  8 rultor rultor   4096 Sep 30 21:07 repo
-rwxrwxr-x  1 rultor rultor   5479 Sep 30 21:07 run.sh
-rw-rw-r--  1 rultor rultor    418 Sep 30 21:07 script.sh
-rw-rw-r--  1 rultor rultor   3444 Sep 30 21:07 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-Hz9N:/main --env=PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env=CGO_ENABLED=0 --env=head=git@github.com:g4s8/gitstrap.git --env=tag=0.2.5 '--env=scripts=( '\''export '\''\'\'''\''PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''CGO_ENABLED=0'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head=git@github.com:g4s8/gitstrap.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.2.5'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=g4s8'\''\'\'''\'''\'' '\'';'\'' '\'''\'' '\'';'\'' '\''[[ "${tag}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1'\'' '\'';'\'' )' --env=head_branch=master --env=author=g4s8 --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-Hz9N/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --entrypoint=/main/entry.sh --name=g4s8_gitstrap_26 g4s8/gorultor:alpine /main/entry.sh
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
Creating mailbox file: No such file or directory
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bundle /root/.cache /root/.gem /root/empty /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./repo ./run.sh ./script.sh ./stdout /home/r
+ rm -rf repo
+ chown -R r:r /home/r
+ chmod a+x /home/r/script.sh
+ su --login r --command /home/r/script.sh
+ set -e
+ set -o pipefail
+ shopt -s expand_aliases
+ alias 'sudo=sudo -i'
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
/home/r/script.sh: line 9: syntax error near unexpected token `;'
container 3ab0a26a796b49309a5b4d08c2d23f802bd5bde5aa64c1fb92b1007fff75b756 is dead
Mon Sep 30 21:08:34 CEST 2019

@g4s8
Copy link
Owner Author

g4s8 commented Oct 1, 2019

Fixed

@g4s8 g4s8 closed this as completed Oct 1, 2019
@0crat 0crat removed the scope label Oct 1, 2019
@0crat
Copy link

0crat commented Oct 1, 2019

The job #26 is now out of scope

@0crat
Copy link

0crat commented Oct 1, 2019

Order was finished: +30 point(s) just awarded to @g4s8/z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants