Bug#1066983: monopd: Fails to start monopd.service

2024-03-27 Thread Shriram Ravindranathan

Dear Markus,

On 27/03/24 13:01, Markus Koschany wrote:

As this bug report proves, normal people tend to have problems with system
services. A system administrator would have simply disabled or masked the
service. There is nothing here what could not have been resolved with some
systemctl commands.
I am sorry but I don't understand the point you are trying to make here. 
I don't think it is in the right spirit that we should expect anybody 
(even sysadmins) to bodge the package somehow and get it to work.

However I believe I just remove the systemd socket file now and be done with
it. There are pros and cons for autostarting the service or disabling it but we
don't need to overthink this.

I think that would be great. Thank you so much.

Best Regards,

--
Shriram Ravindranathan



OpenPGP_signature.asc
Description: OpenPGP digital signature


Bug#1066983: monopd: Fails to start monopd.service

2024-03-23 Thread Shriram Ravindranathan

Hi Sylvain,

Thanks! I am able to use the application now with socket masking. I also 
downloaded the previous version 
(0.10.2-5)<https://snapshot.debian.org/package/monopd/0.10.2-5/#monopd_0.10.2-5> 
and that also seems to be working out of the box, albeit with one warning.


```
Setting up monopd (0.10.2-5) ...
monopd.socket is a disabled or a static unit not running, not starting it.
```

On 24/03/24 02:05, Sylvain Rochet wrote:

Hi Shriram,

That might be related to the latest change "Add a service template for
compatibility reasons with monopd.socket.".

Masking socket activation and enabling the service worked for me:

# systemctl stop monopd@*.service
# systemctl stop system-monopd.slice
# systemctl stop monopd.socket
# systemctl mask monopd.socket
# systemctl enable monopd.service
# systemctl start monopd.service

Kind regards,
Sylvain


Regards,

--
Shriram Ravindranathan



OpenPGP_signature.asc
Description: OpenPGP digital signature


Bug#1066983: monopd: Fails to start monopd.service

2024-03-16 Thread Shriram Ravindranathan
Package: monopd
Version: 0.10.2-6+b2
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: s...@ters.dev

Dear Maintainer,

monopd.service fails to start (could not bind port 1234), rendering the package 
unusable.

Here is the lsof output after the package is installed:
systemd  1root   47u  IPv6 198704  0t0  TCP *:1234 (LISTEN)
exim4 1116 Debian-exim4u  IPv4  20710  0t0  TCP 127.0.0.1:25 
(LISTEN)
exim4 1116 Debian-exim5u  IPv6  20711  0t0  TCP [::1]:25 (LISTEN)

This was on a fresh install of bookworm. Here are the journalctl logs:

Mar 16 19:25:02 think182 sudo[4410]:  shriram : TTY=pts/0 ; PWD=/home/shriram ; 
USER=root ; COMMAND=/usr/bin/apt install monopd
Mar 16 19:25:02 think182 sudo[4410]: pam_unix(sudo:session): session opened for 
user root(uid=0) by (uid=1000)
Mar 16 19:25:03 think182 systemd[1]: Reloading.
Mar 16 19:25:04 think182 systemd[1]: Reloading.
Mar 16 19:25:04 think182 systemd[1]: Starting monopd.service - game server for 
board games like GtkAtlantic...
Mar 16 19:25:04 think182 systemd[1]: Listening on monopd.socket - monopd 
listening socket.
Mar 16 19:25:04 think182 monopd[4512]: monopd 0.10.2 started
Mar 16 19:25:04 think182 monopd[4512]: loaded game configuration: 
game=[Atlantic]
Mar 16 19:25:04 think182 monopd[4512]: loaded game configuration: 
game=[Monopoly]
Mar 16 19:25:04 think182 systemd[1]: monopd.service: Failed to parse ERRNO= 
field value '-2' in notification message: Numerical result out of range
Mar 16 19:25:04 think182 monopd[4512]: could not bind port 1234, exiting
Mar 16 19:25:04 think182 systemd[1]: monopd.service: Main process exited, 
code=exited, status=254/n/a
Mar 16 19:25:04 think182 systemd[1]: monopd.service: Failed with result 
'exit-code'.
Mar 16 19:25:04 think182 systemd[1]: Failed to start monopd.service - game 
server for board games like GtkAtlantic.
Mar 16 19:25:05 think182 sudo[4410]: pam_unix(sudo:session): session closed for 
user root


-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-18-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8), LANGUAGE=en_IN:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages monopd depends on:
ii  libc6  2.36-9+deb12u4
ii  libgcc-s1  12.2.0-14
ii  libmuparser2v5 2.3.3-0.1
ii  libstdc++6 12.2.0-14
ii  libsystemd0252.22-1~deb12u1
ii  sysvinit-utils [lsb-base]  3.06-4

monopd recommends no packages.

Versions of packages monopd suggests:
ii  gtkatlantic  0.6.3-2

-- no debconf information