Questions tagged [gogs]

Gogs is a self-hosted git service written in go.

-1
votes
0answers
10 views

What am I missing re. Jenkins SCM polling?

I have set up a couple of docker containers with an experimental CI pipeline (i.e. git (or actually gogs), jenkins, portainer, plus a postgres DB). For my first project I have defined a build ...
0
votes
1answer
19 views

Cannot checkout in jenkins from neighbor gogs container via Java plugin hudson.plugins.git

Simple CICD using gogs/jenkins docker container running on an ubuntu host: When I try to fetch my git repo from the gogs container I get this error: git fetch --tags --progress http://gogs-repo:3000/...
1
vote
1answer
21 views

Secret from Gogs hook (failing to get on python3)

I'm configuring a gogs hook, I have an API that receives this POST from push e.g. secret: myS3cr3t it's supposed that " Secret will be sent as SHA256 HMAC hex digest of payload via X-Gogs-...
0
votes
1answer
38 views

error: cannot spawn hooks/pre-receive:No such file or directory,but hooks/pre-receive is exist in server-side git-repository

A project clone from my Gogs web server, then I add a file to the Git repository,and push this commit to remote, but the terminal report error about cannot spawn hooks/pre-receive:No such file or ...
0
votes
1answer
153 views

Nginx reverse proxy to Gogs

i am trying to implement a nginx server as reverse proxy for accessing my Gogs instance. Reason is i need to access my services from work, where all but standard ports are blocked. To avoid port ...
1
vote
0answers
45 views

Allow access to personnal git server (gogs) on dockerized ubuntu

I just set up an ubuntu server in a docker, and installed gogs on it. Everything seemed to work fine: I can access gogs via firefox without any problem, create repos or add files, but when I try to ...
1
vote
1answer
197 views

Import whole repo from gogs to gitlab server

I have task to migrate whole repository from our Gogs server to newly installed Gitlab server! Before considering to forget my repositories history (comments, issues, etc...), do one know of a way to ...
1
vote
0answers
162 views

LibGit2Sharp SSH, Unable to exchange encryption keys

Trying to put together a sample project cloning a repository (hosted in GOGS) using SSH and am getting the following error: Failed to start SSH session: Unable to exchange encryption keys I'm on ...
0
votes
1answer
392 views

Nginx Reverse Proxy not redirecting?

Update The details in this question are getting long, but I think it narrows down to this: For some reason the host name matters to Nginx when it's trying to figure out whether to proxy the request. ...
0
votes
1answer
311 views

Could not resolve host: git

I've seen Gogs + Drone getsockopt: connection refused but I wonder whether something has changed. My docker-compose.yml git: image: gogs/gogs ports: - '8300:3000' - '443:443' ...
0
votes
1answer
436 views

Installing gogs with docker-compose

I need to install the GIT-server Gogs as a service in docker-compose. This is quite easy using: services: gogs: image: gogs/gogs:latest ports: - "10022:22" - "3000:3000" ...
0
votes
1answer
102 views

Jenkins' response is “Only push event can be accepted.”

I want to start a Jenkins as soon as a tag is pushed on Gogs. What I have already done: I installed Gogs Webhook plugin on Jenkins and configured the secret I configured webhook in Gogs to invoke ...
0
votes
1answer
180 views

mysqldump not found in jenkinsfile

When I used mysqldump command in Jenkinsfile of Gogs (git) to backup my database, I got an error in Jenkins build says that mysqldump not found, even I build first mysql container. Anyone can help ? ...
1
vote
0answers
98 views

Installing gogs persistent on minishift

I'm trying to install gogs on minishift with persistentVolumes. I did this: c:\> oc login -u system -p admin c:\> oc new-project cicd c:\> oc create -f https://raw.githubusercontent.com/...
1
vote
0answers
23 views

update git submodule when submodule is changed

i currently want to improve my workflow with git. I run a Gogs server on which there are several repos. One repo is software, the others are language files or translations. Since the translators are ...
1
vote
3answers
208 views

git push is not working in Windows

Environment client : Windows server : Gogs I'd like to push some sources to git repository. But there are some problems to push it. Error message is below : D:\workspace\excel-demo>git push -u ...
0
votes
1answer
301 views

Docker compose not mounting volume?

