checkCitationFile() [E] GetBlobContent: object does not exist [id: cff-version:, rel_path: ] #12107

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

Originally created by @somera on GitHub (Nov 28, 2023).

Description

When I open a specicif mirror I get this

==> gitea.log <==
2023/11/28 18:21:14 ...ers/web/repo/view.go:716:checkCitationFile() [E] GetBlobContent: object does not exist [id: cff-version:, rel_path: ]
        /source/routers/web/repo/view.go:716 (0x256dd25)
        /source/routers/web/repo/view.go:967 (0x256f8f3)
        /source/routers/web/repo/view.go:746 (0x256dea4)
        /usr/local/go/src/reflect/value.go:596 (0x4ef806)
                Value.call: call(frametype, fn, stackArgs, uint32(frametype.Size()), uint32(abid.retOffset), uint32(frameSize), &regArgs)
        /usr/local/go/src/reflect/value.go:380 (0x4ee8d8)
                Value.Call: return v.call("Call", in)
        /source/modules/web/handler.go:166 (0x1aa451b)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:176 (0x1aa45b7)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:176 (0x1aa45b7)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:176 (0x1aa45b7)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:176 (0x1aa45b7)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:176 (0x1aa45b7)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/chain.go:31 (0x1a9b4c5)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:444 (0x1a9e419)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:176 (0x1aa45b7)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:176 (0x1aa45b7)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:176 (0x1aa45b7)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/middleware/get_head.go:37 (0x24c3d3b)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:145 (0x1aa47c3)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:176 (0x1aa45b7)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/context/context.go:222 (0x1bb822e)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:145 (0x1aa47c3)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /go/pkg/mod/gitea.com/go-chi/session@v0.0.0-20230613035928-39541325faa3/session.go:257 (0x1b11375)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:145 (0x1aa47c3)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:73 (0x1a9c0b5)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:316 (0x1a9d99a)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:444 (0x1a9e419)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:73 (0x1a9c0b5)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:316 (0x1a9d99a)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:444 (0x1a9e419)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/routing/logger_manager.go:122 (0x1a9acf8)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:145 (0x1aa47c3)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /go/pkg/mod/github.com/chi-middleware/proxy@v1.1.1/middleware.go:37 (0x24134d3)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:145 (0x1aa47c3)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/routers/common/middleware.go:45 (0x24146f2)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:145 (0x1aa47c3)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/routers/common/middleware.go:37 (0x2414278)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:145 (0x1aa47c3)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/routers/common/middleware.go:99 (0x2413835)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /source/modules/web/handler.go:145 (0x1aa47c3)
        /usr/local/go/src/net/http/server.go:2136 (0x996948)
                HandlerFunc.ServeHTTP: f(w, r)
        /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:90 (0x1a9c074)
        /source/modules/web/route.go:175 (0x1aa5dc7)
        /usr/local/go/src/net/http/server.go:2938 (0x99962d)
                serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
        /usr/local/go/src/net/http/server.go:2009 (0x995513)
                (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
        /usr/local/go/src/runtime/asm_amd64.s:1650 (0x473ca0)
                goexit: BYTE    $0x90   // NOP

I can reimport the mirror. But there is a bug.

Gitea Version

1.21.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

2.43.0

Operating System

Ubuntu 22.04.3 LTS x86_64

How are you running Gitea?

gitea-1.21.1-linux-amd64

Database

PostgreSQL

Originally created by @somera on GitHub (Nov 28, 2023). ### Description When I open a specicif mirror I get this ``` ==> gitea.log <== 2023/11/28 18:21:14 ...ers/web/repo/view.go:716:checkCitationFile() [E] GetBlobContent: object does not exist [id: cff-version:, rel_path: ] /source/routers/web/repo/view.go:716 (0x256dd25) /source/routers/web/repo/view.go:967 (0x256f8f3) /source/routers/web/repo/view.go:746 (0x256dea4) /usr/local/go/src/reflect/value.go:596 (0x4ef806) Value.call: call(frametype, fn, stackArgs, uint32(frametype.Size()), uint32(abid.retOffset), uint32(frameSize), &regArgs) /usr/local/go/src/reflect/value.go:380 (0x4ee8d8) Value.Call: return v.call("Call", in) /source/modules/web/handler.go:166 (0x1aa451b) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:176 (0x1aa45b7) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:176 (0x1aa45b7) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:176 (0x1aa45b7) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:176 (0x1aa45b7) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:176 (0x1aa45b7) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/chain.go:31 (0x1a9b4c5) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:444 (0x1a9e419) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:176 (0x1aa45b7) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:176 (0x1aa45b7) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:176 (0x1aa45b7) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/middleware/get_head.go:37 (0x24c3d3b) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:145 (0x1aa47c3) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:176 (0x1aa45b7) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/context/context.go:222 (0x1bb822e) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:145 (0x1aa47c3) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /go/pkg/mod/gitea.com/go-chi/session@v0.0.0-20230613035928-39541325faa3/session.go:257 (0x1b11375) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:145 (0x1aa47c3) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:73 (0x1a9c0b5) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:316 (0x1a9d99a) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:444 (0x1a9e419) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:73 (0x1a9c0b5) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:316 (0x1a9d99a) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:444 (0x1a9e419) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/routing/logger_manager.go:122 (0x1a9acf8) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:145 (0x1aa47c3) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /go/pkg/mod/github.com/chi-middleware/proxy@v1.1.1/middleware.go:37 (0x24134d3) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:145 (0x1aa47c3) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/routers/common/middleware.go:45 (0x24146f2) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:145 (0x1aa47c3) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/routers/common/middleware.go:37 (0x2414278) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:145 (0x1aa47c3) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/routers/common/middleware.go:99 (0x2413835) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /source/modules/web/handler.go:145 (0x1aa47c3) /usr/local/go/src/net/http/server.go:2136 (0x996948) HandlerFunc.ServeHTTP: f(w, r) /go/pkg/mod/github.com/go-chi/chi/v5@v5.0.10/mux.go:90 (0x1a9c074) /source/modules/web/route.go:175 (0x1aa5dc7) /usr/local/go/src/net/http/server.go:2938 (0x99962d) serverHandler.ServeHTTP: handler.ServeHTTP(rw, req) /usr/local/go/src/net/http/server.go:2009 (0x995513) (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req) /usr/local/go/src/runtime/asm_amd64.s:1650 (0x473ca0) goexit: BYTE $0x90 // NOP ``` I can reimport the mirror. But there is a bug. ### Gitea Version 1.21.1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/8334250/a4058b9b-9d55-4ee9-8723-8d804f3b428a) ### Git Version 2.43.0 ### Operating System Ubuntu 22.04.3 LTS x86_64 ### How are you running Gitea? gitea-1.21.1-linux-amd64 ### Database PostgreSQL
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 09:58:34 -06:00
Author
Owner

@somera commented on GitHub (Nov 28, 2023):

This bug should not crash whole UI.

This
image
is not workin.

I can ship to start page with
image

@somera commented on GitHub (Nov 28, 2023): This bug should not crash whole UI. This ![image](https://github.com/go-gitea/gitea/assets/8334250/9b63083d-4a84-4452-883c-a1a7c1e084e1) is not workin. I can ship to start page with ![image](https://github.com/go-gitea/gitea/assets/8334250/21564f8d-cb95-40fa-8088-c5e2a8b80618)
Author
Owner

@yp05327 commented on GitHub (Dec 1, 2023):

Is that mirror private? If it is public, can you provide the URL?
And did you meet some failures or errors during mirroring that repo?

A strange thing is that object not found log said the id (of this object?) is cff-version:
which should be the content of that object I think.

@yp05327 commented on GitHub (Dec 1, 2023): Is that mirror private? If it is public, can you provide the URL? And did you meet some failures or errors during mirroring that repo? A strange thing is that `object not found` log said the id (of this object?) is `cff-version:` which should be the content of that object I think.
Author
Owner

@somera commented on GitHub (Dec 1, 2023):

This was https://github.com/alibaba/GraphScope I mirrored it again and it works fine. I would say something goes wrong in 1.21.x gitea version. Cause it worked with 1.20.x.

@somera commented on GitHub (Dec 1, 2023): This was `https://github.com/alibaba/GraphScope` I mirrored it again and it works fine. I would say something goes wrong in 1.21.x gitea version. Cause it worked with 1.20.x.
Author
Owner

@yp05327 commented on GitHub (Dec 1, 2023):

Ok, I got 500 in gitea.com too.
image
https://gitea.com/yp05327/GraphScope

@yp05327 commented on GitHub (Dec 1, 2023): Ok, I got 500 in gitea.com too. ![image](https://github.com/go-gitea/gitea/assets/18380374/e0920e26-6a21-4a33-99be-c8c3d1bda069) https://gitea.com/yp05327/GraphScope
Author
Owner

@somera commented on GitHub (Dec 1, 2023):

I imported it on https://try.gitea.io/ and there was no 500.

@somera commented on GitHub (Dec 1, 2023): I imported it on https://try.gitea.io/ and there was no 500.
Author
Owner

@yp05327 commented on GitHub (Dec 1, 2023):

I can randomly access without any error in my local.
So the git files are mirrored correctly, maybe there are some logic problems when reading them.

@yp05327 commented on GitHub (Dec 1, 2023): I can randomly access without any error in my local. So the git files are mirrored correctly, maybe there are some logic problems when reading them.
Author
Owner

@yp05327 commented on GitHub (Dec 1, 2023):

I think this is caused by #27958.
I didn't completely remove all unnecessary codes.

@yp05327 commented on GitHub (Dec 1, 2023): I think this is caused by #27958. I didn't completely remove all unnecessary codes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12107