After updating from (some old version) to latest I face errors #13467

Closed
opened 2025-11-02 10:43:13 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @bvn13 on GitHub (Sep 6, 2024).

Description

This error:

...er/issues/indexer.go:226:PopulateIssueIndexer() [E] SearchRepositoryByName: Count: pq: could not read block 0 in file "base/16384/55475": read only 0 of 8192 bytes

What it is?

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker-compose

networks:
  gitea:
    external: true

services:
  gitea:
    image: gitea/gitea:latest
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - GITEA__database__DB_TYPE=postgres
      - GITEA__database__HOST=db:5432
      - GITEA__database__NAME=gitea
      - GITEA__database__USER=gitea
      - GITEA__database__PASSWD=gitea
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      # - "8080:3000"
      - "2221:22"
    expose:
      - 3000
    depends_on:
      - db
  db:
     image: postgres:13
     restart: always
     environment:
       - POSTGRES_USER=gitea
       - POSTGRES_PASSWORD=gitea
       - POSTGRES_DB=gitea
     networks:
       - gitea
     volumes:
       - ./postgres:/var/lib/postgresql/data

Database

PostgreSQL

Originally created by @bvn13 on GitHub (Sep 6, 2024). ### Description This error: ``` ...er/issues/indexer.go:226:PopulateIssueIndexer() [E] SearchRepositoryByName: Count: pq: could not read block 0 in file "base/16384/55475": read only 0 of 8192 bytes ``` What it is? ### Gitea Version latest ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? docker-compose ``` networks: gitea: external: true services: gitea: image: gitea/gitea:latest container_name: gitea environment: - USER_UID=1000 - USER_GID=1000 - GITEA__database__DB_TYPE=postgres - GITEA__database__HOST=db:5432 - GITEA__database__NAME=gitea - GITEA__database__USER=gitea - GITEA__database__PASSWD=gitea restart: always networks: - gitea volumes: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: # - "8080:3000" - "2221:22" expose: - 3000 depends_on: - db db: image: postgres:13 restart: always environment: - POSTGRES_USER=gitea - POSTGRES_PASSWORD=gitea - POSTGRES_DB=gitea networks: - gitea volumes: - ./postgres:/var/lib/postgresql/data ``` ### Database PostgreSQL
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:43:13 -06:00
Author
Owner

@lunny commented on GitHub (Sep 6, 2024):

Looks like it's related to postgres. https://www.postgresql.org/message-id/1c582b7b-e6df-e7ff-26b2-1571378858e8%40gmail.com

@lunny commented on GitHub (Sep 6, 2024): Looks like it's related to postgres. https://www.postgresql.org/message-id/1c582b7b-e6df-e7ff-26b2-1571378858e8%40gmail.com
Author
Owner

@bvn13 commented on GitHub (Sep 7, 2024):

