Hi there

Please take a look at https://groups.google.com/g/go-cd/c/5c1X3diKmag
and/or https://github.com/gocd/gocd/issues/10265

In your case, the agent bootstrapper version is too new, and running with a
Java version incompatible with the server.

In your case I would suggest to either downgrade the agent bootstrapper to
21.4.0/21.3.0 or upgrade the server to at least 21.4.0 rather than
workaround with arguments as in the GitHub issue.

-Chad

On Sat, 11 Jun 2022, 02:14 Joshua von Damm, <[email protected]> wrote:

> I found the supposed error in the go-agent.log:
>
> 22022-06-10 18:04:10,346 ERROR [scheduler-3] AgentController:92 - [Agent
> Loop] Error occurred during loop:
> java.lang.reflect.InaccessibleObjectException: Unable to make field
> private java.lang.String java.util.regex.Pattern.pattern accessible: module
> java.base does not "opens java.util.regex" to unnamed module @13fee20c
>         at
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown
> Source)
>         at
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown
> Source)
>         at java.base/java.lang.reflect.Field.checkCanSetAccessible(Unknown
> Source)
>         at java.base/java.lang.reflect.Field.setAccessible(Unknown Source)
>         at
> com.google.gson.internal.reflect.UnsafeReflectionAccessor.makeAccessible(UnsafeReflectionAccessor.java:44)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:159)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
>         at com.google.gson.Gson.getAdapter(Gson.java:458)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
>         at com.google.gson.Gson.getAdapter(Gson.java:458)
>         at
> com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53)
>         at com.google.gson.Gson.getAdapter(Gson.java:458)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
>         at com.google.gson.Gson.getDelegateAdapter(Gson.java:541)
>         at
> com.thoughtworks.go.remote.adapter.RuntimeTypeAdapterFactory.create(RuntimeTypeAdapterFactory.java:238)
>         at com.google.gson.Gson.getAdapter(Gson.java:458)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
>         at com.google.gson.Gson.getAdapter(Gson.java:458)
>         at
> com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53)
>         at com.google.gson.Gson.getAdapter(Gson.java:458)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
>         at com.google.gson.Gson.getAdapter(Gson.java:458)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
>         at com.google.gson.Gson.getAdapter(Gson.java:458)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166)
>         at
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102)
>         at com.google.gson.Gson.getDelegateAdapter(Gson.java:541)
>         at
> com.thoughtworks.go.remote.adapter.RuntimeTypeAdapterFactory.create(RuntimeTypeAdapterFactory.java:238)
>         at com.google.gson.Gson.getAdapter(Gson.java:458)
>         at com.google.gson.Gson.fromJson(Gson.java:931)
>         at com.google.gson.Gson.fromJson(Gson.java:897)
>         at com.google.gson.Gson.fromJson(Gson.java:846)
>         at com.google.gson.Gson.fromJson(Gson.java:817)
>         at
> com.thoughtworks.go.agent.RemotingClient.getWork(RemotingClient.java:79)
>         at
> com.thoughtworks.go.agent.AgentHTTPClientController.retrieveWork(AgentHTTPClientController.java:153)
>         at com.thoughtworks.go.agent.AgentHTTPClientController.work
> (AgentHTTPClientController.java:130)
>         at
> com.thoughtworks.go.agent.AgentController.loop(AgentController.java:86)
>         at jdk.internal.reflect.GeneratedMethodAccessor9.invoke(Unknown
> Source)
>         at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>         at java.base/java.lang.reflect.Method.invoke(Unknown Source)
>         at
> org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
>         at
> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>         at
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> Source)
>         at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown
> Source)
>         at
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.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)
> On Friday, June 10, 2022 at 10:28:55 AM UTC-7 Joshua von Damm wrote:
>
>> Also server is version 21.3.0 and agent is version 22.1.0.
>>
>> On Friday, June 10, 2022 at 10:25:08 AM UTC-7 Joshua von Damm wrote:
>>
>>> Agent configuration for resources/environments is fine as it ran prior
>>> to the update.
>>>
>>> When I trigger the pipeline now, it assigns to the agent, but then
>>> remains stuck in the 'waiting for agent' stage, and no output ever shows on
>>> the console.
>>>
>>> I have multiple agents and eventually another one takes over the
>>> pipeline after the agent on 22.04 is stuck in the 'waiting' stage long
>>> enough.
>>>
>>> I can ssh into the agent and manually run the scripts executed by the
>>> same pipeline.
>>> On the agent page it shows as Idle.
>>> I tried rebooting the system and restarting the agent with no luck.
>>>
>>> Any help would be great, thanks!
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/7d246429-6f7b-4397-b705-e5aba58f595fn%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/7d246429-6f7b-4397-b705-e5aba58f595fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAA1RwH-LRYCuvv0jwmz0ktHJ%3D03kexPGD%2BEGQvUto0k6VeYc%3Dg%40mail.gmail.com.

Reply via email to