profile
viewpoint
Chris Lee clee Panasonic North America Denver https://c133.org/ Open-source hacker & custom keyboard enthusiast

cbiffle/pushr-for-android 5

[obsolete] Simple, easy way to push photos to Flickr from your Android-powered phone. Based loosely on the iPhone program of the same name.

clee/channon 3

A really simple continuous integration system

clee/crankshaft 3

REST API on top of node-maildir (using express)

clee/arborealize 2

Creates an HTML5+CSS3 page with recursive directory contents.

clee/dna 2

My genome

clee/boilerplate 1

Simple flask app to test deployment scripts

clee/clee.github.io 1

My github pages repo

airencracken/gobbs 0

A Go BBS, gobbs

clee/50mm 0

Create minimal HTML5 image galleries from S3 buckets.

clee/agealyzer-rust 0

Rust implementation of my agealyzer tool

issue closedgo-gitea/gitea

Overview and Favourites returns 500 error

<!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue -->

<!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) 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: 1.14.0+dev-293-g4f5ff1ef0
  • Git version: 2.25.1
  • Operating system:
    • Ubuntu 20.04 on VPS
    • started and run by docker-compose
  • Database:
    • [X] PostgreSQL
    • [ ] MySQL
    • [ ] MSSQL
    • [ ] SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • [ ] Yes (provide example URL)
    • [X] No
  • Log gist: 2020/12/02 12:39:14 routers/user/home.go:120:Dashboard() [E] GetUserHeatmapDataByUser: pq: function strftime(unknown, bigint, unknown) does not exist

Description

When I click on "Overview" or on "User->Favourites" I get a 500 Error and nothing else is displayed. So in fact I cannot see the repositories I created, but they are there ^^ When I visit "User->Settings->Repositories" I can select and view them.

The above error message comes from the container log and is the same in both cases.

Screenshots

<!-- If this issue involves the Web Interface, please include a screenshot --> grafik

closed time in 2 minutes

vonAlenberg

issue commentgo-gitea/gitea

Overview and Favourites returns 500 error

Okay, nevermind - now it works.

I have absolutely no idea why.

vonAlenberg

comment created time in 2 minutes

issue commentgo-gitea/gitea

[Feature] Show matching icons based on the file type

@SuperSandro2000 I would actually prefer something flat: https://github.com/PKief/vscode-material-icon-theme

Maybe we should choose something even more minimal.

UnlimitedCookies

comment created time in 4 minutes

issue commentgo-gitea/gitea

[Proposal][Discuss] Gitea Cluster

I would fokus on tasks since git data via shared-storage work quite well at the moment

lunny

comment created time in 11 minutes

issue openedgo-gitea/gitea

Automatic OIDC login

<!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue -->

<!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) 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.12.4
  • Git version: 2.28.0
  • Operating system: FreeBSD <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using -->
  • Database (use [x]):
    • [ ] PostgreSQL
    • [ ] MySQL
    • [ ] MSSQL
    • [x] SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • [ ] Yes (provide example URL)
    • [x] No
  • Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set RUN_MODE=dev at the top of app.ini -->

Description

Hello,

I have setup a gitea instance on my server and successfully added my OIDC provider. However, I would like to make so that users are automatically redirected to the OIDC provider if not authenticated, without having to click the "OpenID Connect" button.

I did not find any setting to do so or any mention in the documentation. Is it possible? If not, could it be considered for implementation?

created time in 12 minutes

issue commentgo-gitea/gitea

[Proposal][Discuss] Gitea Cluster

Some kind of git storage layer would be needed imho (something like gitlab has)

lunny

comment created time in 20 minutes

issue openedgo-gitea/gitea

GIT sha256 support

SHA256 support comes in git-2.29, test deployment on codeberg-test does not work. Steps to reproduce:

git init --object-format=sha256
touch test
git add test
git commit -m "test"
git remote add origin git@codeberg.org:reinerh/test.git
git push -u origin main

Error: fatal: Protokollfehler: unerwartetes capabilities^{}

gitea version: 1.14.0+dev-294-g594cc4aa2

created time in 24 minutes

pull request commentgo-gitea/gitea

Migrations: Use Process Manager to create own Context

:rocket:

6543

comment created time in 31 minutes

issue commentgo-gitea/gitea

Overview and Favourites returns 500 error

You should restart the container if you change the dialect. i didn't change the dialect at all, was like this from the start.

APP_NAME = Code © 
RUN_MODE = prod
RUN_USER = root

[repository]
ROOT = /data/git/repositories

[repository.local]
LOCAL_COPY_PATH = /data/gitea/tmp/local-repo

