gogs

gogs

A painless self-hosted Git service

Member Since 7 years ago

Wildest Dream

Experience Points
0
follower
Lessons Completed
0
follow
Best Reply Awards
16
repos
Activity
Jan
20
3 days ago
pull request

unknwon pull request gogs/gogs

unknwon
unknwon

docker: delete Dockerfile.rpi

Describe the pull request

No need to keep separate file since we have started using multi-arch build, which includes the ARMv7 version.

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.
pull request

unknwon pull request gogs/gogs

unknwon
unknwon

docker: delete Dockerfile.rpi

Describe the pull request

No need to keep separate file since we have started using multi-arch build.

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.
Activity icon
created branch

unknwon in gogs/gogs create branch jc/delete-Dockerfile-rpi

createdAt 2 days ago
Activity icon
created branch

unknwon in gogs/gogs create branch jc/docker-healthcheck

createdAt 2 days ago
push

unknwon push gogs/gogs

unknwon
unknwon

docs: delete and re-create Docker manifest for release (#6739)

[skip ci]

commit sha: 82e5fd018b2cfdcbc9573a55b2f6215b33c0db76

push time in 2 days ago
pull request

unknwon pull request gogs/gogs

unknwon
unknwon

docs: delete and re-create Docker manifest for release

Describe the pull request

The --amend flag is not doing what we expect, we should instead always create a brand new manifest.

Link to the issue: https://github.com/gogs/gogs/issues/6737

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.
Activity icon
delete

unknwon in gogs/gogs delete branch jc/release-docker-manifest

deleted time in 2 days ago
pull request

unknwon pull request gogs/gogs

unknwon
unknwon

docs: delete and re-create Docker manifest for release

Describe the pull request

The --amend flag is not doing what we expect, we should instead always create a brand new manifest.

Link to the issue: https://github.com/gogs/gogs/issues/6737

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.
Activity icon
created branch

unknwon in gogs/gogs create branch jc/release-docker-manifest

createdAt 2 days ago
Activity icon
issue

unknwon issue gogs/gogs

unknwon
unknwon

Gogs in Docker images is 0.13.0+dev

Gogs version

gogs/gogs:0.12

Git version

  • Server:
  • Client:

Operating system

Linux x86_64 Docker images

Database

doesn't matter

Describe the bug

The gogs version used in Docker images describes itself as 0.13.0+dev and not 0.12.4 what is it tagged and the latest release.

To reproduce

Expected behavior

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Activity icon
issue

unknwon issue comment gogs/gogs

unknwon
unknwon

Gogs in Docker images is 0.13.0+dev

Gogs version

gogs/gogs:0.12

Git version

  • Server:
  • Client:

Operating system

Linux x86_64 Docker images

Database

doesn't matter

Describe the bug

The gogs version used in Docker images describes itself as 0.13.0+dev and not 0.12.4 what is it tagged and the latest release.

To reproduce

Expected behavior

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
unknwon
unknwon

OK, problem found, apparently --amend isn't doing what I thought, I should docker manifest rm then create a brand new manifest. gogs/gogs:0.12 is now pulling 0.12.4 correctly, thanks again for reporting!

Activity icon
issue

unknwon issue comment gogs/gogs

unknwon
unknwon

Gogs in Docker images is 0.13.0+dev

Gogs version

gogs/gogs:0.12

Git version

  • Server:
  • Client:

Operating system

Linux x86_64 Docker images

Database

doesn't matter

Describe the bug

The gogs version used in Docker images describes itself as 0.13.0+dev and not 0.12.4 what is it tagged and the latest release.

To reproduce

Expected behavior

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
unknwon
unknwon

Appreciate the report!

I'm confused by how Docker Hub behaves... I'm following commands shown in https://github.com/gogs/gogs/blob/main/docs/dev/release/release_new_version.md#update-docker-image-tag, and if I inspect the manifest the "Ref" looks correct:

$ docker manifest inspect --verbose gogs/gogs:0.12
[
        {
                "Ref": "docker.io/gogs/gogs:0.12-amd64",
                "Descriptor": {
                        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
                        "digest": "sha256:7200e23f8c5d3ae5515472ce27b82508499b646f3745beebd7b01fbf9cfa14e6",
                        "size": 1782,
                        "platform": {
                                "architecture": "amd64",
                                "os": "linux"
                        }
                },
                "SchemaV2Manifest": {
                        "schemaVersion": 2,
                        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
                        "config": {
                                "mediaType": "application/vnd.docker.container.image.v1+json",
                                "size": 3809,
                                "digest": "sha256:6a04c8db7cccf631e5846b5f4a70871bc2d2e3eb0e1f7ca486480cd575e6e662"
                        },
                        "layers": [
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 2822981,
                                        "digest": "sha256:97518928ae5f3d52d4164b314a7e73654eb686ecd8aafa0b79acd980773a740d"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 13146755,
                                        "digest": "sha256:5e78e0dc81ce989f833e3522448903ce89be3b6a49f224068339e8f1ff7a470b"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 249,
                                        "digest": "sha256:bc075550f329bebc924eab6c834ae7e9a057143d92e25e90f68cddec6ce546eb"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 117,
                                        "digest": "sha256:2b8fb83091532b238533ef15bf42f6d2034a9507ab168d666401437aa0544224"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 7624,
                                        "digest": "sha256:44ef6d1645921fc80b803b84638f27ec1d01d7ed28924afb534676bc1894cafb"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 28850863,
                                        "digest": "sha256:691c700b629705d0a884fb52d0267b272d7a8527c14cc712692f702d1865d3d7"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 1898,
                                        "digest": "sha256:ed6d6ae8b206ce97a1222f2c23ff69ad59ee50b5d1b34e2d777464dcf9554a1e"
                                }
                        ]
                }
        },
        {
                "Ref": "docker.io/gogs/gogs:0.12-arm64",
                "Descriptor": {
                        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
                        "digest": "sha256:e2f6fd29e1f28e40f25144e6b157877af9a2b89b24346f0021841281ea0792c2",
                        "size": 1782,
                        "platform": {
                                "architecture": "arm64",
                                "os": "linux"
                        }
                },
                "SchemaV2Manifest": {
                        "schemaVersion": 2,
                        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
                        "config": {
                                "mediaType": "application/vnd.docker.container.image.v1+json",
                                "size": 3807,
                                "digest": "sha256:d751851dedc16f44dfebe903329fbde1f8c68d91c6c6d6ead8e15c64a17d9b5d"
                        },
                        "layers": [
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 2717700,
                                        "digest": "sha256:be307f383ecc62b27a29b599c3fc9d3129693a798e7fcce614f09174cfe2d354"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 13144923,
                                        "digest": "sha256:4dcdadecebde6b06468baf326d716cdbb2aed7091108565e46ded7b9329b7e00"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 249,
                                        "digest": "sha256:bc075550f329bebc924eab6c834ae7e9a057143d92e25e90f68cddec6ce546eb"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 117,
                                        "digest": "sha256:2b8fb83091532b238533ef15bf42f6d2034a9507ab168d666401437aa0544224"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 7624,
                                        "digest": "sha256:44ef6d1645921fc80b803b84638f27ec1d01d7ed28924afb534676bc1894cafb"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 27519976,
                                        "digest": "sha256:5f23e4842de8779969b43f1c02c4086bc59e3fc68a16130a1fd3b9526abea7f0"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 1897,
                                        "digest": "sha256:b7bb6984e9d64b6d16c73d30e649d1068eeec783487a6b2b8b1c287e653260e6"
                                }
                        ]
                }
        },
        {
                "Ref": "docker.io/gogs/gogs:0.12-armv7",
                "Descriptor": {
                        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
                        "digest": "sha256:dea3ab75629a009baa456cd77daf96fe449a2a74deed8409fa68a8a9d93cbaf7",
                        "size": 1782,
                        "platform": {
                                "architecture": "arm",
                                "os": "linux",
                                "variant": "v7"
                        }
                },
                "SchemaV2Manifest": {
                        "schemaVersion": 2,
                        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
                        "config": {
                                "mediaType": "application/vnd.docker.container.image.v1+json",
                                "size": 3822,
                                "digest": "sha256:ae36d8dd8b724ef489fba25f27c63194077d0786a0436ccbc9860b4b2d3ecfb6"
                        },
                        "layers": [
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 2438618,
                                        "digest": "sha256:764d2e53e1a607f2d8261522185d5b9021ade3ec1a595664ee90308c00176899"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 11649933,
                                        "digest": "sha256:7d3448add2deccc995136812fc8e3689629b90898591f009a3e84075cb24ab1e"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 249,
                                        "digest": "sha256:bc075550f329bebc924eab6c834ae7e9a057143d92e25e90f68cddec6ce546eb"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 117,
                                        "digest": "sha256:2b8fb83091532b238533ef15bf42f6d2034a9507ab168d666401437aa0544224"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 7624,
                                        "digest": "sha256:44ef6d1645921fc80b803b84638f27ec1d01d7ed28924afb534676bc1894cafb"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 27627533,
                                        "digest": "sha256:d668a5849ab90fe800ee9236d48e4cb43c22e7b77f272f0d708d0bed978337ba"
                                },
                                {
                                        "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
                                        "size": 1902,
                                        "digest": "sha256:22ac46839eed2874b1eaef28919ade6eac89f3030359fe2adebdd9de6cf92ad8"
                                }
                        ]
                }
        }
]
Activity icon
issue

