Fatal: repository '' not found


#1
Gogs version: 0.11.85.1225
system: Debian GNU/Linux 9.6 (stretch)
database: mysql

I just installed Gogs and tried to push via HTTP, it works on an admin personal repository but not on organizations repositories. When trying to push on the organization’s repository BACKUP:

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://git.bio-feed.org/BioFeed/BACKUP.git
git push -u origin master

I get the following error:

fatal: repository 'https://git.bio-feed.org/BioFeed/BACKUP.git/' not found

The repository that I am trying to push contains the following files:

artwork.git  website.git

Here is my custom app.ini config if it can help:

APP_NAME = Gogs
RUN_USER = git
RUN_MODE = prod

[database]
DB_TYPE  = mysql
HOST     = 127.0.0.1:3306
NAME     = gogs
USER     = gogs
PASSWD   = **********
SSL_MODE = disable
PATH     = data/gogs.db

[repository]
ROOT = /home/git/gogs-repositories
MAX_CREATION_LIMIT          = -1
DISABLE_HTTP_GIT            = false

[repository.editor]
; List of file extensions that should have line wraps in the CodeMirror editor.
; ; Separate extensions with a comma. To line wrap files without extension, just put a comma
LINE_WRAP_EXTENSIONS   = .txt,.md,.markdown,.mdown,.mkd,
; Valid file modes that have a preview API associated with them, such as api/v1/markdown.
; ; Separate values by commas. Preview tab in edit mode won't show if the file extension doesn't match
PREVIEWABLE_FILE_MODES = markdown

[repository.upload]
; Enable repository file uploads.
ENABLED       = true
; Path to temporarily store uploads (default path gets cleaned by Gogs in every start)
TEMP_PATH     = data/tmp/uploads
; File types that are allowed to be uploaded, e.g. image/jpeg|image/png. Leave empty means allow any file type
ALLOWED_TYPES = 
; Maximum size of each file in MB
FILE_MAX_SIZE = 32
; Maximum number of files per upload
MAX_FILES     = 200

; Attachment settings for releases
[release.attachment]
; Whether attachments are enabled. Defaults to `true`
ENABLED       = true
; Path for attachments. Defaults to `data/attachments`
PATH          = data/attachments
; One or more allowed types, e.g. image/jpeg|image/png
ALLOWED_TYPES = */*
; Max size of each file. Defaults to 32MB
MAX_SIZE      = 32
; Max number of files per upload. Defaults to 10
MAX_FILES     = 200

[markdown]
; Enable hard line break extension
ENABLE_HARD_LINE_BREAK = false
; List of custom URL-Schemes that are allowed as links when rendering Markdown
; ; for example git,magnet
CUSTOM_URL_SCHEMES     = 
; List of file extensions that should be rendered/edited as Markdown
; ; Separate extensions with a comma. To render files w/o extension as markdown, just put a comma
FILE_EXTENSIONS        = .md,.markdown,.mdown,.mkd

[smartypants]
ENABLED       = false
FRACTIONS     = true
DASHES        = true
LATEX_DASHES  = true
ANGLED_QUOTES = true

[server]
DOMAIN           = bio-feed.org
HTTP_PORT        = 3000
ROOT_URL         = https://git.bio-feed.org/
DISABLE_SSH      = true
START_SSH_SERVER = false
OFFLINE_MODE     = false

[mailer]
ENABLED = false

[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL     = false
DISABLE_REGISTRATION   = true
ENABLE_CAPTCHA         = true
REQUIRE_SIGNIN_VIEW    = false

[picture]
DISABLE_GRAVATAR        = false
ENABLE_FEDERATED_AVATAR = false

[session]
PROVIDER = file

[log]
MODE      = file
LEVEL     = Info
ROOT_PATH = /home/git/go/src/github.com/gogs/gogs/log

[security]
INSTALL_LOCK = true
SECRET_KEY   = ***************

#2

Hello~
Do you use binary or docker container?

When you use git clone or git push, you can add “GIT_CURL_VERBOSE=1” this syntax in front of your git clone or git push.

For example, “GIT_CURL_VERBOSE=1 git clone http://exmple.com” this command will have the detail of the request. Then, you can see the error code.

I guess your error code is 404.

What kinds of the web server tool do you use? I guess Nginx or Apache.

The web server tool is for all of the data transcation. The way is not only on web browser but also on terminal command execution such as git push or git clone.

So, the configuration of the web server tool is very important also.

I suggest a new board for discussion the web tool configuration. (Depend on the administrator mind.)