IRC Logs for #crux-devel Friday, 2019-04-26

*** xor29ah has quit IRC02:50
*** xor29ah has joined #crux-devel03:19
jaegerOK, I think I have the timeline fixed... if you see anything still wrong with it let me know04:36
jaegerchanges are here if you want to see them: http://ix.io/1HeO04:58
jaegeronly the explode change is strictly necessary, the others are cosmetic04:58
TimB_jue: thanks for the clarification on glibc06:55
TimB_pfew, I have wrapped up something around 100 perl modules for biber (to use with texlive) - fun :D08:06
Romsterso i would have to give up python3 for core for glibc on the next next crux 3.608:47
ryuoso python is finally a core requirement?09:00
ryuoor will be?09:00
ryuoi guess it is unless you find a way to disable it.09:01
ryuoseems to use python for scripts.09:04
ryuoit'll take python2 or python309:05
ryuoi'll see if i can build glibc 2.29 without python09:05
ryuoor not.09:06
ryuohm.09:06
ryuowell, only one python needs to be installed.09:06
ryuoit might be possible to disable python, but should you try to hack around the problem?09:06
ryuoseems like python is starting to eat perl's lunch.09:07
*** stenur has joined #crux-devel11:54
*** xor29ah has quit IRC12:11
*** xor29ah has joined #crux-devel12:14
juejaeger: thanks a lot for the timeline fix :)12:20
*** stenur has quit IRC13:20
*** stenur has joined #crux-devel13:44
jaegersure :)13:49
*** stenur has quit IRC14:56
*** onodera has joined #crux-devel15:29
jaegerAnyone else get a 'service unavailable' error trying to log into flyspray currently?16:19
TimB_jaeger: works for me16:20
jaegerhrmm16:21
jaegerI can view it without logging in but not logged in16:22
jaegerdoh, now I've broken it :P16:26
TimB_"This should never happend" oh wow16:27
*** Workster has joined #crux-devel16:27
jaegerphp-fpm had not been restarted since the upgrade so there was some bastard version mix between php 7 and earlier happening16:29
jaegerbut the mysql_* stuff is gone from php 716:30
jaegerjue,frinnst,tek_: who upgrades/maintains flyspray generally? I see it's not installed from a port16:31
jaegerI have to go for a bit but will attempt to upgrade it later. Sorry for breaking it and then leaving, bad timing :/16:47
*** stenur has joined #crux-devel17:31
*** stenur_ has joined #crux-devel17:36
juejaeger: you mean opt/php_mysql? It's still there ...17:40
juejaeger: no idea about flyspray, IIRC tek_, but not sure17:42
jaegerI'm looking at flyspray now17:42
jaegerI don't think that any of the mysql_* stuff works with php 7 but if you have time to take a look it might help17:43
jaegersee https://www.php.net/manual/en/function.mysql-connect.php for example17:45
jaegerremoved in php 717:45
jaegerAh, php-mysql provides the replacement extensions like mysqli.so, I guess17:47
juehmm, phpmyadmin works for me with php 7.2.1717:50
juewith php-mysql installed oc17:50
jaegerI must be missing something... still seeing mysql_connect problems from flyspray17:51
jaegerI have to be on a call in just a few minutes17:54
jaegerstill digging in, just will be slower17:59
jaegerok, it's working again, but doesn't look right18:02
jaegerdamn it, the main site also doesn't work properly18:03
ryuojaeger: you are correct. mysql module was deprecated a long time ago and finally remove in PHP7.18:12
jaegeryeah... switched flyspray to myslqi and it seems happier, aside from CSS issues and warnings18:13
jaegerbut now pmwiki is broken :P18:13
jaegerI hate the php bubble sometimes18:13
ryuojust the nature of the beast.18:13
ryuowas pmwiki homebrew?18:14
jaegerNot as far as I know18:14
jaegerBut having just broken flyspray I'd prefer to have some oversight or opinion from jue and frinnst rather than me messing with it too much :P18:14
ryuoseems pmwiki is maintained.18:15
ryuowhat version is crux.nu using?18:15
jaegerlooks like 2.2.9918:16
jaegervs. 2.2.11418:16
ryuoprobably time to upgrade it.18:17
ryuohm. any idea if this is related to MySQL access?18:18
ryuoit appears the default pmwiki has no database API usage.18:18
jaegerIt seems to be a preg_replace issue18:18
ryuoi see.18:18
jaegerneed to switch to preg_replace_callback but it's not just a search/replace18:18
ryuotry upgrading the base. it may be fixed in a newer release.18:18
ryuoi frequently see maintained PHP releases do updates for compatibility fixes.18:19
juejaeger: guess it's a permission problem18:19
jaegeractually, looks like the preg_replace thing is a warning18:19
juethe pmwiki version is definitly ok18:19
jaegerthere's also this:AH01071: Got error 'PHP message: PHP Deprecated:  Function create_function() is deprecated18:20
ryuoYep.18:20
ryuoThe changelog mentions PHP 7.2 fixes.18:20
juewell, the wiki works an hour ago, so what happened?18:20
ryuoI think jaeger finallly upgraded the PHP.18:21
jaegeran hour ago it was still running php 518:21
jaegerphp got upgraded with the server upgrade but php-fpm was never restarted18:21
jaegerso it was running the old version and was going to break the first time it got restarted or the server got rebooted18:21
ryuoi'd advise upgrading pmwiki. it should fix the remaining issues.18:21
jaegerjue: do we have any pmwiki customizations? If not, I agree with ryuo that upgrading pmwiki first is probably a good idea18:21
jueno, an update should be smooth18:22
ryuomake a backup just in case though.18:22
ryuoPHP is not easy to upgrade.18:22
juerunning it here locally without issues18:22
jaegerI'm still on a work call so if you have time/inclination to upgrade it currently, please feel free... otherwise I'll try later18:23
ryuowell, i'd help, but i have no root access.18:23
ryuoi've been learning PHP.18:24
juejaeger: I see that you changed wiki.d to jaeger:jaeger but that should be owned by the user running apache, guess www18:24
jaegerI don't recall ever doing that18:25
jaegerI also never would have made it 77718:25
jaegerthat's terrible18:25
ryuoyou know what a hacker calls mode 777?18:26
ryuoJACKPOT18:26
juefixed that18:26
jaegerEither root:www and 770 or www:www and 750 would be fine with me (or similar)18:26
jaegerbut I'm *sure* I never changed that folder to jaeger:jaeger 777 :D18:26
jaegerFortunately the files therein were not the same, just the folder... but still, that was either someone else or an artifact of a system restore18:28
jaegerok, I'm off that call now18:32
jaegerjue: should I give updating pmwiki a try?18:32
ryuoi thought they were basically saying that, jaeger.18:33
jaegerthey who?18:33
ryuojue | no, an update should be smooth18:33
jaegeroh18:33
jaegeryeah, I just didn't know if he was going to do it while I was busy18:34
jaegerthis whole exercise is a decent example of why we should maybe consider containerizing the web server18:34
ryuowell, i did work on LXC. it's not hard to get it running.18:35
ryuoi think i still have the files somewhere.18:35
jaegerjue: pmwiki is locked by prt-get - I don't recall if I did that during the upgrade or if someone else did18:36
juesorry, no idea18:37
jaegerhrmm, ok18:37
juebut we should upgrade, there were several fixes for php 718:37
jaegerok, I'll update it and see. I have backups18:37
jaegerjue: what do you think about containerizing services like that? Just curious, I'm not pushing or dead set on it18:40
jaegerwould decouple the php version from the system, etc.18:40
juethat's fine for me18:40
ryuojaeger: i can dig up my LXC port if you'd like.18:40
ryuoi also have scripts for generating LXC containers for CRUX.18:41
ryuoTimB_ has already used them successfully.18:41
TimB_was just gonna confirm that18:41
ryuoi wanted to deploy it to contrib, but i can't get tek_ to budge.18:42
ryuoACTION shrugs.18:42
ryuoi'll see what i can find.18:42
jaegerWhat would be the benefit/difference using lxc vs. docker?18:43
jaegerI ask because I'm familiar with docker, not lxc18:43
ryuodocker is more application centric.18:43
ryuoLXC is optimized for VPS style deployments.18:44
ryuoit's closer to what a VM provides.18:44
ryuoLXC isn't very hard to use.18:44
ryuoi guess it depends.18:45
ryuojaeger: i've used LXD and LXC. they're good replacements for virtual machines, but perhaps docker is more optimal for specialized deployments.18:46
ryuoi just like it because they work mostly like a regular machine.18:47
ryuoso i don't need to learn anything particularly special to configure them.18:47
jaegerI was just thinking of the web server and php in this case, but I would be fine with it if it makes more sense18:47
ryuoyou have your choice of any distribution you can make an image for.18:47
ryuoLXC comes with prebuilts for a number of mainstream distributions.18:48
ryuoi made some scripts to produce images you can use to make CRUX containers.18:48
ryuoit's rather straight forward if you're not doing anything fancy.18:49
jaegerLooks like upgrading pmwiki does not fix the problem18:49
ryuodoes it help at least?18:50
ryuoif you'd like i can take a look, but i'd need access.18:50
jaegerDidn't make any difference, it seems. the new version still uses preg_replace on line 179018:51
ryuoi see.18:51
ryuoit sounds like you'll need a PHP programmer to fix that.18:52
ryuodo you want me to take a look?18:52
jaegerIt would be nice if we didn't have to rewrite upstream shit, I'd rather know why it's not working than start breaking it18:52
jaegerfeel free to take a look if you want, there are copies in /var/www/htdocs and /var/www/pmwiki18:53
ryuoi don't have access to the host.18:53
ryuohm.18:53
ryuolet's see about this preg_replace.18:53
jaegerOh, I thought since you said no root access earlier you did have access, just not root. you could always install pmwiki locally and look at pmwiki.php18:53
ryuoindeed.18:54
ryuowhat's the error?18:54
ryuoi'm getting none on PHP 7.2 on ubuntu bionic18:54
jaeger[Fri Apr 26 18:51:57.538703 2019] [proxy_fcgi:error] [pid 24382:tid 140070015198976] [client 80.192.4.55:44222] AH01071: Got error 'PHP message: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback18:55
jaegerinstead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:18:55
jaegerpreg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback18:55
jaegerinstead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:18:55
jaegerpreg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/htdocs/pmwiki.php on line 1790\nPHP message: PHP Warning:  preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/htdocs/pmwiki.php on line 1790\n', referer: https://crux.nu/Main/UserSettings18:55
jaegeryeeesh, I should have pastebinned that18:55
ryuook...18:55
jaegerWasn't expecting it to be quite that long, sorry18:55
ryuoelse $x=preg_replace($p,$r,$x);18:56
ryuois this line 1790 on your system?18:56
jaegeryes, it's unmodified18:56
juehmm, that's strange I'm running the latest pmwiki with php 7 without any error18:56
jaegerIt seems like the php is actually running despite the warnings... it's just not producing output18:56
jaegerrunning it in cli instead of the web server produces a broken page, too18:57
juejust switched from mathopd to apache to have a comparable setup18:57
jaegerSo I guess it's not a php error causing problems here18:57
jaegerphp-fpm was making me think that warning was actually a fatal error but it seems that was a red herring18:58
jaegerryuo: ^18:58
jaegerjust so you don't spend a lot of time down that path18:58
juejaeger: we have pmwiki 2.2.114?18:58
jaegeryes18:59
ryuojaeger: what version of PHP is running on the host?18:59
ryuo7.2?18:59
jaeger7.2.1619:00
ryuook.19:00
ryuoit's possible some extension is using a pattern with the /e modifier.19:00
ryuoi'd have to have access to the host to figure out where the hell that pattern is coming from.19:00
jueyeah, we coming closer19:01
juejust removed any addon19:01
ryuobasically, it's saying the pattern to preg_replace is using a removed modifier.19:01
ryuohttps://www.php.net/manual/en/function.preg-replace.php19:02
jaegermain page works again19:02
ryuoso what'd you do?19:02
jaegerNothing19:02
jaegerI assume it was jue's addon removal19:02
ryuoabout page is busted.19:03
ryuooh.19:03
jueyep, found it, it's timeline19:03
ryuothey're all busted now.19:03
ryuowho maintains timeline?19:03
jaegerIt was working, now broken again19:03
juesorry, testing19:03
jaegerAh, ok. :) I'll wait :)19:04
juebut it's defeniotely our timeline19:04
jaegerGood to narrow it down.19:04
ryuojue: do you want me to try to patch it?19:04
jaegerryuo: not sure. I've fixed the timeline updater several times but I haven't messed with the timeline plugin/addon itself19:04
ryuowhere's the source from?19:04
ryuois it custom or someone else's program?19:05
*** groovy2shoes has quit IRC19:05
juecustom19:05
jaegerah19:05
ryuook... where can i get the source?19:05
ryuoi have no shell access to crux.nu. at the very least i need the source to figure it out.19:05
jue2 parts, fist the timeline.php in cookbook19:06
ryuois it in some repo i can clone?19:06
juehmm, jaeger, where is the second part?19:07
ryuoeh, i guess i'll butt out for now.19:07
ryuolet me know if you need someone else to try to fix it.19:07
jueryuo: it was written for a looooong time by sip19:08
ryuoand who or where is this sip?19:08
jaegerjue: the second part being what? the cacher?19:09
ryuoi'm still learning PHP but i'm still a competent programmer. i can probably fix it.19:09
juejaeger. yeah19:09
jaegerIt's a cron job run as the crux user19:10
jaegernever used by the web server19:10
jaegersee ~crux/bin/tlcacher.php19:10
ryuoACTION is invisible.19:10
jaegerryuo: simone rota, was a crux guy long ago19:11
ryuoi see.19:11
TimB_iirc he wrote slim19:12
juewell, than only cookbook/timeline.php19:13
ryuoACTION grabs a slim jim.19:13
jaegeryeah, forked from Per's login.app19:13
jaegerjue: /var/www/htdocs/cookbook19:13
jueyes19:13
jaegerSorry, thought you were asking where to find it.19:14
ryuojaeger: i take it jue knows how to write PHP then?19:15
jueryuo: no ;)19:15
ryuook..19:15
ryuohow do you expect to fix a broken custom application then?19:16
ryuothere's no 3rd party to get fixes from like the main pmwiki software.19:16
jueuntil now jaeger fixed the timeline successfully :)19:16
ryuoi see.19:16
jueand our timeline is nice but not essential19:17
ryuojaeger: well, if it's too much for you, send me the source and i can take a look.19:17
jueand our wiki is back which _is_ essential19:18
jaegersorry, getting pulled away to work stuff. I'll take a look at the timeline later as well19:21
jaegerryuo: if I can't figure it out I'll check with you19:21
ryuook.19:21
jaegerthanks to you both19:21
*** onodera has quit IRC21:59
*** stenur has quit IRC23:07
*** stenur_ has quit IRC23:27

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!