unknwon issue gogs/gogs

unknwon
unknwon

邮件无法发送

Gogs version

0.13.0+dev

Git version

  • Server:
  • Client: 2.32.0

Operating system

centos 7.6

Database

sqlite3

Describe the bug

邮件功能其用不了,用的docker容器运行的 image

BRAND_NAME = Gogs RUN_USER = git RUN_MODE = prod

[database] TYPE = sqlite3 HOST = 127.0.0.1:5432 NAME = gogs SCHEMA = public USER = gogs PASSWORD = SSL_MODE = disable PATH = data/gogs.db

[repository] ROOT = /data/git/gogs-repositories

[server] DOMAIN = localhost HTTP_PORT = 3000 EXTERNAL_URL = http://localhost:3000/ DISABLE_SSH = false SSH_PORT = 22 START_SSH_SERVER = false OFFLINE_MODE = false

[mailer] ENABLED = true HOST = smtp.exmail.qq.com:465 FROM = [email protected] USER = [email protected] PASSWD = 123456

[auth] REQUIRE_EMAIL_CONFIRMATION = true DISABLE_REGISTRATION = true ENABLE_REGISTRATION_CAPTCHA = false REQUIRE_SIGNIN_VIEW = false

[user] ENABLE_EMAIL_NOTIFICATION = true

