Dashboard does not show repositories for user #1670

Closed
opened 2025-11-02 04:09:02 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @adilinden on GitHub (Apr 3, 2018).

  • Gitea version (or commit ref): 1.4.0 installed from binary d/l
  • Git version: 2.11.0
  • Operating system: Debian 9 amd 64
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I have several organizations with repos and a user with repos. On Dashboard page the organization repos show up properly, but the personal repo count is '0', although there are several repos present.

I created private repo on try.gitea.io. When I go to dashboard it properly shows one repo in Dashboard.

Is this a bug in 1.4.0 or some issue with my settings or install?

screen shot 2018-04-03 at 12 35 29 am screen shot 2018-04-03 at 12 35 19 am screen shot 2018-04-03 at 12 35 00 am

...

Screenshots

Originally created by @adilinden on GitHub (Apr 3, 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.0 installed from binary d/l - Git version: 2.11.0 - Operating system: Debian 9 amd 64 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - [ ] Not relevant - Log gist: ## Description I have several organizations with repos and a user with repos. On Dashboard page the organization repos show up properly, but the personal repo count is '0', although there are several repos present. I created private repo on try.gitea.io. When I go to dashboard it properly shows one repo in Dashboard. Is this a bug in 1.4.0 or some issue with my settings or install? <img width="1017" alt="screen shot 2018-04-03 at 12 35 29 am" src="https://user-images.githubusercontent.com/1149715/38231223-427aa910-36d7-11e8-95eb-3ce5c8caed4a.png"> <img width="1024" alt="screen shot 2018-04-03 at 12 35 19 am" src="https://user-images.githubusercontent.com/1149715/38231224-428d91c4-36d7-11e8-8d22-f9a06c8648e4.png"> <img width="400" alt="screen shot 2018-04-03 at 12 35 00 am" src="https://user-images.githubusercontent.com/1149715/38231225-429cc2c0-36d7-11e8-894e-400b8c41b690.png"> ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
Author
Owner

@adilinden commented on GitHub (Apr 3, 2018):

I built gitea commit d877bf7e, now reports as Gitea Version: 1.1.0+1126-gd877bf7e, and issue remains the same. That's the same commit as try.gitea.io reports.

@adilinden commented on GitHub (Apr 3, 2018): I built gitea commit d877bf7e, now reports as Gitea Version: 1.1.0+1126-gd877bf7e, and issue remains the same. That's the same commit as try.gitea.io reports.
Author
Owner

@adilinden commented on GitHub (Apr 5, 2018):

I wiped the install and started all over. All is working now. No idea why or what was going on. I didn't do anything that deviated from instructions. My setting with (app.ini) with the new install are identical. So I really don't know.

This can be files as "cannot be reproduced" and this issue can be closed.

@adilinden commented on GitHub (Apr 5, 2018): I wiped the install and started all over. All is working now. No idea why or what was going on. I didn't do anything that deviated from instructions. My setting with (app.ini) with the new install are identical. So I really don't know. This can be files as "cannot be reproduced" and this issue can be closed.
Author
Owner

@adilinden commented on GitHub (Apr 5, 2018):

Sorry, there's a bug! Tuesday night installed Gitea. Wednesday created 1 user and 7 organizations. Migrated 49 repositories to Gitea. There are 24 mirrors (GitHub) and 25 standard repositories.

This morning my list of repos is 0. Because I organized repos into groups utilizing organizations (this is personal hosting) the "Dashboard" in invaluable in seeing and finding repos that I am looking for. I didn't take screenshot last night. But as I added each repo the Dashboard repo count increased appropriately and the list was populated. This morning the list is gone.

Screenshots attached.
screen shot 2018-04-05 at 9 07 49 am
screen shot 2018-04-05 at 9 08 03 am

@adilinden commented on GitHub (Apr 5, 2018): Sorry, there's a bug! Tuesday night installed Gitea. Wednesday created 1 user and 7 organizations. Migrated 49 repositories to Gitea. There are 24 mirrors (GitHub) and 25 standard repositories. This morning my list of repos is 0. Because I organized repos into groups utilizing organizations (this is personal hosting) the "Dashboard" in invaluable in seeing and finding repos that I am looking for. I didn't take screenshot last night. But as I added each repo the Dashboard repo count increased appropriately and the list was populated. This morning the list is gone. Screenshots attached. <img width="422" alt="screen shot 2018-04-05 at 9 07 49 am" src="https://user-images.githubusercontent.com/1149715/38371039-1e01bd36-38b1-11e8-8997-4f155c68c6b4.png"> <img width="417" alt="screen shot 2018-04-05 at 9 08 03 am" src="https://user-images.githubusercontent.com/1149715/38371042-2199914e-38b1-11e8-8a29-9598104cb782.png">
Author
Owner

@Morlinest commented on GitHub (Apr 5, 2018):

@adilinden Hi.

  1. Can you open any "missing" repo?
  2. Do you see your repos in "Explore" page?
  3. Any logs from gitea?
  4. How you run gitea (docker container or directly)?
  5. Can you check response of "repo widget" api call (F12 -> "network" tab -> "search?uid=.....") in your browser?
@Morlinest commented on GitHub (Apr 5, 2018): @adilinden Hi. 1. Can you open any "missing" repo? 1. Do you see your repos in "Explore" page? 1. Any logs from gitea? 1. How you run gitea (docker container or directly)? 1. Can you check response of "repo widget" api call (F12 -> "network" tab -> "search?uid=.....") in your browser?
Author
Owner

@adilinden commented on GitHub (Apr 5, 2018):

Hi @Morlinest,

Yes, everything is there. I run Gitea directly. But on my firewall I run haproxy as the port is used for multiple different backend servers. On the Gitea server itself I run nginx as a reverse proxy to provide SSL with Gitea bound to localhost:3000 only.

Having me look at api call lead me to identify the source of the issue. On the haproxy I have /api directed to the wrong backend, resulting in /api not being available from the outside. When accessed from my local network, directly accessing nginx without haproxy, all is fine.

That solves this mystery - my confusion resulted from me accessing the server from different location. Plus as I am a frequent user of VPN for remote access, whether VPN was engaged also changed the behaviour....

Perhaps this allows me to dig into the next quest I am on, extending the repositories list to more then 15 repos. I'd like to see all repos that a user has access to in a single list, across all orgs and users. I see that the widget call to the api included a limit of 15.

That resolves this!

Thanks,
Adi

@adilinden commented on GitHub (Apr 5, 2018): Hi @Morlinest, Yes, everything is there. I run Gitea directly. But on my firewall I run haproxy as the port is used for multiple different backend servers. On the Gitea server itself I run nginx as a reverse proxy to provide SSL with Gitea bound to localhost:3000 only. Having me look at api call lead me to identify the source of the issue. On the haproxy I have /api directed to the wrong backend, resulting in /api not being available from the outside. When accessed from my local network, directly accessing nginx without haproxy, all is fine. That solves this mystery - my confusion resulted from me accessing the server from different location. Plus as I am a frequent user of VPN for remote access, whether VPN was engaged also changed the behaviour.... Perhaps this allows me to dig into the next quest I am on, extending the repositories list to more then 15 repos. I'd like to see all repos that a user has access to in a single list, across all orgs and users. I see that the widget call to the api included a limit of 15. That resolves this! Thanks, Adi
Author
Owner

@Morlinest commented on GitHub (Apr 6, 2018):

@adilinden Great you found the problem and solved it :).