If I run this command the volume mounts and the container starts as expected with initialized state: docker run --name gogs --net mk1net --ip 203.0.113.3 -v gogs-data:/data -d gogs/gogs However if I ...
1
vote
1answer
1k views

Docker compose cannot start service address already in use?

For some reason docker-compose does not like the address 203.0.113.1 for the gogs container in the below configuration. Note that in the below example I have Gogs running on 203.0.113.3 which works, ...
0
votes
0answers
25 views

Installing gogs from binary

I am trying to install gogs from binary and am encountering an issue with building it. I ran these commands: go get -u github.com/gogits/gogs mkdir -p ~/services && cd ~/services git clone —...
0
votes
0answers
14 views

Gogs, git removal of remote repository but local repository exists

Unfortunately due to perfect storm of problems, a private gogs repository was erased, which contains the code base. However, various local repositories still exist. Is there anyway to get this local ...
0
votes
0answers
40 views

Customize gogs remote message on git push

I was wondering, it is possible to configure gogs to send custom messages when i create new branch? Something like message started with remote: keyword. I saw that in gitlab and would be nice to have ...
3
votes
1answer
126 views

How to define a pull request template in Gogs Server

Basically I want to define templates for issues and pull request in Gogs repositories as Github does (see here) but I have failed with total success. I tried in the following ways: Create an ...
0
votes
0answers
32 views

html/template: “repo/home” is undefined

I installed 0.11.34 and other latest versions of gogs onto my bare-metal kubernetes (v1.10.2) via $helm/incubator/gogs. Unfortunately, I am getting following error whenever I access repo from UI. ...
0
votes
0answers
78 views

Gitea/Gogs: ERR_INCOMPLETE_CHUNKED_ENCODING in subdirectory with docker and reverse proxy

I am running gitea (Version: 1.1.0) in a docker-container (/data mounted to my filesystem to /data/gitea) on a raspberry pi 3. I use nginx (also on docker) as a reverse proxy to let gitea run in a ...
0
votes
1answer
115 views

Gogs.io running on subdomain with port

I'm trying to run Gogs.io on an apache webserver along with a standard website, and I'm trying to have Gogs.io used on a subdomain rather than using my standard domain with a port. Gogs.io runs on ...
0
votes
2answers
582 views

“error: pathspec '…' did not match any file(s) known to git” on bare repository

Set up Local normal repository (git init), git version 2.17.0.windows.1 Bare repository (git init --bare) on a separate server git version 2.7.4 Gogs as a UI to the bare repository Problem This has ...
0
votes
0answers
33 views

Gogs access repository files to use lftp in an hook

I'm using gogs as a git server on a Raspberry. I'd like to create a post-receive git hook to upload changes on my remote server (which I can access only via FTP). I think I can use lftp but the thing ...
0
votes
1answer
234 views

Error while trying to connect MySQL and Gogs containers with docker

On this screens you can see the error that I have screen1 screen2 This is my docker-compose.yml version: '3' services: mysql: image: mysql:latest restart: always ports: - ...
-1
votes
1answer
182 views

http auth does not work with TortoiseGit

Every time I try to clone any repo with TortoiseGit from our remote gogs repo I get 401 (Unauthorized). Using http://user:[email protected]/user/repo.git as checkout url does not work either. ssh is ...
0
votes
0answers
70 views

Gogs on Nginx in subdomain is not working

I have some Problems with gogs and nginx in my local-Network. everytime i write "domainname" i mean the hostname of the server I have little Server running with Openmediavault on it (for NAS) and i ...
0
votes
0answers
148 views

401 error on push to Gogs Git with public repository

a Push to a remote will throw exception if repository is public. Same code will work if repository is private. The second call will also throw 401 error. Push with commandline or Sourcetree is ...
1
vote
1answer
84 views

Web development structure on multiple devices