[picture] DISABLE_GRAVATAR = false ENABLE_FEDERATED_AVATAR = false

[session] PROVIDER = file

[log] MODE = file LEVEL = Info ROOT_PATH = /app/gogs/log

[security] INSTALL_LOCK = true SECRET_KEY = wEq2UVV3OSrgxqu

To reproduce

install 页面时候配置邮件发送信息

Expected behavior

正常发送邮件

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Activity icon
issue

unknwon issue comment gogs/gogs

unknwon
unknwon

邮件无法发送

Gogs version

0.13.0+dev

Git version

  • Server:
  • Client: 2.32.0

Operating system

centos 7.6

Database

sqlite3

Describe the bug

邮件功能其用不了,用的docker容器运行的 image

BRAND_NAME = Gogs RUN_USER = git RUN_MODE = prod

[database] TYPE = sqlite3 HOST = 127.0.0.1:5432 NAME = gogs SCHEMA = public USER = gogs PASSWORD = SSL_MODE = disable PATH = data/gogs.db

[repository] ROOT = /data/git/gogs-repositories

[server] DOMAIN = localhost HTTP_PORT = 3000 EXTERNAL_URL = http://localhost:3000/ DISABLE_SSH = false SSH_PORT = 22 START_SSH_SERVER = false OFFLINE_MODE = false

