Skip to content

Operating System is not supported error #347

@jainruchir

Description

@jainruchir

This is more of a doubt than an issue. We had been using version 0.8.11: https://mvnrepository.com/artifact/io.spiffe/java-spiffe-provider/0.8.11 for quite some time now without facing issues. After updating to 0.8.13, we are seeing the following error:

Exception in thread "main" java.lang.RuntimeException: Failed to set up OkHttpClient
...
Caused by: java.lang.IllegalStateException: Operating System is not supported.
	at io.spiffe.workloadapi.internal.GrpcManagedChannelFactory.configureNativeSocketChannel(GrpcManagedChannelFactory.java:79)
	at io.spiffe.workloadapi.internal.GrpcManagedChannelFactory.createNativeSocketChannel(GrpcManagedChannelFactory.java:56)
	at io.spiffe.workloadapi.internal.GrpcManagedChannelFactory.newChannel(GrpcManagedChannelFactory.java:41)
	at io.spiffe.workloadapi.DefaultWorkloadApiClient.newClient(DefaultWorkloadApiClient.java:137)
	at io.spiffe.workloadapi.DefaultX509Source.createClient(DefaultX509Source.java:180)

This is running in a Linux-based container. While trying to debug the issue, we noticed that the runtime dependencies have been changed from io.spiffe:grpc-netty-linux to io.spiffe:grpc-netty-macos-aarch64 in 0.8.13: https://mvnrepository.com/artifact/io.spiffe/java-spiffe-provider/0.8.13. Is this an intentional change?
Can this be the cause of the issue, since 0.8.11 used to work fine with Linux?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions