libera/#devuan/ Monday, 2023-04-17

sfoxhello i'm having trouble with devuan 401:32
sfoxclaws-mail on my desktop keeps having trouble connecting to  the sumbissions port on my mailserver01:32
sfoxmeanwhile my laptop also running devuan 4 and my roomate don't have any problems sending mail through the server01:33
sfoxthe network log says SSL/TLS handshake failure01:33
sfoxif i keep trying it will eventually go through01:33
sfoxbut not in a predictable amount of retries01:33
rrqsounds like dns issues01:33
sfoxI don't think so, it is actually connecting  to the server01:35
sfoxhere's the server side log:01:35
sfoxApr 16 08:32:31 mail3 smtpd[61032]: bba3e9706424a267 smtp connected address=[2001:470:e918:0:ba97:5aff:fecb:aa50] host=<unknown>01:35
sfoxApr 16 08:32:31 mail3 smtpd[61032]: bba3e9706424a267 smtp disconnected reason="io-error: No TLS error"01:35
sfoxi think it's a problem with the tls library01:35
sfoxi tried rolling back to libgnutls30 patch level u201:35
sfoxfrom u301:35
sfoxstill having this issue01:36
sfoxin wireshark claws-mail just seems to stop responding to tcp packets from the server. it's really weird. claws-mail also uses a ssl client hello version 1.0 instead of a 1.2 or 1.301:36
sfoxwhich the server does claim to support01:38
sfoxbut it definitely not ideal01:38
sfoxwhat's also weird is that the imaps port doesn't have this problem at all01:45
gnarfacesfox: are you controlling the dns server too? make sure you're passing both tcp and udp to port 5303:55
gnarfaceif that doesn't work, try using the same mail client as your roommate03:56
sfoxgnarface, they are04:14
sfoxand i am using the same client04:14
sfoxclaws-mail on devuan 404:14
sfoxbullseye04:15
gnarfacedamn, weird04:17
gnarfaceyou check versions on all the tls libraries and such?04:17
gnarfacethere's not much else it could be besides maybe clock drift04:17
gnarfaceor hardware/connection failure04:18
gnarfaceis your roommate using the same exact uplink, with the same exact outgoing IP?04:18
gnarfaceif you're using separate outbound connections i'd consider one of them might be suspect04:19
gnarfacebut make sure you check your clocks too04:23
gnarfacerelatively recent changes in default ssl and dns implementations mean stuff tends to break if you're more than a couple minutes off now04:23
gnarfaceif your clock had started to drift just barely out of range that could explain the intermittent behavior04:23
sfoxwere both on the same lan segment04:56
sfoxchecking times04:59
gnarfaceif you don't want to be running ntp, you can get a quick one-time time sync with the ntpdate program05:00
gnarfacewith multiple machines on the same LAN though, running ntp against a local time server can be beneficial05:01
sfoxi see on my server ntp started on boot but for some reason is not running05:01
gnarfacethat's odd05:01
sfoxyeah05:02
sfoxalso when i start it and run service ntpd status it says it's running, but wait a few minutes and not anymore05:02
gnarfaceare you using the same dns servers as your roommate?05:03
Xenguysfox: for ntp there's also chrony, FWIW05:05
sfoxthe server is freebsd05:05
sfoxgnarface, yes05:05
gnarfacenote that BSD's "ntp" is not actually ntp, and i have had some compatibility problems with it and real ntp before05:07
sfoxcomaptibility problems?05:10
gnarfaceyes, failure to sync time05:12
gnarfacesometimes random client exits related to that05:12
rwpWhich of the BSDs?05:12
gnarfacewell, for sure i only know of this problem with openbsd but i assume (perhaps naively) that freebsd is using the same ntp daemon05:12
rwpI haven't had any trouble with them myself on either FreeBSD or NetBSD.05:13
gnarfaceit does usually work05:13
gnarfacebut usually is the important qualifier05:13
rwpSounds like a system that is too far out of sync, such as booting at time zero 1970, and ntpd needing -g option but not given it.05:14
rwpIf the time is more than 1000 seconds off by default ntpd gives up unless -g is given in which case it steps the time (like ntpdate).05:15
rwpMost systems should boot with ntpd -g so as to set the time at boot time regardless of if the clock is close or far off.05:15
gnarfacethe last time i had any problem with it was a long time ago so it could have been fixed by now05:19
rwpFor Devuan I think the default is NTPD_OPTS='-g' in /etc/default/ntp file so this happens automatically in Debian/Devuan.05:21
sfoxproblem was ntpd_sync_on_start was not set and the time different was too large to it killed itself05:22
rwpBut for FreeBSD (since you mentioned BSD) there is no default.  Must read "man rc.conf" search down /ntp and see ntpd_sync_on_start="YES" should be set to get that same behavior.05:22
rwpRaspberry Pi's always have this problem because they do not have a battery backed clock and so always boot to time zero 1970.05:23
sfoxhopefully this fixes it05:23
rwpRaspbian has a clever package hack that sets the time to the timestamp of a file that it saves to hold the last time seen.  So it will be recent but not completely correct.  Yesterday if it was last run yesterday.  Or last week if last run last week.05:24
sfoxi can't believe this whole time my servers didn't have the correct time05:24
rwpAnd if the time is not in sync then as we all know all https certificate validations fail due to time being incorrect.05:24
gnarfacepretty much all ARM SoCs in the wild have this problem05:24
gnarfaceand the quality of clock chips going into all computers these days is significantly worse than it used to be in the 90's; much more drift05:25
rwpThe Banana Pi boards that I like have battery pads that one can solder on a backup battery and if so then they have a real time clock.  But one would need to do the solder job to add the battery.05:25
rwpsfox, After getting ntp started check the health of it with "ntpq -p".  That will return the servers associated and various information.05:29
sfoxthanks i was looking for that05:29
rwpThe offset and jitter we would like to be small numbers but reality is that those are outside of our control.05:29
rwpThe "reach" field is an octal bit map.  Each 1 is a hit.  It's okay to have some holes.  But generally when all working it will be octal 377 all ones.05:30
rwpImagine a shift register for it where every good ping is a 1 and every missing is a 0 shifted into the pipeline of the shift register.05:30
sfoxit's all 37 with the exception of 1 7705:31
rwpThe poll starts out at 64 seconds but as things stabilize it will expand that to 1024 seconds if things are locked in and the network is stable.05:31
sfoxwhat an esoteric piece of software05:31
rwpSince you just starte dit that's all of the ones that came in.  3 is 11 and 7 is 111 so 37 is 11111 and 77 is 11111105:31
rwpEsoteric?  Hahaha!  There is really much worse out there.  This is telling you the debug information.  Which assumes some understanding of what it is trying to say.  Which is why I was hoping to hint the parts of it.05:32
rwpBut 37 and 77 and eventually 377 is all ones and that's a good response.  Means your network is reliable and is not dropping packets.05:33
rwpSince ntp uses UDP the Unreliable Datagram Protocol and routers that are overwhelmed and overloaded drop UDP packets first when needing to shed load.05:33
sfoxmost of them are 377 now05:34
rwpWhich is fine from an ntp point of view.  It will handle it just fine.  But if the routers are dropping packets then it is an indication that things are overloaded.05:34
rwpGood!  377 is all 1's and meaning that you have in the last 8 attempts been successful talking to the server and peer timeservers.  Good.05:35
sfoxi guess i should unblock libgnutls30 upgrades and see if it's still an issue05:35
rwpThe poll time starts out at 64 seconds.  After things become predictable it will back those off to 1024 seconds polling eventually.  Assuming the link is stable.05:35
sfoxrwp do you know a lot about freebsd?05:35
rwpIn the case of an unstable link it will dynamically adapt.05:35
rwpFreeBSD?  A lot?  I don't know.  I use it.  But ntp?  Have been using it for a lot of years.05:36
rwp(For the lurkers sfox and I were also chatting in #freebsd about ntp too.)05:36
brocashelmi use openntpd instead of ntpsec/ntp nowadays06:42
brocashelmpretty light06:42
avboxIs there a way to install php8.x to oldstable?21:00
fsmithredprobably have to backport it if it's not already in beowulf-backports21:03
avboxbeowulf-backports is in sources /etc/apt/sources.list. apt-cache search php8 does not give results. So it is not yet on in backports? Or do I have do anything else to lookup for it?21:08
brocashelmi don't think there will be any further backporting to beowulf. chimaera is about to go oldstable21:28
brocashelmespecially with the freeze right now21:30
avboxI'm install now chimaera, there is php7.4, is there php8 in backports?21:54
brocashelmunfortunately, no, it looks like php8.2 packages are daedalus and newer22:20
brocashelmhttps://packages.debian.org/bookworm/php22:21
brocashelmyou could maybe try to build php8 from source with chimaera, if you have the correct -dev packages22:21
brocashelmenable the src repo and then run apt build-dep php22:22
brocashelmhttps://www.spix.nu/linux/how-to-compile-and-install-the-latest-version-of-php-7-from-source-code-on-debian/22:23
Jjp137there's also this third-party repo but usual things about third-party repos apply: https://dev1galaxy.org/viewtopic.php?pid=41211#p4121122:24
brocashelmand then with third-party repos, you can only get support from the actual maintainers of those repos, not devuan/debian22:26
golinuxbroca23:25
golinuxoops23:25
golinuxJjp137: deb.sury.org has been providing php for Devuan for many years and I can't remember ever hearing a complaint.23:26
avbox@golinux: I believe in that I did try to use deb.sury.org, but it complainted about that no beowulf package is available.23:46
brocashelmavbox: please copy and paste output to a paste site like dpaste.org23:58

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!