Epoptes service not starting on KDE Neon (Ubuntu 16.04

Asked by Uclio Dinobi

Hi,

I'm not a Python guy, so I'm not sure if the Epoptes service is not starting due to some wrong/unexpected/missing dependency... at the end Neon is just an Ubuntu-based distribution. I tried on two different machines (same distribution) and both yield the same error.

$ (sudo) python /usr/lib/python2.7/dist-packages/twisted/plugins/epoptesd.py
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/plugins/epoptesd.py", line 32, in <module>
    from twisted.application import internet, service
  File "/usr/lib/python2.7/dist-packages/twisted/application/internet.py", line 54, in <module>
    from automat import MethodicalMachine
  File "/usr/lib/python2.7/dist-packages/automat/__init__.py", line 2, in <module>
    from ._methodical import MethodicalMachine
  File "/usr/lib/python2.7/dist-packages/automat/_methodical.py", line 34, in <module>
    @attr.s(frozen=True)
TypeError: attributes() got an unexpected keyword argument 'frozen'

Of course I'm using last Epoptes packages (0.5.10-1), tried either the official ones and from the ppa repository.

Any idea about how can the matter be solved ?

Thanks

------------

dpkg -l epoptest -> 0.5.10-1~ubuntu16.04.1

$ l /usr/lib/python2.7/dist-packages/twisted/plugins/

 -rw-r--r-- 1 root root 1017 set 8 2017 cred_anonymous.py
 -rw-r--r-- 1 root root 1520 mag 1 18:04 cred_anonymous.pyc
 -rw-r--r-- 1 root root 1875 set 8 2017 cred_file.py
 -rw-r--r-- 1 root root 2290 mag 1 18:04 cred_file.pyc
 -rw-r--r-- 1 root root 2387 set 8 2017 cred_memory.py
 -rw-r--r-- 1 root root 2727 mag 1 18:04 cred_memory.pyc
 -rw-r--r-- 1 root root 1498 set 8 2017 cred_sshkeys.py
 -rw-r--r-- 1 root root 1814 mag 1 18:04 cred_sshkeys.pyc
 -rw-r--r-- 1 root root 3839 set 23 2017 cred_unix.py
 -rw-r--r-- 1 root root 4405 mag 1 18:04 cred_unix.pyc
 -rwxr-xr-x 1 root root 8815 mag 1 18:32 dropin.cache*
 -rw-r--r-- 1 root root 3503 mar 26 2016 epoptesd.py
 -rw-r--r-- 1 root root 3537 mag 1 18:04 epoptesd.pyc
 -rw-r--r-- 1 root root 590 set 8 2017 __init__.py
 -rw-r--r-- 1 root root 577 mag 1 18:04 __init__.pyc
 -rw-r--r-- 1 root root 519 set 8 2017 twisted_conch.py
 -rw-r--r-- 1 root root 619 mag 1 18:04 twisted_conch.pyc
 -rw-r--r-- 1 root root 589 set 8 2017 twisted_core.py
 -rw-r--r-- 1 root root 735 mag 1 18:04 twisted_core.pyc
 -rw-r--r-- 1 root root 229 set 8 2017 twisted_ftp.py
 -rw-r--r-- 1 root root 339 mag 1 18:04 twisted_ftp.pyc
 -rw-r--r-- 1 root root 260 set 8 2017 twisted_inet.py
 -rw-r--r-- 1 root root 371 mag 1 18:04 twisted_inet.pyc
 -rw-r--r-- 1 root root 235 set 8 2017 twisted_mail.py
 -rw-r--r-- 1 root root 346 mag 1 18:04 twisted_mail.pyc
 -rw-r--r-- 1 root root 247 set 8 2017 twisted_names.py
 -rw-r--r-- 1 root root 359 mag 1 18:04 twisted_names.pyc
 -rw-r--r-- 1 root root 233 set 8 2017 twisted_news.py
 -rw-r--r-- 1 root root 344 mag 1 18:04 twisted_news.pyc
 -rw-r--r-- 1 root root 275 set 8 2017 twisted_portforward.py
 -rw-r--r-- 1 root root 393 mag 1 18:04 twisted_portforward.pyc
 -rw-r--r-- 1 root root 1880 set 8 2017 twisted_reactors.py
 -rw-r--r-- 1 root root 2036 mag 1 18:04 twisted_reactors.pyc
 -rw-r--r-- 1 root root 278 set 8 2017 twisted_runner.py
 -rw-r--r-- 1 root root 389 mag 1 18:04 twisted_runner.pyc
 -rw-r--r-- 1 root root 247 set 8 2017 twisted_socks.py
 -rw-r--r-- 1 root root 359 mag 1 18:04 twisted_socks.pyc
 -rw-r--r-- 1 root root 2084 set 8 2017 twisted_trial.py
 -rw-r--r-- 1 root root 1945 mag 1 18:04 twisted_trial.pyc
 -rw-r--r-- 1 root root 312 set 8 2017 twisted_web.py
 -rw-r--r-- 1 root root 412 mag 1 18:04 twisted_web.pyc
 -rw-r--r-- 1 root root 1029 set 8 2017 twisted_words.py

Question information

Language:
English Edit question
Status:
Answered
For:
Epoptes Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Uclio Dinobi (dinobi) said :
#1

No answers so far :-(

Looks like I am the only one to experience this... did I miss anything already reported to the mailing list ? No beautiful soul who can give me a little help?

Further info (please let me know if you need something more) I forgot to give related to the packages which seems to be involved :

dpkg -l python-attr -> 15.2.0-1
dpkg -l python-twisted (-bin, -core) -> 17.9.0-1+16.04+xenial+build1
dpkg -l python-automat -> 0.6.0-1+16.04+xenial+build1

I directly tried the "python .../epoptesd.py" command because "/etc/init.d/epoptes start" yields "usr/bin/twistd: Unknown command: epoptes"

Thanks in advance to anyone who can help me.

Revision history for this message
Alkis Georgopoulos (alkisg) said :
#2

I haven't seen the KDE Neon distribution.
If this happens in all installations of KDE Neon, then yeah it sounds like a missing dependency. Did you install epoptes with --install-recommends? (e.g. I know Linux Mint has --no-install-recommends by default, opposing the Debian policy).

You could also try coming to IRC, to see the problem live: www.epoptes.org => IRC link.

Revision history for this message
Uclio Dinobi (dinobi) said :
#3

Hi Alkis,

At the end KDE Neon is just KDE Desktop on top of Ubuntu Xenial LTS.

Here is a complete installation session... hope you can get something out of these info :

$ cat /etc/apt/epoptes-ubuntu-ppa-xenial.list

    deb http://ppa.launchpad.net/epoptes/ppa/ubuntu xenial main

$ sudo apt-get autoremove epoptes epoptes-client

    The following packages will be REMOVED:
        epoptes epoptes-client faketime iperf libfaketime libvncserver1 python-dbus python-netifaces python-notify python-pycha x11vnc x11vnc-data xvnc4viewer

$ sudo apt-get install --install-recommends epoptes epoptes-client

    The following NEW packages will be installed:
    epoptes epoptes-client faketime iperf libfaketime libvncserver1 python-dbus python-netifaces python-notify python-pycha x11vnc x11vnc-data xvnc4viewer

    Get:1 xenial-updates/main amd64 libvncserver1 amd64 0.9.10+dfsg-3ubuntu0.16.04.2 [122 kB]
    Get:2 xenial/universe amd64 libfaketime amd64 0.9.6-4 [22.0 kB]
    Get:3 xenial/universe amd64 faketime amd64 0.9.6-4 [9,596 B]
    Get:4 xenial/universe amd64 iperf amd64 2.0.5+dfsg1-2 [51.0 kB]
    Get:5 xenial/main amd64 python-dbus amd64 1.2.0-3 [83.5 kB]
    Get:6 xenial/main amd64 python-netifaces amd64 0.10.4-0.1build2 [16.7 kB]
    Get:7 xenial/universe amd64 python-notify amd64 0.1.1-4 [15.6 kB]
    Get:8 xenial/universe amd64 python-pycha all 0.7.0-2 [36.2 kB]
    Get:9 xenial/universe amd64 x11vnc-data all 0.9.13-1.2build1 [203 kB]
    Get:10 xenial/universe amd64 x11vnc amd64 0.9.13-1.2build1 [944 kB]
    Get:11 xenial/universe amd64 xvnc4viewer amd64 4.1.1+xorg4.3.0-37.3ubuntu2 [106 kB]
    Get:12 xenial/universe amd64 epoptes all 0.5.10-1 [182 kB]
    Get:13 xenial/universe amd64 epoptes-client all 0.5.10-1 [19.8 kB]

$ sudo /etc/init.d/epoptes start

    [ ok ] Starting epoptes (via systemctl): epoptes.service

$ sudo systemctl status epoptes

    epoptes.service - LSB: Epoptes service
    Loaded: loaded (/etc/init.d/epoptes; bad; vendor preset: enabled)
    Active: active (exited) since Tue 2018-05-08 13:16:33 +07; 4min 9s ago
        Docs: man:systemd-sysv-generator(8)

    May 08 13:16:33 phet-f02-03 epoptes[5501]: procmon A process watchdog / supervisor
    May 08 13:16:33 phet-f02-03 epoptes[5501]: socks A SOCKSv4 proxy service.
    May 08 13:16:33 phet-f02-03 epoptes[5501]: web A general-purpose web server which can serve from a
    May 08 13:16:33 phet-f02-03 epoptes[5501]: filesystem or application resource.
    May 08 13:16:33 phet-f02-03 epoptes[5501]: words A modern words server
    May 08 13:16:33 phet-f02-03 epoptes[5501]: xmpp-router An XMPP Router server
    May 08 13:16:33 phet-f02-03 epoptes[5501]: /usr/bin/twistd: Unknown command: epoptes
    May 08 13:16:33 phet-f02-03 epoptes[5501]: ...done.
    May 08 13:16:33 phet-f02-03 systemd[1]: Started LSB: Epoptes service.
    May 08 13:20:15 phet-f02-03 systemd[1]: Started LSB: Epoptes service.

$ ps -ef | grep epoptes
$

$ sudo python /usr//lib/python2.7/dist-packages/twisted/plugins/epoptesd.py

    Traceback (most recent call last):
    File "/usr//lib/python2.7/dist-packages/twisted/plugins/epoptesd.py", line 32, in <module>
        from twisted.application import internet, service
    File "/usr/lib/python2.7/dist-packages/twisted/application/internet.py", line 54, in <module>
        from automat import MethodicalMachine
    File "/usr/lib/python2.7/dist-packages/automat/__init__.py", line 2, in <module>
        from ._methodical import MethodicalMachine
    File "/usr/lib/python2.7/dist-packages/automat/_methodical.py", line 34, in <module>
        @attr.s(frozen=True)
    TypeError: attributes() got an unexpected keyword argument 'frozen'

Thanks

Revision history for this message
Uclio Dinobi (dinobi) said :
#4

Could it be that in a Ubuntu distribution with GNOME (or derivatives) there is a Python package not present in Ubuntu with a different Desktop ? Did you ever try to install epoptes on Ubuntu Server ?

I will give it a try this evening and report about that.

Revision history for this message
Alkis Georgopoulos (alkisg) said :
#5

A missing dependency is possible.
I haven't tried to install Epoptes on Ubuntu server.
In proper installations, running the command "twistd" should list Epoptes as a "Command":

# twistd
...
Commands:
    conch A Conch SSH service.
    dns A domain name server.
    epoptes Epoptes Daemon
...

Revision history for this message
Alkis Georgopoulos (alkisg) said :
#6

Btw, also please use the Epoptes github issues instead of launchpad questions; since the development has moved to github, there's not much point in keeping the Answers here active.

https://github.com/Epoptes/epoptes/issues

I'll try to disable Answers completely...

Can you help with this problem?

Provide an answer of your own, or ask Uclio Dinobi for more information if necessary.

To post a message you must log in.