[mailer] ENABLED = true HOST = smtp.exmail.qq.com:465 FROM = [email protected] USER = [email protected] PASSWD = 123456

[auth] REQUIRE_EMAIL_CONFIRMATION = true DISABLE_REGISTRATION = true ENABLE_REGISTRATION_CAPTCHA = false REQUIRE_SIGNIN_VIEW = false

[user] ENABLE_EMAIL_NOTIFICATION = true

[picture] DISABLE_GRAVATAR = false ENABLE_FEDERATED_AVATAR = false

[session] PROVIDER = file

[log] MODE = file LEVEL = Info ROOT_PATH = /app/gogs/log

[security] INSTALL_LOCK = true SECRET_KEY = wEq2UVV3OSrgxqu

To reproduce

install 页面时候配置邮件发送信息

Expected behavior

正常发送邮件

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
unknwon
unknwon

Please use English :) I'll re-open once it's done.

Activity icon
issue

unknwon issue comment gogs/gogs

unknwon
unknwon

Periodic "error: kex_exchange_identification" in Docker logs

Gogs version

0.13.0+dev

Git version

  • Server: 2.32.0
  • Client: n/a

Operating system

Docker version 20.10.5+dfsg1, build 55c4c88 on Debian 11.2 (armv7l)

Database

postgresql-13.4-2

Describe the bug

Once a minute I see the following posted to logs:

Jan 16 03:25:43 sshd[124]: error: kex_exchange_identification: Connection closed by remote host
Jan 16 03:25:43 sshd[124]: Connection closed by 127.0.0.1 port 34959

ssh access works. Just curious what the errors are.

The two errors appear as if scheduled to run every 30 to 60 seconds.

To reproduce

Install gogs via Docker

Expected behavior

Expect no errors that lead you believe somebody is trying to connect to the service

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
unknwon
unknwon

Found the culprit, it is the health check:

# git diff release/0.12 main -- Dockerfile > ~/Downloads/output.diff
diff --git a/Dockerfile b/Dockerfile
index 3b46f692..6a527303 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -47,5 +47,6 @@ RUN ./docker/finalize.sh
 # Configure Docker Container
 VOLUME ["/data", "/backup"]
 EXPOSE 22 3000
+HEALTHCHECK CMD (nc -z -w 3 localhost 22 && curl -o /dev/null -sS http://localhost:3000/healthcheck) || exit 1
 ENTRYPOINT ["/app/gogs/docker/start.sh"]
 CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]
Activity icon
issue

unknwon issue comment gogs/gogs

unknwon
unknwon

Periodic "error: kex_exchange_identification" in Docker logs

Gogs version

0.13.0+dev

Git version

  • Server: 2.32.0
  • Client: n/a

Operating system

Docker version 20.10.5+dfsg1, build 55c4c88 on Debian 11.2 (armv7l)

Database

postgresql-13.4-2

Describe the bug

Once a minute I see the following posted to logs:

Jan 16 03:25:43 sshd[124]: error: kex_exchange_identification: Connection closed by remote host
Jan 16 03:25:43 sshd[124]: Connection closed by 127.0.0.1 port 34959

ssh access works. Just curious what the errors are.

The two errors appear as if scheduled to run every 30 to 60 seconds.

To reproduce

Install gogs via Docker

Expected behavior

Expect no errors that lead you believe somebody is trying to connect to the service

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
unknwon
unknwon

@tujh-rf Oh I misread your comment... just to confirm, 0.12 versions work fine totally fine, only happens with the latest tag?

Activity icon
issue

unknwon issue comment gogs/gogs

unknwon
unknwon

Periodic "error: kex_exchange_identification" in Docker logs

Gogs version

0.13.0+dev

