abique / hefur

Standalone C++ BitTorrent tracker
MIT License
192 stars 30 forks source link

error: /var/run/hefur/control: No such file or directory #32

Open nd925a opened 3 years ago

nd925a commented 3 years ago

Installed via pacman. Version 1.0-1

$hefurctl [Date/Timestamp] error: /var/run/hefur/control: No such file or directory

abique commented 3 years ago

Is hefurd running?

nd925a commented 3 years ago

Sorry I didn't rtfm. I was doing random bored testing before bed.

$hefurd -torrent-dir /foo/bar Does something, but no terminal output

Open new terminal $hefurctl hefurctl: /build/hefur/src/hefur/mimosa/mimosa/thread.cc:63: void mimosa::Thread::join(): Assertion `state_ == kRunning' failed. Aborted (core dumped)

Same error turns up and exits original terminal command.

This must be beyond me, sorry for being a bother.

abique commented 3 years ago

Try hefurctl -help. It searches at one given place for the control socket and by default it is in /var/... so if you start it manually you have to specify the path to the control socket and specify the same path on hefurctl. I suggest to start hefur from systemd.

nd925a commented 3 years ago

I've done everything I can think of and I keep coming back to the kRunning error. Even installed on a different machine. Correct me if I'm wrong, but it now appears to be a downstream problem with arch as mimosa is not in the official packages and the aur mimosa is broken because it points to blooser's git repo. It appears as though blooser no longer has a mimosa archive causing the aur mimosa to be obsolete and unusable. I also get a cmake error if I try to install your git branch of mimosa.

-- Install configuration: "" CMake Error at mimosa/cmake_install.cmake:46 (file): file INSTALL cannot find "/opt/mimosa/mimosa/cache.hh": No such file or directory.

If you want me to drop this (I don't need it) or take it downstream I'm willing to close this or if you want to close it. The hefur package is no longer in the signoffs list, and I'm not about to make a stink about something I understand the purpose of but don't use.

abique commented 3 years ago

Did you run:

git submodule init
git submodule update
sl1pkn07 commented 3 years ago

same here. but bit different

┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[/run/media/sl1pkn07/COSAS/aplicaciones/hefur-git]|
└───╼  systemctl start hefurd
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[/run/media/sl1pkn07/COSAS/aplicaciones/hefur-git]|
└───╼  systemctl status hefurd
● hefurd.service - Hefur BitTorrent tracker
     Loaded: loaded (/usr/lib/systemd/system/hefurd.service; disabled; vendor preset: disabled)
     Active: active (running) since Fri 2021-04-23 13:23:07 CEST; 5s ago
   Main PID: 402974 (hefurd)
      Tasks: 7 (limit: 154536)
     Memory: 1.0M
        CPU: 8ms
     CGroup: /system.slice/hefurd.service
             └─402974 /usr/bin/hefurd -torrent-dir /var/lib/hefurd

abr 23 13:23:07 sL1pKn07 systemd[1]: Started Hefur BitTorrent tracker.
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[/run/media/sl1pkn07/COSAS/aplicaciones/hefur-git]|
└───╼  hefurctl 
2021-04-23 13:23:17.0702 error: /var/run/hefur/control: Permission denied
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[/run/media/sl1pkn07/COSAS/aplicaciones/hefur-git]|
└───╼  su -c 'hefurctl'
Contraseña: 
hefurctl: /tmp/makepkg/hefur-git/src/hefur/mimosa/mimosa/thread.cc:63: void mimosa::Thread::join(): Assertion `state_ == kRunning' failed.
Abortado (memoria volcada)

seems build with -DCMAKE_BUILD_TYPE=Release instead of -DCMAKE_BUILD_TYPE=None like i do in all cmake based projects fix the coredump