FS#74139 - [unrealircd] unrealircd.ctl: No such file or directory

Attached to Project: Community Packages
Opened by techge (techge) - Wednesday, 16 March 2022, 08:32 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 10 February 2023, 18:47 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

After updating to unrealircd 6 (coming from 5), it does not start, because /build/unrealircd/data/unrealircd.ctl is missing. See journalctl message below.
I did every adaption of config mentioned here https://www.unrealircd.org/docs/Upgrading_from_5.x
It seems to be a problem with the package though.

Mar 15 08:41:02 system unrealircd[729101]: [error] Warning: TLS certificate '/etc/unrealircd/tls/server.cert.pem': certificate expired 1482d13h45m25s ago
Mar 15 08:41:02 system unrealircd[729101]: [info] Configuration loaded
Mar 15 08:41:02 system unrealircd[729101]: [info] Configuration test passed OK
Mar 15 08:41:02 system unrealircd[729101]: [info] UnrealIRCd is now listening on the following addresses/ports:
Mar 15 08:41:02 system unrealircd[729101]: [info] IPv4: *:6900(TLS), *:6697(TLS), *:6667
Mar 15 08:41:02 system unrealircd[729101]: [info] IPv6: *:6900(TLS), *:6697(TLS), *:6667
Mar 15 08:41:02 system unrealircd[729101]: [fatal] Could not listen on UNIX domain socket /build/unrealircd/data/unrealircd.ctl: No such file or directory
Mar 15 08:41:02 system systemd[1]: unrealircd.service: Control process exited, code=exited, status=255/EXCEPTION
Mar 15 08:41:02 system systemd[1]: unrealircd.service: Failed with result 'exit-code'.
Mar 15 08:41:02 system systemd[1]: Failed to start IRC daemon.

Additional info:
* unrealircd 6.0.2-1
* config quite similar to default, but not default and moved from 5

Steps to reproduce:

* upgrado to unrealircd 6.0.2-1 from 5
* systemctl start unrealircd
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 10 February 2023, 18:47 GMT
Reason for closing:  Fixed
Comment by loqs (loqs) - Wednesday, 16 March 2022, 21:59 GMT
What if you rebuild the package the attached diff applied? The relevant change is the addition of --with-controlfile [1].
The other changes add system libraries.

[1] https://github.com/unrealircd/unrealircd/blob/29fd2e772a6b4b9107daa4e3c237df454b055810/doc/RELEASE-NOTES.md
Comment by techge (techge) - Thursday, 17 March 2022, 13:30 GMT
Yes, that is it. The flag sounds reasonable and works fine, I just tested it successfully.
Comment by Nick (nearwood) - Monday, 11 April 2022, 18:34 GMT
I have the same issue. Not sure how to apply the patch so I just created `/build/unrealircd/data/unrealircd.ctl` and it started up. 🤷‍♂️
Comment by dawidi (dawidi) - Saturday, 17 September 2022, 13:56 GMT
I just upgraded to unrealircd 6.0.4.1-1 and this problem still occurs. Nick's method - creating that hard-coded folder (owned by the ircd user) - works but it's messy. Fixing the package would be much cleaner...
Comment by Toolybird (Toolybird) - Sunday, 23 October 2022, 20:16 GMT
Dupe  FS#76273 
Comment by Sergej Pupykin (sergej) - Friday, 06 January 2023, 16:19 GMT
can it be reproduced with unrealircd-6.0.5-2?
Comment by loqs (loqs) - Friday, 06 January 2023, 17:40 GMT
If the control socket is placed in /run/unrealircd/ rather than /var/lib/unrealircd/ then it could be automatically cleaned up by systemd, see attached diff.
Comment by Sergej Pupykin (sergej) - Friday, 06 January 2023, 22:23 GMT
thank you, unrealircd-6.0.5-3-x86_64.pkg.tar.zst uploaded

Loading...