oh... I've restored my DB from one of the latest backup and now I faced with:

Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.
2024/09/07 11:48:22 ...dules/setting/lfs.go:35:loadLFSFrom() [E] Deprecated config option `[server].LFS_CONTENT_PATH` is present, please use `[lfs].PATH` instead. This fallback will be/has been removed in v1.19.0
2024/09/07 11:48:22 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 15
2024/09/07 11:48:22 ...dules/setting/lfs.go:35:loadLFSFrom() [E] Deprecated config option `[server].LFS_CONTENT_PATH` is present, please use `[lfs].PATH` instead. This fallback will be/has been removed in v1.19.0
2024/09/07 11:48:22 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.22.2 built with GNU Make 4.4.1, go1.22.6 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2024/09/07 11:48:22 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2024/09/07 11:48:22 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
2024/09/07 11:48:22 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea
2024/09/07 11:48:22 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea
2024/09/07 11:48:22 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini
2024/09/07 11:48:22 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
2024/09/07 11:48:22 routers/init.go:116:InitWebInstalled() [I] Git version: 2.45.2 (home: /data/gitea/home)
2024/09/07 11:48:22 ...dules/setting/log.go:72:prepareLoggerConfig() [E] Deprecated config option `[log].ROUTER` is present, please use `[log].logger.router.MODE` instead. This fallback will be/has been removed in 1.21
2024/09/07 11:48:22 ...s/setting/session.go:77:loadSessionFrom() [I] Session Service Enabled
2024/09/07 11:48:22 ...es/setting/mailer.go:77:loadMailerFrom() [E] Deprecated config option `[mailer].HOST` is present, please use `[mailer].SMTP_ADDR` instead. This fallback will be/has been removed in v1.19.0
2024/09/07 11:48:22 ...es/setting/mailer.go:237:loadMailerFrom() [I] Mail Service Enabled
2024/09/07 11:48:22 ...es/setting/mailer.go:248:loadRegisterMailFrom() [I] Register Mail Service Enabled
2024/09/07 11:48:22 ...es/setting/mailer.go:259:loadNotifyMailFrom() [I] Notify Mail Service Enabled
2024/09/07 11:48:22 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/attachments
2024/09/07 11:48:22 ...s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/avatars
2024/09/07 11:48:22 ...s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-avatars
2024/09/07 11:48:22 ...s/storage/storage.go:186:initLFS() [I] Initialising LFS storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/git/lfs
2024/09/07 11:48:22 ...s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-archive
2024/09/07 11:48:22 ...s/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/packages
2024/09/07 11:48:22 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/actions_log
2024/09/07 11:48:22 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local
2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/actions_artifacts
2024/09/07 11:48:22 routers/init.go:138:InitWebInstalled() [I] SQLite3 support is enabled
2024/09/07 11:48:22 routers/common/db.go:23:InitDBEngine() [I] Beginning ORM engine initialization.
2024/09/07 11:48:22 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #1/10...
2024/09/07 11:48:22 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[231]: Add index for hook_task
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[232]: Alter package_version.metadata_json to LONGTEXT
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[233]: Add header_authorization_encrypted column to webhook table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[234]: Add package cleanup rule table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[235]: Add index for access_token
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[236]: Create secrets table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[237]: Drop ForeignReference table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[238]: Add updated unix to LFSMetaObject
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[239]: Add scope for access_token
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[240]: Add actions tables
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[241]: Add card_type column to project table
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[242]: Alter gpg_key_import content TEXT field to MEDIUMTEXT
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[243]: Add exclusive label
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[244]: Add NeedApproval to actions tables
2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[245]: Rename Webhook org_id to owner_id
2024/09/07 11:48:24 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #1/10 failed. Error: migrate: migration[245]: Rename Webhook org_id to owner_id failed: pq: column "org_id" of relation "webhook" already exists
2024/09/07 11:48:24 routers/common/db.go:37:InitDBEngine() [I] Backing off for 3 seconds
2024/09/07 11:48:27 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #2/10...
2024/09/07 11:48:27 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres
2024/09/07 11:48:28 ...ations/migrations.go:688:Migrate() [I] Migration[245]: Rename Webhook org_id to owner_id
2024/09/07 11:48:28 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #2/10 failed. Error: migrate: migration[245]: Rename Webhook org_id to owner_id failed: pq: column "org_id" of relation "webhook" already exists
2024/09/07 11:48:28 routers/common/db.go:37:InitDBEngine() [I] Backing off for 3 seconds
2024/09/07 11:48:31 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #3/10...
2024/09/07 11:48:31 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres
2024/09/07 11:48:32 ...ations/migrations.go:688:Migrate() [I] Migration[245]: Rename Webhook org_id to owner_id
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[246]: Add missed column owner_id for project table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[247]: Fix incorrect project type
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[248]: Add version column to action_runner table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[249]: Improve Action table indices v3
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[250]: Change Container Metadata
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[251]: Fix incorrect owner team unit access mode
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[252]: Fix incorrect admin team unit access mode
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[253]: Fix ExternalTracker and ExternalWiki accessMode in owner and admin team
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[254]: Add ActionTaskOutput table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[255]: Add ArchivedUnix Column
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[256]: Add is_internal column to package
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[257]: Add Actions Artifact table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[258]: Add PinOrder Column
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[259]: Convert scoped access tokens
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[260]: Drop custom_labels column of action_runner table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[261]: Add variable table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[262]: Add TriggerEvent to action_run table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[263]: Add git_size and lfs_size columns to repository table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[264]: Add branch table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[265]: Alter Actions Artifact table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[266]: Reduce commit status
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[267]: Add action_tasks_version table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[268]: Update Action Ref
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[269]: Drop deleted branch table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[270]: Fix PackageProperty typo
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[271]: Allow archiving labels
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[272]: Add Version to ActionRun table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[273]: Add Action Schedule Table
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[274]: Add Actions artifacts expiration date
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[275]: Add ScheduleID for ActionRun
2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[276]: Add RemoteAddress to mirrors
2024/09/07 11:48:33 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #3/10 failed. Error: migrate: migration[276]: Add RemoteAddress to mirrors failed: get remote origin's address of bvn13/bvn13-epam-solution-architecture-workshop-2019 failed: exit status 128 - fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 - fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
2024/09/07 11:48:33 routers/common/db.go:37:InitDBEngine() [I] Backing off for 3 seconds