[repository.upload]
TEMP_PATH = /data/gitea/uploads

[server]
APP_DATA_PATH    = /data/gitea
DOMAIN           = git.*****
SSH_DOMAIN       = git.*****
HTTP_PORT        = 3000
ROOT_URL         = https://git.*****/
DISABLE_SSH      = false
SSH_PORT         = 22
SSH_LISTEN_PORT  = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = /data/git/lfs
LFS_JWT_SECRET   = *****
OFFLINE_MODE     = false

[database]
PATH     = /data/gitea/gitea.db
DB_TYPE  = postgres
HOST     = db
NAME     = gitea
USER     = gitea
PASSWD   = *****
LOG_SQL  = false
SCHEMA   = 
SSL_MODE = disable
CHARSET  = utf8

[indexer]
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve

[session]
PROVIDER_CONFIG = /data/gitea/sessions
PROVIDER        = file

[picture]
AVATAR_UPLOAD_PATH            = /data/gitea/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
DISABLE_GRAVATAR              = false
ENABLE_FEDERATED_AVATAR       = true

[attachment]
PATH = /data/gitea/attachments

[log]
MODE                 = console
LEVEL                = info
REDIRECT_MACARON_LOG = true
MACARON              = console
ROUTER               = console
ROOT_PATH            = /data/gitea/log

[security]
INSTALL_LOCK   = true
SECRET_KEY     = *****
INTERNAL_TOKEN = *****

[service]
DISABLE_REGISTRATION              = false
REQUIRE_SIGNIN_VIEW               = false
REGISTER_EMAIL_CONFIRM            = false
ENABLE_NOTIFY_MAIL                = false
ALLOW_ONLY_EXTERNAL_REGISTRATION  = false
ENABLE_CAPTCHA                    = false
DEFAULT_KEEP_EMAIL_PRIVATE        = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ENABLE_TIMETRACKING       = false
NO_REPLY_ADDRESS                  = 

[oauth2]
JWT_SECRET = *****

[mailer]
ENABLED = false

