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

How to deloy it offline, start up fail. could not populate plugins | error=could not download remote zip: could not get zip from url: Get "https://github.com/bradrydzewski/plugins/archive/refs/heads/master.zip": unexpected EOF #3482

Open
Innei opened this issue Mar 6, 2024 · 4 comments
Labels

Comments

@Innei
Copy link

Innei commented Mar 6, 2024

Hello,

I can't start service in an offline environment.

2024-03-06T07:28:50.833937727Z INF No valid profiler so skipping profiling [''] 
2024-03-06T07:28:50.841591811Z INF Completed setup of system service 'gitness' (id: 1). 
2024-03-06T07:28:50.841789273Z INF Completed setup of pipeline service 'pipeline' (id: 2). 
2024-03-06T07:28:50.841829845Z INF server started | port=80 revision= repository= version=0.0.1
2024-03-06T07:28:50.845367384Z ERR could not populate plugins | error=could not download remote zip: could not get zip from url: Get "https://github.com/bradrydzewski/plugins/archive/refs/heads/master.zip": unexpected EOF

May be this related issue is outdated. #1572

@jimsheldon
Copy link
Contributor

That file provides the plugins available to Gitness pipelines. You could host that file in a different location with the GITNESS_CI_PLUGINS_ZIP_URL variable, see https://github.com/harness/gitness/blob/v3.0.0-beta.6/types/config.go#L138-L141

@johannesHarness
Copy link
Collaborator

@Innei just following up on this. Did the environment variable mentioned by @jimsheldon above solve your problem?

@Innei
Copy link
Author

Innei commented May 4, 2024

Sorry, I haven't related this information lately, so I didn't follow up in time, I'll try to

@Innei
Copy link
Author

Innei commented May 4, 2024

Maybe not work, I add env in docker-compose file like this.

name: gitness
services:
    gitness:
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
            - ./gitness:/data
        container_name: gitness
        restart: always
        image: harness/gitness:latest
        environment:
          - GITNESS_HTTP_PORT=80
          - GITNESS_URL_BASE=http://git.innei.in
          - GITNESS_USER_SIGNUP_ENABLED=false
          - GITNESS_CI_PLUGINS_ZIP_URL=https://ghproxy.org/https://github.com/bradrydzewski/plugins/archive/refs/heads/master.zip # Add this

But still got an error, download file from github

{"level":"error","error":"could not download remote zip: could not get zip from url: Get \"https://github.com/bradrydzewski/plugins/archive/refs/heads/master.zip\": unexpected EOF","time":"2024-05-04T11:10:15.12901532Z","message":"could not populate plugins"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants