can't seem to get autopause to work on a truenas system #2335
Unanswered
marcuscroucher1
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't have any particular advice but the actual error was in the first few lines
Maybe TrueNAS runs rootless contianers. I'd recommend just not using auto-pause. I'm skeptical there's any actual meaningful power/electricity savings. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have setup a container on truenas which has been working flawlessly so far (thankyou so much for creating and working on this project!) however I have had problems with getting the auto pause to work correctly.
The issue is that the container says it cannot find the interface, "eth0", however when I run the command ifconfig in the container, it shows me that the interfaces available are "eth0", and "lo"
I believe that truenas is already using slirp4netns, and it is installed on the system.
If I have missed a step, or someone knows what I can do to get this working that would be great!
I have copied in a startup log below:
`2023-08-13 09:37:42.632689+00:00[init] Changing uid of minecraft to 568
2023-08-13 09:37:44.608887+00:00[init] Changing gid of minecraft to 568
2023-08-13 09:37:45.448955+00:00[init] Running as uid=568 gid=568 with /data as 'drwxrwxr-x+ 11 568 568 24 Aug 13 10:35 /data'
2023-08-13 09:37:45.451849+00:00[init] Autopause functionality enabled
2023-08-13 09:37:45.456506+00:00[init] Updated server port in knockd config
2023-08-13 09:37:45.460414+00:00[init] Resolving type given FABRIC
2023-08-13 09:37:46.237701+00:00sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
2023-08-13 09:37:46.237915+00:00[Autopause loop] Failed to start knockd daemon.
2023-08-13 09:37:46.237943+00:00[Autopause loop] Probable cause: Unable to attach to interface "eth0".
2023-08-13 09:37:46.237952+00:00[Autopause loop] Available interfaces within the docker container:
2023-08-13 09:37:47.049216+00:00[Autopause loop] eth0
2023-08-13 09:37:47.049240+00:00[Autopause loop] Please set the environment variable AUTOPAUSE_KNOCK_INTERFACE to the interface that handles incoming connections.
2023-08-13 09:37:47.049256+00:00[Autopause loop] If unsure which interface to choose, run the ifconfig command in the container.
2023-08-13 09:37:47.049261+00:00[Autopause loop] Autopause failed to initialize. This log entry will be printed every 30 minutes.
2023-08-13 09:37:47.338191+00:00[mc-image-helper] 10:37:47.335 INFO : Fabric launcher for minecraft 1.20.1 loader 0.14.22 is already available
2023-08-13 09:37:49.347718+00:00[mc-image-helper] 10:37:49.337 INFO : Downloading lithium-fabric-mc1.20.1-0.11.2.jar
2023-08-13 09:37:49.601167+00:00[mc-image-helper] 10:37:49.600 INFO : Downloading fabric-api-0.86.1+1.20.1.jar
2023-08-13 09:37:49.872464+00:00[mc-image-helper] 10:37:49.871 INFO : Downloading fabric-carpet-1.20-1.4.112+v230608.jar
2023-08-13 09:37:50.172774+00:00[mc-image-helper] 10:37:50.172 INFO : Downloading NoChatReports-FABRIC-1.20.1-v2.2.2.jar
2023-08-13 09:37:50.325320+00:00[mc-image-helper] 10:37:50.324 INFO : Downloading cloth-config-11.1.106-fabric.jar
2023-08-13 09:37:50.492768+00:00[mc-image-helper] 10:37:50.492 INFO : Downloading modmenu-7.2.1.jar
2023-08-13 09:37:50.644025+00:00[mc-image-helper] 10:37:50.643 INFO : Downloading viewdistancefix-1.20.1-1.0.0.jar
2023-08-13 09:37:54.813208+00:00[init] Using Aikar's flags
2023-08-13 09:37:54.813721+00:00[init] Setting initial memory to 8G and max to 8G
2023-08-13 09:37:55.273340+00:00[init] Starting the Minecraft server...
2023-08-13 09:37:55.993010+00:00Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture
2023-08-13 09:37:56.419599+00:00[10:37:56] [main/INFO]: Loading Minecraft 1.20.1 with Fabric Loader 0.14.22
2023-08-13 09:37:56.534414+00:00[10:37:56] [main/INFO]: Loading 47 mods:
2023-08-13 09:37:56.534451+00:00- carpet 1.4.112+v230608
2023-08-13 09:37:56.534459+00:00- cloth-config 11.1.106
2023-08-13 09:37:56.534471+00:00-- cloth-basic-math 0.6.1
2023-08-13 09:37:56.534479+00:00- fabric-api 0.86.1+1.20.1
2023-08-13 09:37:56.534484+00:00|-- fabric-api-base 0.4.30+7abfd51577
2023-08-13 09:37:56.534490+00:00|-- fabric-api-lookup-api-v1 1.6.35+4d8536c977
2023-08-13 09:37:56.534500+00:00|-- fabric-biome-api-v1 13.0.10+b3afc78b77
2023-08-13 09:37:56.534506+00:00|-- fabric-block-api-v1 1.0.9+e022e5d177
2023-08-13 09:37:56.534512+00:00|-- fabric-blockrenderlayer-v1 1.1.40+b3afc78b77
2023-08-13 09:37:56.534518+00:00|-- fabric-client-tags-api-v1 1.1.1+97bb207577
2023-08-13 09:37:56.534528+00:00|-- fabric-command-api-v1 1.2.33+f71b366f77
2023-08-13 09:37:56.534534+00:00|-- fabric-command-api-v2 2.2.12+b3afc78b77
2023-08-13 09:37:56.534540+00:00|-- fabric-commands-v0 0.2.50+df3654b377
2023-08-13 09:37:56.534545+00:00|-- fabric-containers-v0 0.1.62+df3654b377
2023-08-13 09:37:56.534554+00:00|-- fabric-content-registries-v0 4.0.9+b3afc78b77
2023-08-13 09:37:56.534560+00:00|-- fabric-convention-tags-v1 1.5.4+a1a980da77
2023-08-13 09:37:56.534565+00:00|-- fabric-crash-report-info-v1 0.2.18+aeb40ebe77
2023-08-13 09:37:56.534570+00:00|-- fabric-data-generation-api-v1 12.2.1+1e61dba177
2023-08-13 09:37:56.534580+00:00|-- fabric-dimensions-v1 2.1.52+b3afc78b77
2023-08-13 09:37:56.534586+00:00|-- fabric-entity-events-v1 1.5.22+b3afc78b77
2023-08-13 09:37:56.534592+00:00|-- fabric-events-interaction-v0 0.6.1+e91849a877
2023-08-13 09:37:56.534597+00:00|-- fabric-events-lifecycle-v0 0.2.62+df3654b377
2023-08-13 09:37:56.534608+00:00|-- fabric-game-rule-api-v1 1.0.38+b04edc7a77
2023-08-13 09:37:56.534613+00:00|-- fabric-item-api-v1 2.1.27+b3afc78b77
2023-08-13 09:37:56.534619+00:00|-- fabric-item-group-api-v1 4.0.10+23d9108177
2023-08-13 09:37:56.534624+00:00|-- fabric-key-binding-api-v1 1.0.36+fb8d95da77
2023-08-13 09:37:56.534632+00:00|-- fabric-keybindings-v0 0.2.34+df3654b377
2023-08-13 09:37:56.534638+00:00|-- fabric-lifecycle-events-v1 2.2.21+b3afc78b77
2023-08-13 09:37:56.534643+00:00|-- fabric-loot-api-v2 1.1.39+b3afc78b77
2023-08-13 09:37:56.534648+00:00|-- fabric-loot-tables-v1 1.1.43+9e7660c677
2023-08-13 09:37:56.534657+00:00|-- fabric-message-api-v1 5.1.7+3265161977
2023-08-13 09:37:56.534663+00:00|-- fabric-mining-level-api-v1 2.1.49+b3afc78b77
2023-08-13 09:37:56.534669+00:00|-- fabric-model-loading-api-v1 1.0.2+709a987177
2023-08-13 09:37:56.534674+00:00|-- fabric-models-v0 0.4.1+9386d8a777
2023-08-13 09:37:56.534683+00:00|-- fabric-networking-api-v1 1.3.9+b3afc78b77
2023-08-13 09:37:56.534689+00:00|-- fabric-networking-v0 0.3.49+df3654b377
2023-08-13 09:37:56.534694+00:00|-- fabric-object-builder-api-v1 11.1.1+6beca84877
2023-08-13 09:37:56.534700+00:00|-- fabric-particles-v1 1.1.1+201a23a077
2023-08-13 09:37:56.534705+00:00|-- fabric-recipe-api-v1 1.0.19+b3afc78b77
2023-08-13 09:37:56.534714+00:00|-- fabric-registry-sync-v0 2.3.1+4df89eb277
2023-08-13 09:37:56.534720+00:00|-- fabric-renderer-api-v1 3.1.1+9386d8a777
2023-08-13 09:37:56.534727+00:00|-- fabric-renderer-indigo 1.4.1+9172968c77
2023-08-13 09:37:56.534732+00:00|-- fabric-renderer-registries-v1 3.2.45+df3654b377
2023-08-13 09:37:56.534743+00:00|-- fabric-rendering-data-attachment-v1 0.3.34+b3afc78b77
2023-08-13 09:37:56.534749+00:00|-- fabric-rendering-fluids-v1 3.0.27+b3afc78b77
2023-08-13 09:37:56.534754+00:00|-- fabric-rendering-v0 1.1.48+df3654b377
2023-08-13 09:37:56.534759+00:00|-- fabric-rendering-v1 3.0.7+b3afc78b77
2023-08-13 09:37:56.534768+00:00|-- fabric-resource-conditions-api-v1 2.3.5+ea08f9d877
2023-08-13 09:37:56.534774+00:00|-- fabric-resource-loader-v0 0.11.9+132c48c177
2023-08-13 09:37:56.534780+00:00|-- fabric-screen-api-v1 2.0.7+b3afc78b77
2023-08-13 09:37:56.534785+00:00|-- fabric-screen-handler-api-v1 1.3.28+b3afc78b77
2023-08-13 09:37:56.534795+00:00|-- fabric-sound-api-v1 1.0.12+b3afc78b77
2023-08-13 09:37:56.534800+00:00|-- fabric-transfer-api-v1 3.3.0+cdf060b277
2023-08-13 09:37:56.534806+00:00-- fabric-transitive-access-wideners-v1 4.3.0+6c31357e77
2023-08-13 09:37:56.534815+00:00- fabricloader 0.14.22
2023-08-13 09:37:56.534821+00:00- java 17
2023-08-13 09:37:56.534827+00:00- lithium 0.11.2
2023-08-13 09:37:56.534832+00:00- minecraft 1.20.1
2023-08-13 09:37:56.534838+00:00- nochatreports 1.20.1-v2.2.2
2023-08-13 09:37:56.534843+00:00|-- fabric-rendering-v1 3.0.6+b3afc78b82
2023-08-13 09:37:56.534852+00:00-- fabric-screen-api-v1 2.0.6+b3afc78b82
2023-08-13 09:37:56.534858+00:00- viewdistancefix 1.20.1-1.0.0
2023-08-13 09:37:56.594507+00:00[10:37:56] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/data/libraries/net/fabricmc/sponge-mixin/0.12.5+mixin.0.8.5/sponge-mixin-0.12.5+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER
2023-08-13 09:37:56.672616+00:00[10:37:56] [main/INFO]: Compatibility level set to JAVA_17
2023-08-13 09:37:56.801456+00:00[10:37:56] [main/INFO]: Loaded configuration file for Lithium: 115 options available, 0 override(s) found
2023-08-13 09:37:57.963042+00:00[10:37:57] [main/INFO]: Mixing common.MixinFriendlyByteBuf from mixins/common/nochatreports.mixins.json into net.minecraft.class_2540
2023-08-13 09:37:57.964073+00:00[10:37:57] [main/INFO]: Renaming synthetic method lambda$onWriteJsonWithCodec$1(Ljava/lang/Object;Ljava/lang/String;)Lio/netty/handler/codec/EncoderException; to md6e74f2$nochatreports$lambda$onWriteJsonWithCodec$1$0 in mixins/common/nochatreports.mixins.json:common.MixinFriendlyByteBuf from mod nochatreports
2023-08-13 09:37:57.964415+00:00[10:37:57] [main/INFO]: Renaming synthetic method lambda$onReadJsonWithCodec$0(Ljava/lang/String;)Lio/netty/handler/codec/DecoderException; to md6e74f2$nochatreports$lambda$onReadJsonWithCodec$0$1 in mixins/common/nochatreports.mixins.json:common.MixinFriendlyByteBuf from mod nochatreports
2023-08-13 09:38:01.125314+00:00[10:38:01] [main/INFO]: Mixing server.MixinServerGamePacketListenerImpl from mixins/common/nochatreports.mixins.json into net.minecraft.class_3244
2023-08-13 09:38:01.137758+00:00[10:38:01] [main/WARN]: Method overwrite conflict for getConnection in fabric-networking-api-v1.mixins.json:accessor.ServerPlayNetworkHandlerAccessor from mod fabric-networking-api-v1, previously written by carpet.mixins.ServerGamePacketListenerImpl_coreMixin. Skipping method.
2023-08-13 09:38:02.092730+00:00[10:38:02] [main/INFO]: KONNICHIWA ZA WARUDO!
2023-08-13 09:38:02.092951+00:00[10:38:02] [main/INFO]: Default JVM text encoding is: UTF-8
2023-08-13 09:38:02.094964+00:00[10:38:02] [main/INFO]: Reading config file NoChatReports/NCR-Common.json...
2023-08-13 09:38:02.099869+00:00[10:38:02] [main/INFO]: Writing config file NoChatReports/NCR-Common.json...
2023-08-13 09:38:02.243453+00:00[10:38:02] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
2023-08-13 09:38:03.676951+00:00[10:38:03] [main/INFO]: Loaded 7 recipes
2023-08-13 09:38:03.710532+00:00[10:38:03] [main/ERROR]: Parsing error loading custom advancement deactivateportals:nether_portal_lit: Failed to parse 'location' field
2023-08-13 09:38:03.727226+00:00[10:38:03] [main/ERROR]: Parsing error loading custom advancement deactivateportals:used_ender_eye_on_portal: Failed to parse 'location' field
2023-08-13 09:38:03.757319+00:00[10:38:03] [main/INFO]: Loaded 1276 advancements
2023-08-13 09:38:04.052865+00:00[10:38:04] [main/INFO]: Mixing server.MixinDedicatedServer from mixins/common/nochatreports.mixins.json into net.minecraft.class_3176
2023-08-13 09:38:04.058598+00:00[10:38:04] [main/INFO]: Mixing server.MixinPlayerList from mixins/common/nochatreports.mixins.json into net.minecraft.class_3324
2023-08-13 09:38:04.079915+00:00[10:38:04] [main/INFO]: Applied 0 biome modifications to 0 of 64 new biomes in 1.353 ms
2023-08-13 09:38:04.086329+00:00[10:38:04] [Server thread/INFO]: Starting minecraft server version 1.20.1
2023-08-13 09:38:04.086548+00:00[10:38:04] [Server thread/INFO]: Loading properties
2023-08-13 09:38:04.086727+00:00[10:38:04] [Server thread/INFO]: Default game type: SURVIVAL
2023-08-13 09:38:04.086875+00:00[10:38:04] [Server thread/INFO]: Generating keypair
2023-08-13 09:38:04.151815+00:00[10:38:04] [Server thread/INFO]: Starting Minecraft server on *:25535
2023-08-13 09:38:04.191354+00:00[10:38:04] [Server thread/INFO]: Using epoll channel type
2023-08-13 09:38:04.298733+00:00[10:38:04] [Server thread/INFO]: Preparing level "world"
2023-08-13 09:38:04.306162+00:00[10:38:04] [Server thread/INFO]: [CM] Loaded 14 settings from carpet.conf
2023-08-13 09:38:06.606465+00:00[10:38:06] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
2023-08-13 09:38:06.840420+00:00[10:38:06] [Netty Epoll Server IO #1/INFO]: Mixing server.MixinServerboundChatCommandPacket from mixins/common/nochatreports.mixins.json into net.minecraft.class_7472
2023-08-13 09:38:06.842683+00:00[10:38:06] [Netty Epoll Server IO #1/INFO]: Mixing server.MixinServerboundChatPacket from mixins/common/nochatreports.mixins.json into net.minecraft.class_2797
2023-08-13 09:38:06.844612+00:00[10:38:06] [Netty Epoll Server IO #1/INFO]: Mixing server.MixinServerboundChatSessionUpdatePacket from mixins/common/nochatreports.mixins.json into net.minecraft.class_7861
2023-08-13 09:38:09.078395+00:00[10:38:09] [Worker-Main-1/INFO]: Preparing spawn area: 0%
2023-08-13 09:38:09.094249+00:00[10:38:09] [Worker-Main-3/INFO]: Preparing spawn area: 0%
2023-08-13 09:38:09.118426+00:00[10:38:09] [Worker-Main-3/INFO]: Preparing spawn area: 0%
2023-08-13 09:38:09.129177+00:00[10:38:09] [Worker-Main-2/INFO]: Preparing spawn area: 0%
2023-08-13 09:38:09.132216+00:00[10:38:09] [Worker-Main-1/INFO]: Preparing spawn area: 0%
2023-08-13 09:38:09.149532+00:00[10:38:09] [Worker-Main-2/INFO]: Preparing spawn area: 0%
2023-08-13 09:38:09.613754+00:00[10:38:09] [Worker-Main-1/INFO]: Preparing spawn area: 8%
2023-08-13 09:38:10.061707+00:00[10:38:10] [Server thread/INFO]: Time elapsed: 3455 ms
2023-08-13 09:38:10.066979+00:00[10:38:10] [Server thread/INFO]: Done (5.768s)! For help, type "help"
2023-08-13 09:38:10.067125+00:00[10:38:10] [Server thread/INFO]: Starting remote control listener
2023-08-13 09:38:10.069388+00:00[10:38:10] [Server thread/INFO]: Thread RCON Listener started
2023-08-13 09:38:10.069534+00:00[10:38:10] [Server thread/INFO]: RCON running on 0.0.0.0:25575
2023-08-13 09:38:10.095124+00:00[10:38:10] [Server thread/INFO]: Mixing common.MixinServerStatus from mixins/common/nochatreports.mixins.json into net.minecraft.class_2926`
Beta Was this translation helpful? Give feedback.
All reactions