I have a question regarding web development. (I mostly make Drupal websites) I've been trying to figure this out but I just can't find the best workflow. I will explain my issues: I have a laptop (...
0
votes
1answer
144 views

Gogs error - Public key content has been used

I'm unable to add the public key in my gogs account. only one user of my team could add the key and for him all functionalities are working fine. Anyone else is unable to add key, we have tried to add ...
0
votes
1answer
254 views

Jenkins: Get playload from gogs webhook

I have a generic job that build docker image. And I want to call him with webhook with all my docker repositories. I'm using Gogs plugin. But I can't figured out how to gather the playload send by ...
3
votes
2answers
40 views

git subfolder missing on push

I've some problem with Git, I'm unable to push all subfolder with a single push command I have a project directory as below: project | |--main | |__dir1 | | |...
1
vote
1answer
704 views

drone “Insufficient privileges to use privileged mode”

i had write a .drone.yml in my gogs git repository. but when i push the git change , drone web tell me Insufficient privileges to use privileged mode. how can i fix it? this is my .drone.yml: ...
0
votes
0answers
53 views

Manage same repository with both Gitlab and Gogs

Let's assume I have a repository created using gitlab community edition (hosted on my server) and now, I want to be able to interact with the same repository also using Gogs (https://gogs.io) How ...
0
votes
1answer
745 views

Trigger Jenkins from gogs webhook with param

I have a webook url http://jenskinsserver/gogs-webhook/?job=build which will trigger the jenkins job on any event from gogs. Now i want to trigger a parameterized job and i want the param to be sent ...
1
vote
1answer
177 views

How to setup Gogs as a local github cache for “go get”

I have a Gogs server setup and running with PostgreSQL. I have also mirrored a public repo from github by using the Gogs web interface. Now I'm wondering can I make the commandline go get use the ...
0
votes
2answers
665 views

Docker gogs connection is refused by mysql container

I have some trouble with setting my local git repository. I am new to docker, so the problem may be naive but I still can't find it. So my idea is: I wanted to create a container with gogs (gogs/...
3
votes
0answers
383 views

How to import local bare repo to Gogs?

I have a few bare Git repos on a host. Later I installed Gogs on same host. I configured it to use the exact same folder for storing repositories, where my bare repos are already residing. How can I ...
0
votes
1answer
391 views

Tagging in gogs not triggering build with drone.io

I'm using drone 0.8.1 with gogs. When I commit to master a build is triggered. When I tag the repo in gogs, no build is triggered and no docker image built like I would expect. Here is my .drone.yml ...
-2
votes
2answers
94 views

go get for server with no internet access

Our server can not connect to the Internet because of security lock down. To be able to use GO with 3rd party modules, I see that we have to options 1) Our laptops can connect to the internet. Is it ...
2
votes
1answer
134 views

Gogs installation Error

Environment OS : Centos7 Panel : VestaCP (Nginx). Domain : my.exgitrepo.com(locally) IP : 192.168.1.13(locally) User: admin In my /home/admin/my.exgitrepo.com/public_html/ i downloaded gogs binary,...
1
vote
2answers
639 views

Gogs throws a “Permission denied” error when I delete public key file from client

I just installed Gogs (Go Git Server) on a Raspberry Pi3 using the offical gogs/gogs-rpi docker image, which I run as suggested : docker run --name=gogs -p 10022:22 -p 10080:3000 -v /var/gogs:/data ...
1
vote
1answer
1k views

“fatal: could not read Username for 'https://XXX': No such device or address” with drone.io and Gogs

I want to use drone.io and gogs in order to have some CI features in my environment. The documentation of drone.io (http://docs.drone.io/) is not up-to-date, and I had to dig a lot in order to launch ...
0
votes
1answer
280 views

automatically remote deploy from gogs inside docker

We have a gogs server installed with docker in machine gitbase. Also, we have a frontend server as web server. What I want to do is to write code in my local machine, push to gitbase. And then ...
2
votes
1answer
33 views

Renew Gogs SSH Key via file replace?

I'm running the docker version of gogs. It is currently working with my SSH key and I want to refresh this key. Is it possible for me to copy the new key I generated into the docker data volume that ...
0
votes
1answer
650 views

Enable Letsencrypt in Debian 9 with Nginx for Gogs

I just installed Gogs on a VPS with the help of the tuto (https://gogs.io/docs/installation/install_from_source). I have a sub domain to reach my gogs instance: git.mydomainname.com and it works: http:...
1
vote
0answers
76 views

Go local imports with CI

I understand Go is pretty opinionated about local import paths. I have a CI/Git server set up with Gogs and Drone - lets call it ci.company.corp when requiring files locally I would write something ...