Git version

  • Server: 2.32.0
  • Client: n/a

Operating system

Docker version 20.10.5+dfsg1, build 55c4c88 on Debian 11.2 (armv7l)

Database

postgresql-13.4-2

Describe the bug

Once a minute I see the following posted to logs:

Jan 16 03:25:43 sshd[124]: error: kex_exchange_identification: Connection closed by remote host
Jan 16 03:25:43 sshd[124]: Connection closed by 127.0.0.1 port 34959

ssh access works. Just curious what the errors are.

The two errors appear as if scheduled to run every 30 to 60 seconds.

To reproduce

Install gogs via Docker

Expected behavior

Expect no errors that lead you believe somebody is trying to connect to the service

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
unknwon
unknwon

The only suspicious change I can tell is the use of alpine:3.14 vs alpine:3.11. 🤔

# git diff v0.12.3 v0.12.4 -- Dockerfile
diff --git a/Dockerfile b/Dockerfile
index 6a409ddd..3b46f692 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:alpine3.11 AS binarybuilder
+FROM golang:alpine3.14 AS binarybuilder
 RUN apk --no-cache --no-progress add --virtual \
   build-deps \
   build-base \
@@ -7,11 +7,18 @@ RUN apk --no-cache --no-progress add --virtual \
 
 WORKDIR /gogs.io/gogs
 COPY . .
-RUN make build-no-gen TAGS="cert pam"
+RUN make build TAGS="cert pam"
 
-FROM alpine:3.11
-ADD https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 /usr/sbin/gosu
-RUN chmod +x /usr/sbin/gosu \
+FROM alpine:3.14
+RUN if [ `uname -m` == "aarch64" ] ; then \
+      export arch="arm64" ; \
+  elif [ `uname -m` == "armv7l" ] ; then \
+      export arch="armhf"; \
+  else \
+      export arch="amd64" ; \
+  fi \
+  && wget https://github.com/tianon/gosu/releases/download/1.11/gosu-$arch -O /usr/sbin/gosu \
+  && chmod +x /usr/sbin/gosu \
   && echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
   && apk --no-cache --no-progress add \
   bash \
@@ -28,7 +35,7 @@ RUN chmod +x /usr/sbin/gosu \
 
 ENV GOGS_CUSTOM /data/gogs
 
-# Configure LibC Name Service
+# Configure LibC Name Service
 COPY docker/nsswitch.conf /etc/nsswitch.conf
 
 WORKDIR /app/gogs
@@ -37,7 +44,7 @@ COPY --from=binarybuilder /gogs.io/gogs/gogs .
 
 RUN ./docker/finalize.sh
 
-# Configure Docker Container
+# Configure Docker Container
 VOLUME ["/data", "/backup"]
 EXPOSE 22 3000
 ENTRYPOINT ["/app/gogs/docker/start.sh"]
Activity icon
issue

unknwon issue comment gogs/gogs

unknwon
unknwon

Periodic "error: kex_exchange_identification" in Docker logs

Gogs version

0.13.0+dev

Git version

  • Server: 2.32.0
  • Client: n/a

Operating system

Docker version 20.10.5+dfsg1, build 55c4c88 on Debian 11.2 (armv7l)

Database

postgresql-13.4-2

Describe the bug

Once a minute I see the following posted to logs:

Jan 16 03:25:43 sshd[124]: error: kex_exchange_identification: Connection closed by remote host
Jan 16 03:25:43 sshd[124]: Connection closed by 127.0.0.1 port 34959

ssh access works. Just curious what the errors are.

The two errors appear as if scheduled to run every 30 to 60 seconds.

To reproduce

Install gogs via Docker

Expected behavior

Expect no errors that lead you believe somebody is trying to connect to the service

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
unknwon
unknwon

@tujh-rf Thanks for the info! 0.12.4 uses same Dockerfile as 0.13, so looks like we can narrow down to the diff of the file.

BTW, the original issue does not report container not starting, which I think that's a separate issue, following on this issue might not address that. You may want to file another issue to provide extra details.

