Hi Dirk,

I trust this email finds you well. I wanted to provide you with an update
on our ongoing testing efforts and the challenges we're facing.

We've made progress in resolving the webhook issue in GitLab. The webhook
is now successfully executed with an HTTP 200 response, indicating that
it's functioning properly.

Here are the latest details of our webhook configuration in GitLab:

Webhooks
- URL: http://192.168.0.24:40080/Berechit/easyformer/-/hooks

Jenkins Integration
- URL:
http://192.168.0.24:8080/git/notifyCommit?url=http://192.168.0.24:40080/Berechit/easyformer.git&token=75a8746bcf9c658b08491f27860f356d
- SSL Verification: Unchecked
- Trigger: Push events

Manage Jenkins" -> "Security" -> "Git plugin notifyCommit access tokens
- URL: http://192.168.0.24:8080/manage/configureSecurity/
- Current access tokens: Nissan (Token: 75a8746bcf9c658b08491f27860f356d)

We are still encountering difficulties with fetching the Git repository in
Jenkins. Despite our efforts, Jenkins prompts for a password when
attempting to clone the repository, which is unexpected behavior for SSH
authentication.

root@easyformer:~# docker ps
CONTAINER ID   IMAGE                     COMMAND                  CREATED
   STATUS                  PORTS

  NAMES
016ce5d64dcb   jenkins/jenkins:lts       "/usr/bin/tini -- /u…"   8 days
ago   Up 5 hours              0.0.0.0:8080->8080/tcp, :::8080->8080/tcp,
0.0.0.0:50000->50000/tcp, :::50000->50000/tcp
       jenkins
b777b84a524b   gitlab/gitlab-ce:latest   "/assets/wrapper"        8 days
ago   Up 25 hours (healthy)   0.0.0.0:40022->22/tcp, :::40022->22/tcp,
0.0.0.0:40080->80/tcp, :::40080->80/tcp, 0.0.0.0:40443->443/tcp,
:::40443->443/tcp   gitlab
root@easyformer:~# docker exec -it jenkins bash
jenkins@192:/tmp$ git clone git@192.168.0.24:Berechit/easyformer.git
Cloning into 'easyformer'...
git@192.168.0.24's password:


Below are the latest logs from the Jenkins build:

The recommended git tool is: NONE
using credential jenkinsgitlabssh
 > git rev-parse --resolve-git-dir
/var/jenkins_home/workspace/EasyFormerPipeline/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url git@192.168.0.24:Berechit/easyformer.git #
timeout=10
Fetching upstream changes from git@192.168.0.24:Berechit/easyformer.git
 > git --version # timeout=10
 > git --version # 'git version 2.39.2'
using GIT_SSH to set credentials Test EasyFormer23042024
Verifying host key using known hosts file, will automatically accept unseen
keys
 > git fetch --tags --force --progress --
