00:14:35 Unstable branch on cbro.berotato.org updated to: 0.30-a0-739-gea05faddec (34) 00:54:20 Monster database of master branch on crawl.develz.org updated to: 0.30-a0-739-gea05faddec 01:32:00 Fork (bcrawl) on crawl.kelbi.org updated to: 0.23-a0-4850-gd9e8576752 01:33:38 Fork (bcadrencrawl) on crawl.kelbi.org updated to: 0.03-1488-g4fb6b9f185 04:05:47 <02N​amanix> Heya! Due to some randsomware problems with ESXI I needed to do some necessary updates. Which meant shutting down the crawl server as well. Updates are done but now when starting up the crawl server webtiles doesn't start anymore. And I have no idea why. Do any of you know what to do? 🙂 Feb 04 11:00:36 crawl_com webtiles[2410]: * Starting webtiles server webtiles Feb 04 11:00:36 crawl_com webtiles[2410]: Traceback (most recent 04:05:48 call last): Feb 04 11:00:36 crawl_com webtiles[2410]: File "./server.py", line 6, in Feb 04 11:00:36 crawl_com webtiles[2410]: import webtiles, webtiles.server, webtiles.config Feb 04 11:00:36 crawl_com webtiles[2410]: File "/home/crawl/DGL/crawl-master/webserver/webtiles/server.py", line 21, in Feb 04 11:00:36 crawl_com webtiles[2410]: from webtiles import auth, load_games, process_handler, userdb, config Feb 04 11:00:36 04:05:48 crawl_com webtiles[2410]: File "/home/crawl/DGL/crawl-master/webserver/webtiles/auth.py", line 9, in Feb 04 11:00:36 crawl_com webtiles[2410]: from webtiles import config Feb 04 11:00:36 crawl_com webtiles[2410]: File "/home/crawl/DGL/crawl-master/webserver/webtiles/config.py", line 4, in Feb 04 11:00:36 crawl_com webtiles[2410]: import builtins Feb 04 11:00:36 crawl_com webtiles[2410]: ImportError: No module named builtins 04:05:49 Feb 04 11:00:36 crawl_com webtiles[2410]: ...fail! Feb 04 11:00:36 crawl_com systemd[1]: webtiles.service: Control process exited, code=exited status=1 Feb 04 11:00:36 crawl_com systemd[1]: webtiles.service: Failed with result 'exit-code'. Feb 04 11:00:36 crawl_com systemd[1]: Failed to start LSB: Start/stop Dungeon Crawl webtiles server. 04:06:10 <02N​amanix> It can't find "builtins"? That should not happen on a restart right? 04:22:51 Experimental (bcrawl) branch on underhound.eu updated to: 0.23-a0-4850-gd9e8576752 04:28:41 <02N​amanix> After some software installs I now get this. What the hell is going on.... 2023-02-04 11:27:51,714 INFO: Listening on 51.15.154.10:2354 2023-02-04 11:27:51,771 ERROR: You are running a deprecated version of tornado; please update to at least version 4. 2023-02-04 11:27:51,906 INFO: Blocking call timeout: 500ms. 2023-02-04 11:27:51,906 ERROR: Server startup failed! Traceback (most recent call last): File 04:28:41 "/home/crawl/DGL/crawl-master/webserver/webtiles/server.py", line 748, in run File "/home/crawl/DGL/crawl-master/webserver/webtiles/ws_handler.py", line 186, in status_file_timeout File "/home/crawl/DGL/crawl-master/webserver/webtiles/ws_handler.py", line 178, in write_dgl_status_file File "/home/crawl/DGL/crawl-master/webserver/webtiles/util.py", line 39, in __enter__ AttributeError: 'module' object has no attribute 'monotonic' 05:06:27 Unstable branch on crawl.akrasiac.org updated to: 0.30-a0-739-gea05fad (34) 07:36:59 <06a​dvil> @Namanix what version of python and tornado are you using? 07:37:39 <06a​dvil> that error suggests probably python 2 07:38:05 <06a​dvil> (time.monotonic() was added in py3.3) 07:38:32 <06a​dvil> and the deprecation message suggests old tornado 3 07:38:49 <06a​dvil> so I would recommend using python 3 and current tornado (6.1 or whatever installs from pip) 07:58:34 03advil02 07* 0.30-a0-740-g6493da8e45: fix: fully disallow python 2, tweak deprecation handling 10(5 minutes ago, 2 files, 10+ 5-) 13https://github.com/crawl/crawl/commit/6493da8e45f3 08:05:24 Unstable branch on crawl.kelbi.org updated to: 0.30-a0-740-g6493da8e45 (34) 09:12:07 03advil02 07* 0.30-a0-741-g59b9271927: docs: update webtiles changelog 10(2 minutes ago, 1 file, 71+ 10-) 13https://github.com/crawl/crawl/commit/59b9271927ca 09:13:42 <09g​ammafunk> TiL we have a webtiles changelog 09:15:24 <06a​dvil> heh I only added it sometime in 2022 09:15:51 <06a​dvil> but I realized everything that I was writing in those update issues for server admins would be better written more permanently 09:16:03 <09g​ammafunk> yeah, good info, I think I completely missed that commit where you added the RESTful front-end to the lobby 09:16:14 <06a​dvil> right, it's potentially quite relevant to you! 09:16:28 <06a​dvil> though it might still be better to receive lobby updates incrementally? 09:16:29 <06a​dvil> not sure 09:16:46 <06a​dvil> I think that's more efficient once you've done the work to get it going 09:16:49 <06a​dvil> which you have 09:17:09 <06a​dvil> not simpler tho 09:17:52 <09g​ammafunk> right, I have to go through all the work to initiate, process, and maintain websocket connections anyhow, so switching to this wouldn't let me remove much code-wise 09:18:08 <09g​ammafunk> but I should take a closer look at some point when I finally sit down and fix some beem bugs 09:18:27 <06a​dvil> I guess using this API wouldn't require you to maintain state 09:18:38 <06a​dvil> but you still might want to for beem 09:19:05 <06a​dvil> the current approach essentially lets the server push lobby updates to you, right? 09:19:23 <09g​ammafunk> to be honest, lobby state handling is just not very complicated. It's actually somewhat helpful to have the websocket approach in that the lobby initiates messages upon state change, yeah 09:19:33 <09g​ammafunk> so that's how I know to set up or tear down a connection 09:20:10 <06a​dvil> I was also thinking of adding a simple endpoint that gives server version and maybe game info, this one is selfish because I'm tired of having incomplete info about what server is running what 09:20:40 <09g​ammafunk> would that be able to handle the dgl trunk situation as well? 09:20:47 <09g​ammafunk> I guess you just report the latest trunk available 09:21:25 <06a​dvil> maybe, the simplest approach would be to just report the game config info rather than actual version, though I think the server does have actual version info 09:21:36 <06a​dvil> it does seem like that'd be nice to have an API for 09:22:09 <06a​dvil> ofc this all presents another surface for badly behaved bots... 09:22:42 <09g​ammafunk> yeah, kind of a general issue when you take something like webtiles and slowly extend it to have more and more functionality related to server admin 09:24:13 <06a​dvil> but (assuming I get to fixing the rest of it) having this endpoint is still probably better than the insane dglwhere stuff 09:26:08 Unstable branch on crawl.kelbi.org updated to: 0.30-a0-741-g59b9271927 (34) 09:29:27 <06a​dvil> hm, need to find a new irc bouncer or give up on persistent irc connections (which just I don't use very much any more, and 80% of it is connecting to sequell/chei directly) 09:30:18 <06a​dvil> I suppose I could probably go oldschool and just run irssi in screen on cao or sth 09:31:14 <06a​dvil> also, lol at irssi's tagline, "the client of the future" 09:34:25 <06a​dvil> I find matrix not bad for keeping an eye on things, but it does still seem that there are a lot of rough edges 09:35:21 <06a​dvil> with the irc bridge at least 09:35:23 <06a​dvil> whenever someone asks a question in #libera-matrix the answer seems to be don't ask here we can't actually do or fix anything 🤷 09:37:16 -!- robin_ is now known as robin 11:21:38 <02N​amanix> @advil I just installed Tornado 6.1 but still the same error. Do I need to uninstall python 2 or something? python command is 2.7.17. python3 command is 3.6.9 11:22:03 <02N​amanix> Type "help", "copyright", "credits" or "license" for more information. >>> import tornado >>> tornado.version '6.1' >>> 11:22:03 <06a​dvil> you might want to check what /etc/init.d/webtiles looks like, you might explicitly have py27 there? 11:22:29 <06a​dvil> also one other note, you'll probably want to copy the python library for that version into the chroot (didn't used to be necessary) 11:23:33 <02N​amanix> PYTHONPATH=/home/crawl-dev/tornado/ python ./server.py So change this to python3? 11:23:49 <06a​dvil> yeah, maybe try python 3 there, and also drop the tornado part 11:23:51 <06a​dvil> e.g. on cao (which has a somewhat idiosyncratic setup, different from yours probably) I have copyed /usr/local/lib/python3.10/ to /chroot/usr/local/lib/python3.10/ 11:24:28 <02N​amanix> PYTHONPATH=python3 ./server.py Like that? 11:24:32 <02N​amanix> I'll give it a try 🙂 11:24:38 <06a​dvil> just python3 ./server.py 11:25:00 <06a​dvil> PYTHONPATH=/home/crawl-dev/tornado/ is setting an env variable before the following call, but you don't want that any more 11:25:02 <02N​amanix> Oh so no pythonpath 11:25:08 <02N​amanix> Alright! 11:25:10 <06a​dvil> yeah 11:25:18 <02N​amanix> Let's test! 11:26:50 <02N​amanix> Okay now tornado.platform could not be found. So I think I need to do the copy to chroot indeed 11:26:57 <06a​dvil> yes, that is the library issue 11:28:50 <06a​dvil> I wonder if I could add an explicit log message that highlights that problem 11:29:30 <02N​amanix> Fingers crossed! 11:29:36 <02N​amanix> Testing again 🙂 11:31:42 <02N​amanix> IT LIVES! 11:31:49 <06a​dvil> great! 11:31:58 <02N​amanix> Alright! Thank you so much for the help! Now back to bed. I really need to get rid of this flu..... 11:32:07 <06a​dvil> augh, hope you feel better 11:32:20 <06a​dvil> I think this might be the last server to update to py3, which if so, would be great news 11:33:17 <02N​amanix> Awesome! Have a great weekend! 12:27:03 <09g​ammafunk> posting my reddit rant about the devs removing python2 from the game 12:27:39 <09g​ammafunk> snake branch has lost all of its theme and flavor now 12:51:38 03advil02 07* 0.30-a0-742-g74f6264c45: fix: better handle a webtiles chroot error case 10(5 minutes ago, 1 file, 22+ 4-) 13https://github.com/crawl/crawl/commit/74f6264c4521 12:52:51 <06a​dvil> lol at https://www.reddit.com/r/dcss/comments/10t9qss/oops/, but also maybe a bug? 13:05:14 Unstable branch on crawl.kelbi.org updated to: 0.30-a0-742-g74f6264c45 (34) 13:11:36 <10P​leasingFungus> possible 14:13:37 03advil02 07* 0.30-a0-743-gbfdf073431: feat: try `w` for map mode add waypoint 10(4 minutes ago, 2 files, 2+ 1-) 13https://github.com/crawl/crawl/commit/bfdf0734319a 14:14:28 <06a​dvil> I have very little idea how to fix the bug with the waypoint prompt not showing 14:15:24 <06a​dvil> in older versions (and console still for that matter) the map awkwardly change size so that the message pane became visible, but that was a completely different ui implementation on the js side 14:19:50 Unstable branch on crawl.kelbi.org updated to: 0.30-a0-743-gbfdf073431 (34) 14:24:12 <06a​dvil> maybe it would be possible to force the msg pane visible 16:25:01 Unstable branch on underhound.eu updated to: 0.30-a0-743-gbfdf073431 (34) 19:57:12 03mgdelmonte02 07https://github.com/crawl/crawl/pull/2675 * 0.30-a0-5-g9ae0634405: add unvisited for shops 10(2 days ago, 1 file, 9+ 3-) 13https://github.com/crawl/crawl/commit/9ae0634405ec 20:08:46 New branch created: pull/2986 (1 commit) 13https://github.com/crawl/crawl/pull/2986 20:08:47 03Michael Del Monte02 07https://github.com/crawl/crawl/pull/2986 * 0.30-a0-586-g013439c348: Makes _safe_move_player also clear the command buffer. 10(5 days ago, 1 file, 4+ 1-) 13https://github.com/crawl/crawl/commit/013439c3489d 22:45:01 -!- mu is now known as misha 23:57:13 Windows builds of master branch on crawl.develz.org updated to: 0.30-a0-743-gbfdf073431