Does it relate to I use very new version of Gitea and did not run a migration script? Or does it relate to any kind of incompatibility?

@bvn13 commented on GitHub (Sep 7, 2024): oh... I've restored my DB from one of the latest backup and now I faced with: ``` Server listening on :: port 22. Server listening on 0.0.0.0 port 22. 2024/09/07 11:48:22 ...dules/setting/lfs.go:35:loadLFSFrom() [E] Deprecated config option `[server].LFS_CONTENT_PATH` is present, please use `[lfs].PATH` instead. This fallback will be/has been removed in v1.19.0 2024/09/07 11:48:22 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 15 2024/09/07 11:48:22 ...dules/setting/lfs.go:35:loadLFSFrom() [E] Deprecated config option `[server].LFS_CONTENT_PATH` is present, please use `[lfs].PATH` instead. This fallback will be/has been removed in v1.19.0 2024/09/07 11:48:22 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.22.2 built with GNU Make 4.4.1, go1.22.6 : bindata, timetzdata, sqlite, sqlite_unlock_notify 2024/09/07 11:48:22 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod 2024/09/07 11:48:22 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea 2024/09/07 11:48:22 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea 2024/09/07 11:48:22 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea 2024/09/07 11:48:22 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini 2024/09/07 11:48:22 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server 2024/09/07 11:48:22 routers/init.go:116:InitWebInstalled() [I] Git version: 2.45.2 (home: /data/gitea/home) 2024/09/07 11:48:22 ...dules/setting/log.go:72:prepareLoggerConfig() [E] Deprecated config option `[log].ROUTER` is present, please use `[log].logger.router.MODE` instead. This fallback will be/has been removed in 1.21 2024/09/07 11:48:22 ...s/setting/session.go:77:loadSessionFrom() [I] Session Service Enabled 2024/09/07 11:48:22 ...es/setting/mailer.go:77:loadMailerFrom() [E] Deprecated config option `[mailer].HOST` is present, please use `[mailer].SMTP_ADDR` instead. This fallback will be/has been removed in v1.19.0 2024/09/07 11:48:22 ...es/setting/mailer.go:237:loadMailerFrom() [I] Mail Service Enabled 2024/09/07 11:48:22 ...es/setting/mailer.go:248:loadRegisterMailFrom() [I] Register Mail Service Enabled 2024/09/07 11:48:22 ...es/setting/mailer.go:259:loadNotifyMailFrom() [I] Notify Mail Service Enabled 2024/09/07 11:48:22 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local 2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/attachments 2024/09/07 11:48:22 ...s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local 2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/avatars 2024/09/07 11:48:22 ...s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local 2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-avatars 2024/09/07 11:48:22 ...s/storage/storage.go:186:initLFS() [I] Initialising LFS storage with type: local 2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/git/lfs 2024/09/07 11:48:22 ...s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local 2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-archive 2024/09/07 11:48:22 ...s/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local 2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/packages 2024/09/07 11:48:22 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local 2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/actions_log 2024/09/07 11:48:22 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local 2024/09/07 11:48:22 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/actions_artifacts 2024/09/07 11:48:22 routers/init.go:138:InitWebInstalled() [I] SQLite3 support is enabled 2024/09/07 11:48:22 routers/common/db.go:23:InitDBEngine() [I] Beginning ORM engine initialization. 2024/09/07 11:48:22 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #1/10... 2024/09/07 11:48:22 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[231]: Add index for hook_task 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[232]: Alter package_version.metadata_json to LONGTEXT 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[233]: Add header_authorization_encrypted column to webhook table 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[234]: Add package cleanup rule table 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[235]: Add index for access_token 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[236]: Create secrets table 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[237]: Drop ForeignReference table 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[238]: Add updated unix to LFSMetaObject 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[239]: Add scope for access_token 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[240]: Add actions tables 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[241]: Add card_type column to project table 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[242]: Alter gpg_key_import content TEXT field to MEDIUMTEXT 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[243]: Add exclusive label 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[244]: Add NeedApproval to actions tables 2024/09/07 11:48:24 ...ations/migrations.go:688:Migrate() [I] Migration[245]: Rename Webhook org_id to owner_id 2024/09/07 11:48:24 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #1/10 failed. Error: migrate: migration[245]: Rename Webhook org_id to owner_id failed: pq: column "org_id" of relation "webhook" already exists 2024/09/07 11:48:24 routers/common/db.go:37:InitDBEngine() [I] Backing off for 3 seconds 2024/09/07 11:48:27 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #2/10... 2024/09/07 11:48:27 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres 2024/09/07 11:48:28 ...ations/migrations.go:688:Migrate() [I] Migration[245]: Rename Webhook org_id to owner_id 2024/09/07 11:48:28 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #2/10 failed. Error: migrate: migration[245]: Rename Webhook org_id to owner_id failed: pq: column "org_id" of relation "webhook" already exists 2024/09/07 11:48:28 routers/common/db.go:37:InitDBEngine() [I] Backing off for 3 seconds 2024/09/07 11:48:31 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #3/10... 2024/09/07 11:48:31 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres 2024/09/07 11:48:32 ...ations/migrations.go:688:Migrate() [I] Migration[245]: Rename Webhook org_id to owner_id 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[246]: Add missed column owner_id for project table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[247]: Fix incorrect project type 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[248]: Add version column to action_runner table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[249]: Improve Action table indices v3 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[250]: Change Container Metadata 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[251]: Fix incorrect owner team unit access mode 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[252]: Fix incorrect admin team unit access mode 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[253]: Fix ExternalTracker and ExternalWiki accessMode in owner and admin team 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[254]: Add ActionTaskOutput table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[255]: Add ArchivedUnix Column 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[256]: Add is_internal column to package 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[257]: Add Actions Artifact table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[258]: Add PinOrder Column 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[259]: Convert scoped access tokens 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[260]: Drop custom_labels column of action_runner table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[261]: Add variable table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[262]: Add TriggerEvent to action_run table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[263]: Add git_size and lfs_size columns to repository table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[264]: Add branch table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[265]: Alter Actions Artifact table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[266]: Reduce commit status 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[267]: Add action_tasks_version table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[268]: Update Action Ref 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[269]: Drop deleted branch table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[270]: Fix PackageProperty typo 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[271]: Allow archiving labels 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[272]: Add Version to ActionRun table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[273]: Add Action Schedule Table 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[274]: Add Actions artifacts expiration date 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[275]: Add ScheduleID for ActionRun 2024/09/07 11:48:33 ...ations/migrations.go:688:Migrate() [I] Migration[276]: Add RemoteAddress to mirrors 2024/09/07 11:48:33 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #3/10 failed. Error: migrate: migration[276]: Add RemoteAddress to mirrors failed: get remote origin's address of bvn13/bvn13-epam-solution-architecture-workshop-2019 failed: exit status 128 - fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). - fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). 2024/09/07 11:48:33 routers/common/db.go:37:InitDBEngine() [I] Backing off for 3 seconds ``` Does it relate to I use very new version of Gitea and did not run a migration script? Or does it relate to any kind of incompatibility?
Author
Owner

@bvn13 commented on GitHub (Sep 7, 2024):

Issue is minor for me because of I have already recovered my Gitea instance in semi-by-hands way.

@bvn13 commented on GitHub (Sep 7, 2024): Issue is minor for me because of I have already recovered my Gitea instance in semi-by-hands way.
Author
Owner

@GiteaBot commented on GitHub (Oct 7, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Oct 7, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13467