Problema migrating from gogs to gitea #2065

Closed
opened 2025-11-02 04:23:01 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @kleper on GitHub (Jul 17, 2018).

  • Gitea version (or commit ref): 1.4.3
  • Git version: 2.18.0
  • Operating system: Linux Debian
  • Database (use [x]):
    • PostgreSQL
    • [X ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • [X ] No
    • Not relevant
  • Log gist:

Description

I recently decided to migrate from GOGS to GITEA. Following the documentation I managed to look at the gogs database to my new server with gitea using version 1 of gitea for migration. Migrate all files as specified by the configuration but I have the following problem:
In the repositories I had in GOGS I can not push, when I try the following error:
emote: *** Project description file has not been set
remote: error: hook declined to update refs / heads / master
To https://code.tupale.co/kleper/milfskleper.git
 ! [remote rejected] master -> master (hook declined)
error: fail push to some refereces to 'https: // ....

In the log I have these types of messages:
= git-upload-pack 401 Unauthorized in 1.566429ms

In the log: log / hooks / pre-receive.log, I have these messages:
GetProtectedBranchBy: http://10.10.10.3:3000/api/internal/branch/30/master

As I saw in other issues update the reference to the hooks using the web interface, also organize several configurations related to the URL and the LOCAL HOST, but I still have this problem.

If I create a new repository I do not have any problems and I can do push and everything works fine.

Originally created by @kleper on GitHub (Jul 17, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.4.3 - Git version: 2.18.0 - Operating system: Linux Debian - Database (use `[x]`): - [ ] PostgreSQL - [X ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X ] No - [ ] Not relevant - Log gist: ## Description I recently decided to migrate from GOGS to GITEA. Following the documentation I managed to look at the gogs database to my new server with gitea using version 1 of gitea for migration. Migrate all files as specified by the configuration but I have the following problem: In the repositories I had in GOGS I can not push, when I try the following error: emote: *** Project description file has not been set remote: error: hook declined to update refs / heads / master To https://code.tupale.co/kleper/milfskleper.git  ! [remote rejected] master -> master (hook declined) error: fail push to some refereces to 'https: // .... In the log I have these types of messages: = git-upload-pack 401 Unauthorized in 1.566429ms In the log: log / hooks / pre-receive.log, I have these messages: GetProtectedBranchBy: http://10.10.10.3:3000/api/internal/branch/30/master As I saw in other issues update the reference to the hooks using the web interface, also organize several configurations related to the URL and the LOCAL HOST, but I still have this problem. If I create a new repository I do not have any problems and I can do push and everything works fine.
GiteaMirror added the issue/duplicate label 2025-11-02 04:23:01 -06:00
Author
Owner

@lafriks commented on GitHub (Jul 17, 2018):

Duplicate of #1794

@lafriks commented on GitHub (Jul 17, 2018): Duplicate of #1794
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2065