Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot creat indexers for newly import repositories #9190

Closed
2 of 7 tasks
MFYDev opened this issue Nov 28, 2019 · 10 comments
Closed
2 of 7 tasks

Cannot creat indexers for newly import repositories #9190

MFYDev opened this issue Nov 28, 2019 · 10 comments
Labels

Comments

@MFYDev
Copy link

MFYDev commented Nov 28, 2019

  • Gitea version (or commit ref): 1.10.0
  • Git version: 2.17.1
  • Operating system: Ubuntu 18.04 LTS
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
      P.S.: The reason why I cannot reproduce this issue is try.gitea.io doesn't turn on the function of code indexers.
    • Not relevant
  • Log gist:

Description

Hi there,

I found that when I turn on the code indexer function and import a new repository from an URL, the code index cannot be created by Gitea itself. I found that because every time after the import procession done, and I input some code right inside the repository it cannot be found and Gitea just display nothing on the search page.

I have to delete the indexers of repositories on my server and restart the Gitea, only in this way can it be created. That is so weird which I really do not know whether it is my own server's problem or Gitea's Bug, so I highly recommend you to have a check on it.

Here is the my custom configuration in the app.ini in the following:

[indexer]
ISSUE_INDEXER_TYPE = db
STARTUP_TIMEOUT=30s
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = /hdd2/gitea/indexers/repos.bleve
UPDATE_BUFFER_LEN = 20
MAX_FILE_SIZE = 1048576

[repository]
ROOT = /hdd2/gitea/gitea-repositories

Screenshots

Only screenshots cannot demonstrate this problem clearly. Just have a try please.

@vvrein
Copy link

vvrein commented Jan 7, 2020

+1 for this issue.

My setup:

  • Gitea version (or commit ref): 1.11.0+dev-566-g143f88d97
  • Git version: 2.24.1
  • Operating system: Arch Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
      P.S.: The reason why I cannot reproduce this issue is try.gitea.io doesn't turn on the function of code indexers.
    • Not relevant
  • Log gist:

Description

  1. After turning on repo indexing, and committing new changes to the existing repo, changes don't get to the index.
  2. Also creating new repo, and committing changes there don't get to the index.

However, when I delete dir /home/gitea/app/indexers/repos.bleve with repo indexes, and restart gitea - all repo are indexed well. But then I got step 1.
Such feel, like repo indexing runs only once at start, and only if index dir is empty. Restarts without deletion repos.bleve don't give any results.

@vvrein
Copy link

vvrein commented Jan 25, 2020

@FanyangMengDev can you check now with latest gitea binary from https://dl.gitea.io/gitea/master/ ? It seems to be fixed in #9946

@zeripath
Copy link
Contributor

as per @vvrein I'm gonna close this as Fixed by #9965 and #9957

Please reopen if this remains an issue.

@MFYDev
Copy link
Author

MFYDev commented Jan 25, 2020

@vvrein Hi there, this is the first time that I see the master version release on this official website.
Now I am using 1.11-rc2 and the problem happenes, if I change to the master version, will it have some impact on my future use? If it will not cause any problem I could have a try for the newest version, cause I use gitea in my production VPS, really do not wanna get any trouble

@MFYDev
Copy link
Author

MFYDev commented Jan 25, 2020

I just install the dev version. All the pages become display unproperly. the login button becomes disappear and all the things cannot load normally. It scares me a lot and now I am switch back to 1.11-rc2

@MFYDev
Copy link
Author

MFYDev commented Jan 25, 2020

@zeripath If it is possible please reopen this issue, cause I cannot even find where is the import button when I change it from 1.11-rc2 to 1.12 dev under that cluttered page

@guillep2k
Copy link
Member

@FanyangMengDev master is the latest, unpolished work... we're building 1.12.0 there. In a few days 1.11.0 will come out (or perhaps 1.11.rc3?). That will be much more stable and will contain the fixes from #9965 and #9957.

@MFYDev
Copy link
Author

MFYDev commented Jan 25, 2020

@guillep2k Thank you so much for your reply. I see now. Looking forward to the next version, and I just donate 1 dollar to you guys on PayPal. Please understand as a undergraduate student 1 dollar per month is the most money I can donate cause I do not have so much money every month.
Thank you for your hard working again! : )

@zeripath
Copy link
Contributor

We've still got an issue with our translations in master - I'm not sure why they haven't updated since we attempted to fix this.

@zeripath
Copy link
Contributor

@FanyangMengDev try the release/v1.11 branch - as that will become 1.11-rc3 or 1.11 soon.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants