-
-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I have been working on a very simple script that automatically initializes a local repo into Opengist.
(The simple script, if it helps):
if [ -d ".git" ]; then
echo ".git directory already exists. Exiting."
exit 1
fi
git init
git add .
git commit -m "Init"
git remote rm origin
PROJNAME=$(basename "$PWD")
echo "Project name: $PROJNAME"
git remote add origin https://gist.example.com/init
git push -u origin main -o \
title="$PROJNAME" -o \
description="Created with my init script" -o \
visibility=public Multiple times while doing this (typically after a few failed experimental Git init pushes) sometimes my entire Opengist breaks, and will just constantly throw this error, forever, when pushing to /init from my workstation:
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 3.35 KiB | 3.35 MiB/s, done.
Total 8 (delta 2), reused 0 (delta 0), pack-reused 0
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Removing .git/ and recreating does not help.
At the same time, Docker logs throw:
ERR internal/web/handlers/git/http.go:223 Cannot run git receive-pack ; error="chdir /opengist/repos/myusername/d23ccb1cc2c44adc9874707c015ff43e: no such file or directory"
The only solution I've found is to rebuild the Opengist stack (delete volume), and start over.
This seems to be happening now at random, even though I've got the script working properly.
Any idea what's causing this and how to recover?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working