how to add -Dio.netty.native.workdir=[path] in conf file flyway.toml

Bonjour,

The security on the file system is: 

/dev/mapper/rhel-tmp       /tmp           xfs  defaults,nosuid,noexec,nodev  0 0

how to add to the conf file?

./flyway --version

Flyway Community Edition 10.0.0 by Redgate


See release notes here: https://rd.gt/416ObMi

Plugin Name       | Version        

----------------- | ---------------

Redgate Compare   | 1.17.0.11618   

SQLFluff          | not installed  

Nov 17, 2023 4:53:41 PM io.netty.util.internal.NativeLibraryLoader load

INFO: /tmp/libnetty_tcnative_linux_x86_6413442731856311950657.so exists but cannot be executed even when execute permissions set; check volume for "noexec" flag; use -Dio.netty.native.workdir=[path] to set native working directory separately.

Nov 17, 2023 4:53:41 PM io.netty.util.internal.NativeLibraryLoader load

INFO: /tmp/libnetty_transport_native_epoll_x86_647774624510720493220.so exists but cannot be executed even when execute permissions set; check volume for "noexec" flag; use -Dio.netty.native.workdir=[path] to set native working directory separately.


./flyway --version -Dio.netty.native.workdir=/opt/flyway/tmp

ERROR: Failed to configure Parameters: netty


flyway.toml

[flyway]

locations = ["filesystem:migrations"]


[environments.default]

locations = ["filesystem:migrations"]

url = "jdbc:h2:mem:db"

user = ""

password = ""

Tagged:

Answers

  • Hello ecantin,

    It looks like you're setting it correctly, just that the host directory doesn't allow for what you're trying to do. The error is essentially saying change the rights or move it somewhere else that has the required rights.
    Kind regards
    Peter Laws | Redgate Software
    Have you visited our Help Center?
  • ecantinecantin Posts: 2 New member
    Thank you!

    The new release is correct!

    [root@labotest1 /opt/flyway/flyway-10.0.1]# ./flyway --version

    Flyway OSS Edition 10.0.1 by Redgate


    See release notes here: https://rd.gt/416ObMi

    [root@labotest1 /opt/flyway/flyway-10.0.1]# ./flyway --version -Dio.netty.native.workdir=/opt/flyway/tmp

    ERROR: Failed to configure Parameters: netty

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file