Time Nick Message 15:58 Miniontoby hello 17:13 thomas_ hello, anybody here that can help me with a debian server always crashing? 17:15 Lone_Wolf Depends. If the crash says 'Closed by the devil' I can't help you 17:15 Lone_Wolf (Could use some more info) 17:17 thomas_ You need debug.txt? 17:17 thomas_ What should I grep for? 17:18 thomas_ Maybe the reason is that I had some older Mods, but now everything is up to date. Could this be the reason? Do I have to create a new world? 17:22 Lone_Wolf I guess crash it and give me any error you see at the bottom of the debug.txt 17:26 thomas_ https://kgkemnat.ocloud.de/index.php/s/c8iYDKRX6yctB46 17:26 thomas_ here is a big part of the debug.txt 17:26 thomas_ it crashed twice this afternoon 17:31 Lone_Wolf 2020-03-23 17:42:51: [Main]: INFO: signal_handler(): got SIGTERM, shutting down. 17:31 Lone_Wolf That's all I can see in there 17:31 Lone_Wolf No errors or warnings AFAIK 17:31 Lone_Wolf I forget what that means 17:32 Lone_Wolf Ah 17:33 Lone_Wolf @thomas_: Something killed your minetest process 17:33 thomas_ that was me when it did'nt work anymore 17:33 thomas_ but before there is no message 17:34 thomas_ sometimes You get in ERROR in a mod with a line ... nothing ... 17:34 Lone_Wolf Could you post one of those errors? 17:34 thomas_ Do You have experience with a debian server? 17:35 Lone_Wolf Nope, I've done Ubuntu ones though, I don't think there's much difference considering it's a Minetest crash 17:35 thomas_ something like that 2020-03-17 18:43:42: ERROR[Main]: /usr/share/games/minetest/builtin/common/vector.lua:134: in function 'divide' 17:35 Lone_Wolf hah 17:35 Lone_Wolf Do you have the rest of that? 17:36 thomas_ 2020-03-17 18:43:42: ERROR[Main]: /home/minetest/.minetest/mods/warps/init.lua:143: in function 'warp_queue_add' 17:36 thomas_ 2020-03-17 18:43:42: ERROR[Main]: /home/minetest/.minetest/mods/warps/init.lua:291: in function 17:36 thomas_ but the mod warps isn't used any more. 17:36 Lone_Wolf I think it is 17:37 thomas_ I started a new world, but we copied some buildings with worldedit schems 17:39 Lone_Wolf CD to your world dir and 'grep -R warps' 17:40 thomas_ ok, one moment 17:40 thomas_ Binary file rollback.sqlite matches 17:40 thomas_ world.mt:load_mod_warps = false 17:40 Lone_Wolf huh 17:42 Lone_Wolf Well I'm stumped 17:42 thomas_ this is how I start it 17:42 thomas_ nohup /usr/games/minetest --server --world /home/minetest/.minetest/worlds/3coronawelt/ --config /home/minetest/.minetest/worlds/3coronawelt/minetest.conf & 17:42 thomas_ Usually it works. 17:43 Lone_Wolf And you can tell it's doing the right world? 17:44 Lone_Wolf Unless that's an old error I'm stumped 17:45 sfan5 thomas_: can you locate a file called nohup.out? 17:45 sfan5 if yes, that should contain the log output 17:45 thomas_ yes, I have that 17:46 sfan5 anything in there that's not already in debug.txt? 17:46 thomas_ No, I dont think. 17:47 sfan5 hm 17:47 thomas_ somebody wants to come to my server and check whats wrong? 17:47 sfan5 try dmesg -T | grep minetest and see if a segfault shows up in there 17:47 sfan5 also which version are you running? 17:47 thomas_ I had mods that were not up to date. 17:48 thomas_ I used them with that world, then updated them, for example areas. Can that be the reason? 17:49 thomas_ dmesg: shows nothing as output (root) 17:50 thomas_ I'm using buster backports 17:52 thomas_ Minetest 5.1.1 (Linux) 17:52 thomas_ Using Irrlicht 1.8.4 17:52 thomas_ BUILD_TYPE=None 17:52 thomas_ RUN_IN_PLACE=0 17:52 thomas_ USE_GETTEXT=1 17:52 thomas_ USE_SOUND=1 17:52 thomas_ USE_CURL=1 17:52 thomas_ USE_FREETYPE=1 17:52 thomas_ USE_LUAJIT=1 17:52 thomas_ STATIC_SHAREDIR="/usr/share/games/minetest" 17:52 thomas_ Maybe it's an Irrlicht Problem? 17:53 thomas_ @sfan5, do you want to come to my server with ssh to check whats wrong? We want to do a minetest project during corona times for students and teachers. 17:53 sfan5 hmm, shouldn't be, the server doesn't use irrlicht at all 17:53 thomas_ ah, ok 17:53 sfan5 sure I could take a look 17:54 sfan5 though I prefer troubleshooting over irc 17:54 thomas_ ok 17:55 thomas_ what else should I check? 17:56 thomas_ is the mail mod still working? It's a bit outdated. 17:56 sfan5 my next idea would be to run the server in gdb and without nohup 17:56 sfan5 and see if/when it crashes 17:56 thomas_ how can I do that? 17:57 sfan5 gdb --args /usr/games/minetest --server --world /home/minetest/.minetest/worlds/3coronawelt/ --config /home/minetest/.minetest/worlds/3coronawelt/minetest.conf 17:57 sfan5 then enter "run" as a command 17:57 thomas_ ok, Ill try that. 18:02 thomas_ @sfan5, ok, now running under dbg 18:02 thomas_ [Thread 0x7ffff20db700 (LWP 26443) exited] 18:03 sfan5 if it actually crashes there will be a message that says something similar to "Program terminated with signal SIGSEGV, Segmentation fault." 18:03 thomas_ pvp_protect ist ausgeschaltet 18:04 thomas_ can I logout and it will continue? 18:04 thomas_ pvp_protect is off ... 18:04 sfan5 you can't 18:04 thomas_ no problem. Let's see, when i will happen again. 18:04 thomas_ Can I use dbg with nohup? 18:05 sfan5 don't think so 18:05 sfan5 but you can run it inside screen 18:06 sfan5 (https://wiki.ubuntuusers.de/Screen/) 18:07 thomas_ ok 18:08 thomas_ What is the best way to automatically restart the server when it crashes? 18:08 sfan5 a systemd service 18:09 thomas_ I tried that but did'nt make it. Is there a good guide somewhere? 18:10 Lone_Wolf I didn't have much trouble 18:10 Lone_Wolf I think I just googled 'how to make a systemd service' 18:11 Lone_Wolf Think it was set up to run an ssh file 18:11 sfan5 you can also use a bash script that runs the server in a loop, that's simpler 18:12 thomas_ Do you have a good example? 18:13 thomas_ I found some in the forum, but they seemed too complicated for me. 18:14 sfan5 https://0x0.st/iaUo.txt 18:15 sfan5 since that doesn't use nohup I suggest running that script inside screen 18:15 sfan5 then you can watch the output too 18:15 thomas_ thank you! 18:16 thomas_ [New Thread 0x7ffff18da700 (LWP 26616)] 18:16 thomas_ [Thread 0x7ffff18da700 (LWP 26616) exited] 18:16 thomas_ Is it normal, that threads are exiting? 18:16 Krock yes it is 18:16 Krock might be a startup-only thread, mapgen thread or whatever 18:17 Krock as long Minetest still runs it's fine. You'd get a message if it stopped working 18:17 thomas_ ok 18:30 thomas_ 2020-03-23 19:28:39: WARNING[Server]: Assignment to undeclared global "path" inside a function at /home/minetest/.minetest/mods/wiki/wikilib.lua:74. 18:30 thomas_ Is the wiki mod not working any more? But the server is still working ... 18:33 sfan5 that's just a warning 20:59 MinetestBot 02[git] 04dcbrwn -> 03minetest/minetest: Fix incorrect light updates for wielditem and item visuals (#9540) 13f3032a6 https://git.io/JvyBZ (152020-03-23T20:57:44Z) 22:14 Andrey01 Hello, why do I get a warning: "Invalid use of label without a size[] element", although I actually set that element? 22:16 DS-minetest the size element has to be used before any other element (apart from formspec_version) 22:23 Andrey01 I do so: https://pastebin.com/VBvTnRPQ 22:24 DS-minetest real_coordinates must not be before size 22:24 DS-minetest afaik 22:25 DS-minetest (and you don't have to enable them manually in fs version 3) 22:25 Andrey01 It will not fix the problem if swap them 22:26 DS-minetest first fs version, then size, then label 22:26 DS-minetest real_coordinates can be between size and label 22:27 DS-minetest oh, and maybe remove that space after the comma in size 22:27 Andrey01 Why should it be removed? 22:28 DS-minetest maybe the number can't be parsed correctly with the space 22:28 Andrey01 I`ll try now 22:32 Andrey01 I`ve removed the indent between X, Y and it changes nothing 22:33 DS-minetest do other elements work? 22:33 Andrey01 Also, it displays wrong text on label ("Proceed") instead "Select a vacant seat inside the vehicle below:" 22:34 DS-minetest that sounds like the simple field formspec 22:34 DS-minetest is there a text field? 22:35 DS-minetest could you repost what your formspec string is now? 22:35 Andrey01 Do you mean field element? 22:35 Andrey01 Yes, of course 22:38 Andrey01 https://pastebin.com/cme59yar 22:38 DS-minetest put real_coordinates after size 22:40 Andrey01 All the same happens 22:41 DS-minetest where are you using the formspec? 22:41 DS-minetest (if you set it as meta on node create, make sure you place a new node) 22:42 Andrey01 After clicking the object it calls minetest.show_formspec 22:45 Andrey01 May I paste the whole code? This is code library 22:45 DS-minetest sure, show a link 22:46 DS-minetest I've tried to reproduce with the formspec, but was not able to see anything unexpected 22:46 DS-minetest and field is drawn 22:48 Andrey01 https://pastebin.com/svb0VPtj 22:49 DS-minetest which line is do you open the fs? 22:49 DS-minetest 99? 22:50 Andrey01 The open function starts from 70 line 22:51 Andrey01 And it`s called on line 54 in on_rightclick 22:52 DS-minetest does it work if you comment out line 96? 22:54 Andrey01 No 22:54 DS-minetest btw. string.format would make your code more readable ;) http://www.lua.org/manual/5.1/manual.html#pdf-string.format 22:55 DS-minetest and indent with tabs! 22:56 DS-minetest what is your minetest version= 22:56 DS-minetest ? 22:56 Andrey01 What are tabs? 22:56 DS-minetest tabulaors 22:56 DS-minetest \t 22:57 DS-minetest these things: 22:57 Andrey01 5.0.0.23, I use Android version 22:57 DS-minetest 22:57 * DS-minetest wonders what that 23 is... 23:00 DS-minetest hm, 5.0 does not yet have formspec_version 23:00 Andrey01 It`s ended with '23' digits 23:00 Andrey01 You can look at Google Play in the description 23:01 DS-minetest btw. are you really modding in android?! O_o 23:01 Andrey01 Yes :) 23:01 DS-minetest oh god 23:01 Andrey01 Of course, it`s not completely convenient 23:02 Andrey01 Unlikely as on the desktop 23:03 DS-minetest try using only formspec elements that work for your version: no formspec_version 23:04 Andrey01 Probably will I need to erase 'real_coordinates', either? 23:05 DS-minetest maybe 23:05 DS-minetest but new elements don't hurt normally 23:05 DS-minetest (real_coordinates is added automatically somewhere in old versions) 23:07 Andrey01 Really, it will get worked! Thanks! 23:07 DS-minetest you're welcome 23:07 DS-minetest !next 23:07 MinetestBot Another satisfied customer. Next! 23:08 DS-minetest but update minetest and switch to pc with linux!