git@192.168.0.24:Berechit/easyformer.git
+refs/heads/*:refs/remotes/origin/* # timeout=10
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from git@192.168.0.24:
Berechit/easyformer.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1241)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1305)
at
org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136)
at
org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:101)
at
org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:88)
at
org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags
--force --progress -- git@192.168.0.24:Berechit/easyformer.git
+refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: Permission denied, please try again.
Permission denied, please try again.
git@192.168.0.24: Permission denied (publickey,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2846)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2185)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:997)
... 11 more
ERROR: Error fetching remote repo 'origin'
ERROR: Maximum checkout retry attempts reached, aborting.

We are actively working to resolve this issue and will keep you updated on
our progress.

Thank you for your ongoing support and assistance.

Best regards,
Erick

Le ven. 26 avr. 2024 à 07:43, 'Dirk Heinrichs' via Jenkins Users <
jenkinsci-users@googlegroups.com> a écrit :

> Am Freitag, dem 26.04.2024 um 00:25 +0200 schrieb Erick Mormin:
>
> Unfortunately, I'm still encountering problems despite several attempts to
> resolve them. Here are the errors I'm encountering:
>
> In GitLab:
>
> Hook executed successfully but returned HTTP 403
> <html> <head> <meta http-equiv="Content-Type"
> content="text/html;charset=ISO-8859-1"/> <title>Error 403 Invalid access
> token</title> </head> <body><h2>HTTP ERROR 403 Invalid access token</h2>
> <table> <tr><th>URI:</th><td>/git/notifyCommit</td></tr>
> <tr><th>STATUS:</th><td>403</td></tr> <tr><th>MESSAGE:</th><td>Invalid
> access token</td></tr> <tr><th>SERVLET:</th><td>Stapler</td></tr> </table>
> <hr/><a href="https://eclipse.org/jetty
> <https://urldefense.com/v3/__https://eclipse.org/jetty__;!!Obbck6kTJA!dux-7UwMxfYci0s-LDIgC9KMzPF0im5AlWHqnW-VcQeqnZT8uibEh4CEYn5JpyItjsib7CA0biig7DvN_hYGPaQ$>">Powered
> by Jetty:// 10.0.20</a><hr/> </body> </html>
>
>
> Well, it has all the information you need: "Invalid access token". Make
> sure you provide a valid token (means: as created under "Manage Jenkins" ->
> "Security" -> "Git plugin notifyCommit access tokens").
>
> In Jenkins, when triggering a build:
>
> The recommended git tool is: NONE
> using credential jenkinsgitlabssh
>  > git rev-parse --resolve-git-dir
> /var/jenkins_home/workspace/EasyFormerPipeline/.git # timeout=10
> Fetching changes from the remote Git repository
>  > git config remote.origin.url git@192.168.0.24:Berechit/easyformer.git
> # timeout=10
> Fetching upstream changes from git@192.168.0.24:Berechit/easyformer.git
>  > git --version # timeout=10
>  > git --version # 'git version 2.39.2'
> using GIT_SSH to set credentials Test EasyFormer23042024
> Verifying host key using known hosts file, will automatically accept
> unseen keys
>  > git fetch --tags --force --progress -- 
> git@192.168.0.24:Berechit/easyformer.git
> +refs/heads/*:refs/remotes/origin/* # timeout=10
> ERROR: Error fetching remote repo 'origin'
> hudson.plugins.git.GitException: Failed to fetch from git@192.168.0.24:
> Berechit/easyformer.git
>
>
> Please check that cloning the repo works in general, by logging in to a
> shell on the Jenkins server, as the user that runs Jenkins, and executing a
> "git clone" command. If that works, it will usually also work from within
> Jenkins. Or, try to get it working with HTTP, first,
>
> Additionally, I've updated the webhook URL in Jenkins as follows:
>
>
> That's a type, I guess, and you mean ("in GitLab"), right?
>
>
> http://192.168.0.24:8080/git/notifyCommit?url=http://192.168.0.24:40080/Berechit/easyformer.git&token=11b263dbb6e2a1f398bee5f391e98041a5
> <https://urldefense.com/v3/__http://192.168.0.24:8080/git/notifyCommit?url=http:**A192.168.0.24:40080*Berechit*easyformer.git&token=11b263dbb6e2a1f398bee5f391e98041a5__;Ly8vLw!!Obbck6kTJA!dux-7UwMxfYci0s-LDIgC9KMzPF0im5AlWHqnW-VcQeqnZT8uibEh4CEYn5JpyItjsib7CA0biig7DvNngarbLM$>
>
>
> I wrote that the repo URL (the part after "url=") must match exactly
> (means: letter by letter) the one used in the Jenkins Job. But you're using
> an HTTP URL here and an SSH URL in the job. That doesn't work.
>
> HTH...
>
> Dirk
>
> --
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18
> *Email*: dhein...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan,
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail sind nicht gestattet.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/3c1b03e33a805c3bfd1a7c4a40d2b696a5c0cf10.camel%40opentext.com
> <https://groups.google.com/d/msgid/jenkinsci-users/3c1b03e33a805c3bfd1a7c4a40d2b696a5c0cf10.camel%40opentext.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPrX6vBYrHMpwjGzU5OcEU4fDwhNx6Hi8EUVgHKwWm-XUow95g%40mail.gmail.com.

Reply via email to