Bug 266135 - net-mgmt/nagstamon: fails to start
Summary: net-mgmt/nagstamon: fails to start
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-31 15:24 UTC by macaal
Modified: 2024-01-03 04:39 UTC (History)
3 users (show)

See Also:
fernape: maintainer-feedback? (ehaupt)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description macaal 2022-08-31 15:24:03 UTC
Hello,

I recently installed FreeBSD 13.1.
I did install the nagstamon app. with pkg install nagstamon :
- The version that the pkg manager installed was:

* nagstamon: 3.8.0_1

The error code that I get when I try to exec it through the CLI is:

$ nagstamon.py 
[Errno 2] No such file or directory: '/root/.nagstamon/nagstamon.pid'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/Nagstamon/Servers/Generic.py", line 61, in <module>
    from requests_gssapi import HTTPSPNEGOAuth as HTTPSKerberos
ModuleNotFoundError: No module named 'requests_gssapi'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/nagstamon.py", line 45, in <module>
    from Nagstamon.QUI import (APP,
  File "/usr/local/lib/python3.9/site-packages/Nagstamon/QUI/__init__.py", line 61, in <module>
    from Nagstamon.Servers import (SERVER_TYPES,
  File "/usr/local/lib/python3.9/site-packages/Nagstamon/Servers/__init__.py", line 36, in <module>
    from Nagstamon.Servers.Nagios import NagiosServer
  File "/usr/local/lib/python3.9/site-packages/Nagstamon/Servers/Nagios.py", line 20, in <module>
    from Nagstamon.Servers.Generic import GenericServer
  File "/usr/local/lib/python3.9/site-packages/Nagstamon/Servers/Generic.py", line 63, in <module>
    from requests_kerberos import HTTPKerberosAuth as HTTPSKerberos
  File "/usr/local/lib/python3.9/site-packages/requests_kerberos/__init__.py", line 17, in <module>
    from .kerberos_ import HTTPKerberosAuth, REQUIRED, OPTIONAL, DISABLED
  File "/usr/local/lib/python3.9/site-packages/requests_kerberos/kerberos_.py", line 6, in <module>
    import spnego
ModuleNotFoundError: No module named 'spnego


Could you please help me on this case.

I need the app. in order to work with it.

Thank you in advance.

Best regards,

macaal
Comment 1 Emanuel Haupt freebsd_committer freebsd_triage 2022-09-01 19:33:06 UTC
Thank you for your report. It looks like the port requires an additional dependency (www/py-requests-gssapi) which I've just ported. I'll add it as a dependency to this port shortly. Meanwhile you can install  www/py-requests-gssapi manually and then run nagstamon again.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-09-02 05:44:49 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=51de2458dbd99d87ce1b56c0bdace0b62694c46c

commit 51de2458dbd99d87ce1b56c0bdace0b62694c46c
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2022-09-02 05:44:14 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2022-09-02 05:44:14 +0000

    net-mgmt/nagstamon: Add missing dependency

    PR:             266135 (based on)

 net-mgmt/nagstamon/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 3 macaal 2022-09-02 07:19:29 UTC
Hello,



I update the ports tree, installed afterwards the package www/py-requests-gssapi, but it still failled to work.

What I did in order to make it work was installing:

* pkg install py39-pip-22.1.2

and install with pip the failed dependencies:

* pip install gssapi
* pip install requests -> Guess this package ins´t needed
* pip install python-dateutil

Here the list of installed python packages:

Package            Version
------------------ ---------
beautifulsoup4     4.11.1
certifi            2022.6.15
cffi               1.15.1
charset-normalizer 2.1.1
cryptography       3.4.8
decorator          5.1.1
entrypoints        0.4
evdev              1.4.0
gssapi             1.8.1
html5lib           1.0.1
idna               3.3
importlib-metadata 4.8.1
jeepney            0.8.0
kerberos           1.3.1
keyring            18.0.1
keyrings.alt       3.1.1
lxml               4.9.0
nagstamon          3.8.0.
packaging          21.3
pip                22.1.2
psutil             5.9.1
pycparser          2.21
pycrypto           2.6.1
pyOpenSSL          20.0.1
pyparsing          3.0.9
PyQt-builder       1.12.2
PyQt5              5.15.6
PyQt5-sip          12.9.1
PySocks            1.7.1
pyudev             0.22.0
requests           2.28.1
requests-gssapi    1.2.3
requests-kerberos  0.14.0
SecretStorage      3.3.1
setuptools         63.1.0
sip                6.5.1
six                1.16.0
soupsieve          2.0.1
toml               0.10.2
urllib3            1.26.12
webencodings       0.5.1
zipp               3.4.0


Now it works like a charme.

Thank you.



Best regards,

macaal
Comment 4 Emanuel Haupt freebsd_committer freebsd_triage 2023-03-02 08:07:07 UTC
Closing this PR.
Comment 5 Lynnette Butcher 2024-01-03 04:39:06 UTC
Why don't you enjoy some fun games in https://uno-online.io