[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false

needs to unset the other values. Well, it is a fresh install, so there should not be any values to reset...

PS I run gitea behind a Traefik v2 reverse proxy, but I don't think that's the cause of the issue.

vonAlenberg

comment created time in 39 minutes

issue commentgo-gitea/gitea

There is no result for "Mirrors"

Gitea 1.13.0 still same problem.

somera

comment created time in an hour

issue commentgo-gitea/gitea

There is no result for "Mirrors"

Gitea 1.12.6 still same problem.

somera

comment created time in an hour

pull request commentgo-gitea/gitea

Migrations: Use Process Manager to create own Context

Codecov Report

Merging #13792 (2a0ab2d) into master (fd1c351) will decrease coverage by 0.10%. The diff coverage is 84.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13792      +/-   ##
==========================================
- Coverage   42.24%   42.13%   -0.11%     
==========================================
  Files         707      707              
  Lines       77123    77130       +7     
==========================================
- Hits        32577    32500      -77     
- Misses      39181    39288     +107     
+ Partials     5365     5342      -23     
Impacted Files Coverage Δ
modules/git/git.go 40.00% <ø> (ø)
modules/repository/repo.go 43.31% <66.66%> (ø)
modules/task/migrate.go 31.42% <80.00%> (+5.27%) :arrow_up:
modules/git/repo.go 46.23% <100.00%> (+1.05%) :arrow_up:
modules/migrations/gitea_uploader.go 6.72% <100.00%> (ø)
models/issue_comment.go 43.50% <0.00%> (-9.22%) :arrow_down:
modules/notification/ui/ui.go 84.72% <0.00%> (-8.34%) :arrow_down:
modules/notification/mail/mail.go 33.33% <0.00%> (-5.75%) :arrow_down:
modules/git/commit.go 49.67% <0.00%> (-3.95%) :arrow_down:
modules/notification/base/null.go 74.28% <0.00%> (-2.86%) :arrow_down:
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fd1c351...5a97607. Read the comment docs.

6543

comment created time in an hour

pull request commentgo-gitea/gitea

Migrations: Use Process Manager to create own Context

Backport: #13792

6543

comment created time in an hour

pull request commentgo-gitea/gitea

Make Migrations Cancelable

Blocked by #13791

Partialy moved to #13792

6543

comment created time in an hour

issue commentgo-gitea/gitea

[Proposal][Discuss] Gitea Cluster

  • for cron I propose: cron only create tasks, witch are represented in DB (like it's done with migration tasks)

  • for tasks: each instance should have a unique ID (GUID), if an instances fetch tasks from DB and alter there state by changing Status to running + adding GUID & PID into table

  • there must be some way gitea instances can speac to each other by GUID as Identifyer to:

    • send cancle/pause/continue "signals"
  • propose a hardbeat to recover & cleanup tasks of crashed gitea instances:

type Hardbeat struct {
  guid        int64
  beat        int64
  recoverGUID int64 // empty if nothing crashed 
}


on process.Manager creation start hardbeatFunc()

func hardbeatFunc() {
  for {
    x.Where(guid=getGUID()).Update(&Hardbeat{beat=unixtime.Now()})
    
    for _, crash := x.Select(guids with timeout && recoverGUID == "") {
      x.Where(crash.guid).Update(recoverGUID = getGUID())
      // make sure no other instance has taken the recover step - and 
      if !x.Exist(guid=crash.guid, recoverGUID=getGUID()) {ret error}
      
      now reset all tasks with crash.guid

    }
    
    sleep 20sec

  }
}
lunny

comment created time in an hour

push eventgo-gitea/gitea

techknowlogick

commit sha fd1c3519c3435cbd09a2c065a6eeeb48bd81644e

frontport 1.13.0 changelog (#13790)

view details

push time in an hour

PR merged go-gitea/gitea

frontport 1.13.0 changelog kind/docs lgtm/done skip-changelog

as title

+43 -2

0 comment

1 changed file

techknowlogick

pr closed time in an hour

issue openedgo-gitea/gitea

[Proposal][Discuss] Gitea Cluster

How a gitea deployment scale. Gitea cluster should resolve part of it.

Currently when running serval gitea instances which shared database, git storage. There are still something need to resolve.

  • [ ] Every gitea instance will run all the crons. It will be duplicated work and will waste cpu and disk. The ideal is the cron tasks should be splited into all the gitea instances.
  • [ ] You cannot stop the running task. Because you don't know which gitea instance is running it.
  • [ ] A shared/copied git storage is required. If every gitea instance will only store part of the repositories and when requests come, they will be routed to the right gitea instance.
  • [ ] Others.

created time in an hour

pull request commentgo-gitea/gitea

Make Migrations Cancelable

Blocked until we have a final decission on how to handle tasks & processes in a cluster

6543

comment created time in 2 hours

issue commentgo-gitea/gitea

UI Update discussion

@lafriks TBH I sometimes look normal CSS props, so I cannot see the problem with looking up the helpers. For me, it saves time to type px-4 instead of padding-right: 4px; padding-left: 4px or padding: 0 4px. It also helps with defining a design system, as px-4 doesn't actually mean 4px but a pre-defined value that you could change.

techknowlogick

comment created time in 2 hours

PR opened go-gitea/gitea

frontport 1.13.0 changelog kind/docs skip-changelog

as title

+43 -2

0 comment

1 changed file

pr created time in 2 hours

push eventgo-gitea/gitea

6543

commit sha 594cc4aa2a3494df2fbe2aa3fd8809c9436c8f99

Update Gitea Version & Fix Migration Comments (#13789) * correct migration version comments * update lates version in docs

view details

push time in 2 hours

PR merged go-gitea/gitea

Update Gitea Version & Fix Migration Comments kind/docs lgtm/done skip-changelog

as title

+18 -9

0 comment

2 changed files

6543

pr closed time in 2 hours

Pull request review commentgo-gitea/gitea

Make Migrations Cancelable

 func MigratePost(ctx *context.Context, form auth.MigrateRepoForm) {  	handleMigrateError(ctx, ctxUser, err, "MigratePost", tpl, &form) }++// CancelMigration cancels a running migration+func CancelMigration(ctx *context.Context) {+	if !ctx.Repo.IsOwner() {+		ctx.Error(http.StatusNotFound)+		return+	}++	if ctx.Repo.Repository.Status != models.RepositoryBeingMigrated {+		ctx.Error(http.StatusConflict, "repo already migrated")+		return+	}++	guid := process.GetManager().GUID()+	task, err := models.GetMigratingTask(ctx.Repo.Repository.ID)+	if err != nil {+		ctx.InternalServerError(err)+		return+	}+	if task.Status != structs.TaskStatusRunning {+		task.Status = structs.TaskStatusStopped+		task.EndTime = timeutil.TimeStampNow()+		task.RepoID = 0++		if err = task.UpdateCols("status", "repo_id", "end_time"); err != nil {+			log.Error("Task UpdateCols failed: %v", err)+		}++		if err := repo_service.DeleteRepository(ctx.User, ctx.Repo.Repository); err != nil {+			ctx.ServerError("DeleteRepository", err)+			return+		}++		ctx.Flash.Success(ctx.Tr("repo.migrate.cancelled"))+		ctx.Redirect(ctx.Repo.Owner.DashboardLink())+		return+	}++	tGUID, tPID := task.GUIDandPID()+	if guid == tGUID {+		log.Trace("Migration [%s] cancel PID [%d] ", ctx.Repo.Repository.FullName(), tPID)+		process.GetManager().Cancel(tPID)+		ctx.Flash.Success(ctx.Tr("repo.migrate.cancelled"))+		ctx.Redirect(ctx.Repo.Owner.DashboardLink())+		return+	}++	ctx.Flash.Error(ctx.Tr("repo.migrate.task_not_found", ctx.Repo.Repository.FullName()))

The user will see a migrating task, but when click cancel, gitea will say it's not exist. This is still a problem.

6543

comment created time in 2 hours

Pull request review commentgo-gitea/gitea

Make Migrations Cancelable

 func MigratePost(ctx *context.Context, form auth.MigrateRepoForm) {  	handleMigrateError(ctx, ctxUser, err, "MigratePost", tpl, &form) }++// CancelMigration cancels a running migration+func CancelMigration(ctx *context.Context) {+	if !ctx.Repo.IsOwner() {+		ctx.Error(http.StatusNotFound)+		return+	}++	if ctx.Repo.Repository.Status != models.RepositoryBeingMigrated {+		ctx.Error(http.StatusConflict, "repo already migrated")+		return+	}++	guid := process.GetManager().GUID()+	task, err := models.GetMigratingTask(ctx.Repo.Repository.ID)+	if err != nil {+		ctx.InternalServerError(err)+		return+	}+	if task.Status != structs.TaskStatusRunning {+		task.Status = structs.TaskStatusStopped+		task.EndTime = timeutil.TimeStampNow()+		task.RepoID = 0++		if err = task.UpdateCols("status", "repo_id", "end_time"); err != nil {+			log.Error("Task UpdateCols failed: %v", err)+		}++		if err := repo_service.DeleteRepository(ctx.User, ctx.Repo.Repository); err != nil {+			ctx.ServerError("DeleteRepository", err)+			return+		}++		ctx.Flash.Success(ctx.Tr("repo.migrate.cancelled"))+		ctx.Redirect(ctx.Repo.Owner.DashboardLink())+		return+	}++	tGUID, tPID := task.GUIDandPID()+	if guid == tGUID {

since task is stopped, this doesn't mather - if it will be started again after a gitea-restart, it will update those values

6543

comment created time in 2 hours

Pull request review commentgo-gitea/gitea

Make Migrations Cancelable

 func MigratePost(ctx *context.Context, form auth.MigrateRepoForm) {  	handleMigrateError(ctx, ctxUser, err, "MigratePost", tpl, &form) }++// CancelMigration cancels a running migration+func CancelMigration(ctx *context.Context) {+	if !ctx.Repo.IsOwner() {+		ctx.Error(http.StatusNotFound)+		return+	}++	if ctx.Repo.Repository.Status != models.RepositoryBeingMigrated {+		ctx.Error(http.StatusConflict, "repo already migrated")+		return+	}++	guid := process.GetManager().GUID()+	task, err := models.GetMigratingTask(ctx.Repo.Repository.ID)+	if err != nil {+		ctx.InternalServerError(err)+		return+	}+	if task.Status != structs.TaskStatusRunning {+		task.Status = structs.TaskStatusStopped+		task.EndTime = timeutil.TimeStampNow()+		task.RepoID = 0++		if err = task.UpdateCols("status", "repo_id", "end_time"); err != nil {+			log.Error("Task UpdateCols failed: %v", err)+		}++		if err := repo_service.DeleteRepository(ctx.User, ctx.Repo.Repository); err != nil {+			ctx.ServerError("DeleteRepository", err)+			return+		}++		ctx.Flash.Success(ctx.Tr("repo.migrate.cancelled"))+		ctx.Redirect(ctx.Repo.Owner.DashboardLink())+		return+	}++	tGUID, tPID := task.GUIDandPID()+	if guid == tGUID {

So once there is a running task and the gitea instance restarted. The tasks should be set stopped when the instance restarted. But since guid maybe changed, how do I know which running tasks should be stopped?

6543

comment created time in 2 hours

issue commentgo-gitea/gitea

[Feature] Show matching icons based on the file type

I think we can do it by update gitMaster which has support it in gh https://github.com/ineo6/git-master

UnlimitedCookies

comment created time in 3 hours

more