-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ktor no netty_transport_native_epoll_x86_64 in java.library.path #1670
Comments
@softshipper This issue has been raised before. I just documented a (Gradle-specific) workaround here, along with a request to have it automatically handled somehow if possible: #1672 (comment) Note that although the workaround will allow the native transport to successfully load on startup (if available for the underlying platform), it will unfortunately not eliminate all the exceptions that Netty throws at the debug level before it ultimately succeeds in loading the native transport. The reason for this being that it tries multiple ways of locating and loading the native transport library, the first ones of which always fail (at least in the case of Ktor). See also this answer at the Netty GitHub project: netty/netty#8263 (comment) |
@volkert-fastned There is no way to prevent the error message right? |
@softshipper As I understand it, not without increasing the logging level for the specific Netty package from DEBUG to INFO. How to do this, depends on what logging backend you're using in your project. If you're using Log4j 2 as your logging backend, you can add a package-specific override as follows: <AsyncLogger name="io.netty.util.internal.NativeLibraryLoader" level="info" includeLocation="true" additivity="false">
<AppenderRef ref="[INSERT_APPENDER_NAME_HERE]"/>
</AsyncLogger> Be sure to use a regular Of course this will also suppress the "successfully loaded" message. But if you want a confirmation in your log that the native transport has successfully been loaded and is in use, I believe you can actually query Netty programmatically for that and then log something in your code. |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Hi all
During starting Ktor application, I've got the following logs:
the build file
What am I doing wrong?
The Java runtime:
Thanks
The text was updated successfully, but these errors were encountered: