I need help to resolve the problem with the Pipeline Runner Version 1.567 for MAC OS.
Asked by Rafael Quiles:

This is the error when I try to run the Runner in my Mac OS:

\[2024-04-09 11:31:11,994\] Runner version: 1.567

\[2024-04-09 11:31:11,995\] Runner runtime: macos-bash

\[2024-04-09 11:31:12,099\] Starting websocket listening to RUNNER_UPDATED events.

\[2024-04-09 11:31:12,157\] Updating runner status to "ONLINE" and checking for new steps assigned to the runner after 0 seconds and then every 30 seconds.

\[2024-04-09 11:31:12,225\] Updating runner state to "ONLINE".

\[2024-04-09 11:31:28,075\] An error occurred whilst updating runner state to "ONLINE".

java.nio.channels.UnresolvedAddressException: null

at java.base/sun.nio.ch.Net.checkAddress(Net.java:149)

at java.base/sun.nio.ch.Net.checkAddress(Net.java:157)

at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:816)

at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:839)

at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:91)

at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:88)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)

at io.netty.util.internal.SocketUtils.connect(SocketUtils.java:88)

at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:322)

at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:248)

at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1342)

at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:653)

at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:632)

at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.connect(CombinedChannelDuplexHandler.java:495)

at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:51)

at io.netty.channel.CombinedChannelDuplexHandler.connect(CombinedChannelDuplexHandler.java:296)

at io.netty.handler.proxy.HttpProxyHandler$HttpClientCodecWrapper.connect(HttpProxyHandler.java:308)

at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:657)

at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:632)

at io.netty.handler.proxy.ProxyHandler.connect(ProxyHandler.java:181)

at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:655)

at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:632)

at io.netty.handler.ssl.SslHandler.connect(SslHandler.java:737)

at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:657)

at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:632)

at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.connect(CombinedChannelDuplexHandler.java:495)

at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:51)

at io.netty.channel.CombinedChannelDuplexHandler.connect(CombinedChannelDuplexHandler.java:296)

at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:655)

at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:632)

at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:616)

at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:545)

at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:942)

at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:229)

at reactor.netty.transport.TransportConnector.lambda$doConnect$8(TransportConnector.java:239)

at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)

at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)

at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)

at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)

at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)

at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)

at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)

at java.base/java.lang.Thread.run(Thread.java:842)

Wrapped by: org.springframework.web.reactive.function.client.WebClientRequestException: nested exception is java.nio.channels.UnresolvedAddressException

at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:141)

Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:

Error has been observed at the following site(s):

\*__checkpoint ? Request to POST <https://auth.atlassian.com/oauth/token> \[DefaultWebClient\]

Original Stack Trace:

at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:141)

at reactor.core.publisher.MonoErrorSupplied.subscribe(MonoErrorSupplied.java:55)

at reactor.core.publisher.Mono.subscribe(Mono.java:4490)

at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:103)

at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:222)

at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:222)

at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:222)

at reactor.core.publisher.MonoNext$NextSubscriber.onError(MonoNext.java:93)

at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onError(ScopePassingSpanSubscriber.java:96)

at reactor.core.publisher.MonoFlatMapMany$FlatMapManyMain.onError(MonoFlatMapMany.java:204)

at reactor.core.publisher.SerializedSubscriber.onError(SerializedSubscriber.java:124)

at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.whenError(FluxRetryWhen.java:225)

at reactor.core.publisher.FluxRetryWhen$RetryWhenOtherSubscriber.onError(FluxRetryWhen.java:274)

at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onError(ScopePassingSpanSubscriber.java:96)

at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onError(FluxContextWrite.java:121)

at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.drain(FluxConcatMap.java:415)

at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.onNext(FluxConcatMap.java:251)

at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)

at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107)

at reactor.core.publisher.EmitterProcessor.drain(EmitterProcessor.java:537)

at reactor.core.publisher.EmitterProcessor.tryEmitNext(EmitterProcessor.java:343)

at reactor.core.publisher.SinkManySerialized.tryEmitNext(SinkManySerialized.java:100)

at reactor.core.publisher.InternalManySink.emitNext(InternalManySink.java:27)


Answers:
author: Patrik S
body: Hello [@Rafael Quiles](/t5/user/viewprofilepage/user-id/5472581) and welcome to the Community!

Based on the error message from the runner logs you shared, it seems to be a network-related issue. In this case, I would suggest the following steps to rule out some possible issues in your environment:

* Verify if all the [MacOs runner prerequisites](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-macos/#Prerequisites) are met by the host machine :
* Try testing in a different network (cellular network, for example) and check if the error persists
* If you are executing the runner behind a firewall, make sure that the Atlassian IP addresses listed on [IP addresses to allowlist in your corporate firewall](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/) are allowed in the firewall

Thank you, [@Rafael Quiles](/t5/user/viewprofilepage/user-id/5472581) !

Patrik S


Tags: bitbucket-cloud

cloud

mac

runner