Right now, to increase number of searched repos you can

  • set setting.UI.User.RepoPagingNum in app.ini (probably best way, but can affect another pages too)
  • or create own template templates/base/head.tmpl and change <meta name="_search_limit" content="{{.SearchLimit}}" /> (e.g. <meta name="_search_limit" content="100" />).
  • or create own template templates/user/dashboard/dashboard.tmpl with custom :search-limit="searchLimit" (e.g. :search-limit=100).

Edit: Or you can rewrite <meta name="_search_limit" content="100" /> on your proxy :D

@Morlinest commented on GitHub (Apr 6, 2018): @adilinden Great you found the problem and solved it :). Right now, to increase number of searched repos you can - set `setting.UI.User.RepoPagingNum` in _app.ini_ (probably best way, but can affect another pages too) - or create own template _templates/base/head.tmpl_ and change `<meta name="_search_limit" content="{{.SearchLimit}}" />` (e.g. `<meta name="_search_limit" content="100" />`). - or create own template _templates/user/dashboard/dashboard.tmpl_ with custom `:search-limit="searchLimit"` (e.g. `:search-limit=100`). Edit: Or you can rewrite `<meta name="_search_limit" content="100" />` on your proxy :D
Author
Owner

@Morlinest commented on GitHub (Apr 7, 2018):

I think this issue can be closed as problem was solved and it was not gitea related problem anyway.

@Morlinest commented on GitHub (Apr 7, 2018): I think this issue can be closed as problem was solved and it was not gitea related problem anyway.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1670