I have been trying some things for the last few hours, but nothing worked. The wit’s end is already a fargone memory.
The situation is like this: I just made a new server to handle some random stuff: have a blog, a git repo, small scale really. Set a few basic things, everything working so far: Apache, a www folder, PHP/MySQL, .confs for the domain and subdomains, Let’s Encrypt.
I have a git user which controls all source-related files and folders, plus a /home/git folder to itself so the application repos can be stored there.
So I got Go, set the paths, got Gitea from source and compiled it. Changed to the git user, ran gitea web
. Went through the install process, everything claimed to be working fine.
Log in with a user, add a public key. I’m making sure to add it explicitly on Windows - all consoles seem to have a lot of trouble with forgetting them.
For testing, I try a direct connection. ssh git@git.address.com
gives me the Hi there, You've successfully authenticated
message.
I make a new repository on the website, and clone it locally using HTTPS. Make a change, add and commit it, and try pushing it to remote.
remote: invalid credentials
fatal: Authentication failed for 'https://git.address.com/username/Repository.git/'
Trying to use the SSH link, I have the following:
git clone git@git.address.com:username/Repository.git
and then it asks my password, then fails due to a permission denied.
I am at a complete loss at what even could be my next step in troubleshooting. I wonder if anyone’s got an idea?
My app.ini is as follows, with mere substitutions to anonymize it.
APP_NAME = Gitea
RUN_USER = git
RUN_MODE = prod
[security]
INTERNAL_TOKEN = prettylongstring
INSTALL_LOCK = true
SECRET_KEY = secretkeyhash
[database]
DB_TYPE = mysql
HOST = 127.0.0.1:3306
NAME = gitea
USER = dbuser
PASSWD = dbpassword
SSL_MODE = disable
PATH = data/gitea.db
[repository]
ROOT = /home/git/gitea-repositories
[server]
SSH_DOMAIN = git.address.com
DOMAIN = localhost
HTTP_PORT = 3000
ROOT_URL = https://git.address.com/
DISABLE_SSH = false
SSH_PORT = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = /opt/go/src/code.gitea.io/gitea/data/lfs
LFS_JWT_SECRET = secrethash
OFFLINE_MODE = false
[mailer]
ENABLED = false
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.example.org
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = true
[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true
[session]
PROVIDER = file
[log]
MODE = file
LEVEL = Info
ROOT_PATH = /opt/go/src/code.gitea.io/gitea/log
What else could be useful as far as information needed to figure this out?