started
started time in 2 days ago
started
started time in 3 days ago
started
started time in 3 days ago
Jan
19
4 days ago
Activity icon
issue

tujh-rf issue comment gogs/gogs

tujh-rf
tujh-rf

Periodic "error: kex_exchange_identification" in Docker logs

Gogs version

0.13.0+dev

Git version

  • Server: 2.32.0
  • Client: n/a

Operating system

Docker version 20.10.5+dfsg1, build 55c4c88 on Debian 11.2 (armv7l)

Database

postgresql-13.4-2

Describe the bug

Once a minute I see the following posted to logs:

Jan 16 03:25:43 sshd[124]: error: kex_exchange_identification: Connection closed by remote host
Jan 16 03:25:43 sshd[124]: Connection closed by 127.0.0.1 port 34959

ssh access works. Just curious what the errors are.

The two errors appear as if scheduled to run every 30 to 60 seconds.

To reproduce

Install gogs via Docker

Expected behavior

Expect no errors that lead you believe somebody is trying to connect to the service

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
tujh-rf
tujh-rf

I have the same error on the startup in the Docker Swarm. With version 0.12.4 Gogs works fine

usermod: no changes
Jan 19 20:55:51 syslogd started: BusyBox v1.31.1
Jan 19 20:55:51 sshd[31]: Server listening on :: port 22.
Jan 19 20:55:51 sshd[31]: Server listening on 0.0.0.0 port 22.
2022/01/19 20:55:52 [TRACE] Log mode: File (Info)

but if I update the image to the "latest" (I guess 0.13-dev) that will happen

usermod: no changes
Jan 19 20:54:47 syslogd started: BusyBox v1.33.1
Jan 19 20:54:47 sshd[30]: Server listening on :: port 22.
Jan 19 20:54:47 sshd[30]: Server listening on 0.0.0.0 port 22.
2022/01/19 20:54:47 [TRACE] Log mode: File (Info)
2022/01/19 20:54:48 [TRACE] Log mode: File (Info)
2022/01/19 20:54:49 [TRACE] Log mode: File (Info)
Jan 19 20:55:17 sshd[116]: error: kex_exchange_identification: Connection closed by remote host
Jan 19 20:55:17 sshd[116]: Connection closed by 127.0.0.1 port 33837
Jan 19 20:55:47 sshd[125]: error: kex_exchange_identification: Connection closed by remote host
Jan 19 20:55:47 sshd[125]: Connection closed by 127.0.0.1 port 39345
Jan 19 20:55:50 syslogd exiting

and if I will rollback the container to the version 0.12.4 Gogs will work as expected and without issues.

Activity icon
issue

tujh-rf issue comment gogs/gogs

tujh-rf
tujh-rf

Periodic "error: kex_exchange_identification" in Docker logs

Gogs version

0.13.0+dev

Git version

  • Server: 2.32.0
  • Client: n/a

Operating system

Docker version 20.10.5+dfsg1, build 55c4c88 on Debian 11.2 (armv7l)

Database

postgresql-13.4-2

Describe the bug

Once a minute I see the following posted to logs:

Jan 16 03:25:43 sshd[124]: error: kex_exchange_identification: Connection closed by remote host
Jan 16 03:25:43 sshd[124]: Connection closed by 127.0.0.1 port 34959

ssh access works. Just curious what the errors are.

The two errors appear as if scheduled to run every 30 to 60 seconds.

To reproduce

Install gogs via Docker

Expected behavior

Expect no errors that lead you believe somebody is trying to connect to the service

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
tujh-rf
tujh-rf

I have the same error on the startup in the Docker Swarm. With version 0.12.3 Gogs works fine

usermod: no changes
Jan 19 20:55:51 syslogd started: BusyBox v1.31.1
Jan 19 20:55:51 sshd[31]: Server listening on :: port 22.
Jan 19 20:55:51 sshd[31]: Server listening on 0.0.0.0 port 22.
2022/01/19 20:55:52 [TRACE] Log mode: File (Info)

but if I update the image to the "latest" (0.12.4, not even 0.13-dev) that will happen

usermod: no changes
Jan 19 20:54:47 syslogd started: BusyBox v1.33.1
Jan 19 20:54:47 sshd[30]: Server listening on :: port 22.
Jan 19 20:54:47 sshd[30]: Server listening on 0.0.0.0 port 22.
2022/01/19 20:54:47 [TRACE] Log mode: File (Info)
2022/01/19 20:54:48 [TRACE] Log mode: File (Info)
2022/01/19 20:54:49 [TRACE] Log mode: File (Info)
Jan 19 20:55:17 sshd[116]: error: kex_exchange_identification: Connection closed by remote host
Jan 19 20:55:17 sshd[116]: Connection closed by 127.0.0.1 port 33837
Jan 19 20:55:47 sshd[125]: error: kex_exchange_identification: Connection closed by remote host
Jan 19 20:55:47 sshd[125]: Connection closed by 127.0.0.1 port 39345
Jan 19 20:55:50 syslogd exiting
started
started time in 3 days ago
started
started time in 3 days ago
Activity icon
issue

amnong issue comment gogs/gogs

amnong
amnong

API for creating pull request

Is your feature request related to a problem? Please describe. when call http request try to create a new merge request, it return 400, and I think shoud I add param _csrf at request param. the url like this: https://${key}@your.gitserver.com/${group}/${project}/compare/${srcBranch}...${group}:${trgBranch}

Describe the solution you'd like so I read all api doc to find a api that can create merge request, but there is not.

Describe alternatives you've considered I hope there is a api for merge request, thus when After I deploy my app, the dev code could auto submit a mr/pr to repos.

Additional context I currently used the lastest version of gogs.

amnong
amnong

@Janluke0 I also have a use case for pull requests API. Kudos for implementing this 🚀

Did you end up submitting a pull request for this? I searched and couldn't find one.

Activity icon
fork

ajunlonglive forked gogs/gogs

⚡ Gogs is a painless self-hosted Git service
ajunlonglive MIT License Updated
fork time in 3 days ago
started
started time in 3 days ago
started
started time in 3 days ago
Activity icon
issue

AsherHuu issue gogs/gogs

AsherHuu
AsherHuu

邮件无法发送

Gogs version

0.13.0+dev

Git version

  • Server:
  • Client: 2.32.0

Operating system

centos 7.6

Database

sqlite3

Describe the bug

邮件功能其用不了,用的docker容器运行的 image

BRAND_NAME = Gogs RUN_USER = git RUN_MODE = prod

[database] TYPE = sqlite3 HOST = 127.0.0.1:5432 NAME = gogs SCHEMA = public USER = gogs PASSWORD = SSL_MODE = disable PATH = data/gogs.db

[repository] ROOT = /data/git/gogs-repositories

[server] DOMAIN = localhost HTTP_PORT = 3000 EXTERNAL_URL = http://localhost:3000/ DISABLE_SSH = false SSH_PORT = 22 START_SSH_SERVER = false OFFLINE_MODE = false

[mailer] ENABLED = true HOST = smtp.exmail.qq.com:465 FROM = [email protected] USER = [email protected] PASSWD = 123456

[auth] REQUIRE_EMAIL_CONFIRMATION = true DISABLE_REGISTRATION = true ENABLE_REGISTRATION_CAPTCHA = false REQUIRE_SIGNIN_VIEW = false

[user] ENABLE_EMAIL_NOTIFICATION = true

[picture] DISABLE_GRAVATAR = false ENABLE_FEDERATED_AVATAR = false

[session] PROVIDER = file

[log] MODE = file LEVEL = Info ROOT_PATH = /app/gogs/log

[security] INSTALL_LOCK = true SECRET_KEY = wEq2UVV3OSrgxqu

To reproduce

install 页面时候配置邮件发送信息

Expected behavior

正常发送邮件

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct