G4Vi / MHFS

Media HTTP File Server, Stream your own music and video library via your browser and standard media players.
Other
10 stars 0 forks source link

Died at /zip/lib/perl5/5.36.0/App/MHFS.pm line 2404. #1

Open Veraellyunjie opened 1 year ago

Veraellyunjie commented 1 year ago

OpenBSD 7.2 amd64

Aside from

I get:

> ./mhfs.com
MHFS::HTTP::Server::Client::Request: Using PurePerl version of JSON (JSON::PP) at /zip/lib/perl5/5.36.0/App/MHFS.pm line 995.
Alien::Tar::Size is not available at /zip/lib/perl5/5.36.0/App/MHFS.pm line 1003.
MHFS::Plugin::MusicLibrary: Using PurePerl version of JSON (JSON::PP) at /zip/lib/perl5/5.36.0/App/MHFS.pm line 3520.
MHFS::Plugin::MusicLibrary: XS not available at /zip/lib/perl5/5.36.0/App/MHFS.pm line 3541.
MHFS::Plugin::Youtube: Using PurePerl version of JSON (JSON::PP) at /zip/lib/perl5/5.36.0/App/MHFS.pm line 4307.
App::MHFS: parsed command line args
App::MHFS: starting MHFS::HTTP::Server
MHFS::HTTP::Server: loading settings
MHFS::Settings: using APPDIR /zip/lib/perl5/5.36.0/auto/share/dist/App-MHFS
XDG_RUNTIME_DIR not defined!, using /home/v11e/.cache/mhfs instead at /zip/lib/perl5/5.36.0/App/MHFS.pm line 2919.
MHFS::HTTP::Server: adding MHFS::Plugin::MusicLibrary timer
MHFS::HTTP::Server: adding MHFS::Plugin::MusicLibrary route /music
MHFS::HTTP::Server: adding MHFS::Plugin::MusicLibrary route /music_dl
MHFS::HTTP::Server: adding MHFS::Plugin::MusicLibrary route /music_resources
MHFS::HTTP::Server: adding MHFS::Plugin::MusicLibrary route /music_art
MHFS::HTTP::Server: adding MHFS::Plugin::GetVideo route /get_video
MHFS::HTTP::Server: adding MHFS::Plugin::VideoLibrary route /video
MHFS::HTTP::Server: adding MHFS::Plugin::VideoLibrary route /video/
MHFS::Plugin::Youtube: adding video format yt
MHFS::Plugin::Youtube: Attempting to update youtube-dl
MHFS::HTTP::Server: adding MHFS::Plugin::Youtube route /youtube 
MHFS::HTTP::Server: adding MHFS::Plugin::Youtube route /yt
MHFS::HTTP::Server: adding MHFS::Plugin::Youtube route /ytmusic 
MHFS::HTTP::Server: adding MHFS::Plugin::Youtube route /ytaudio 
MHFS::HTTP::Server: adding MHFS::Plugin::Youtube route /ytplayer
MHFS::HTTP::Server: adding MHFS::Plugin::Youtube route /ytembedplayer
MHFS::Plugin::BitTorrent::Tracker: announce interval: 1800
MHFS::HTTP::Server: adding MHFS::Plugin::BitTorrent::Tracker timer
MHFS::HTTP::Server: adding MHFS::Plugin::BitTorrent::Tracker route /torrent/tracker
MHFS::HTTP::Server: adding MHFS::Plugin::BitTorrent::Tracker route /torrent/create
MHFS::HTTP::Server: adding MHFS::Plugin::OpenDirectory route /od
MHFS::HTTP::Server: adding MHFS::Plugin::OpenDirectory route /od/*
MHFS::HTTP::Server: adding MHFS::Plugin::Playlist route /playlist/*
MHFS::HTTP::Server: adding MHFS::Plugin::Kodi route /kodi/*
MHFS::HTTP::Server: adding MHFS::Plugin::BitTorrent::Client::Interface route /torrent/view
MHFS::HTTP::Server: adding MHFS::Plugin::BitTorrent::Client::Interface route /torrent/load
MHFS::Plugin::MusicLibrary: library timer
PID 88858 NEW CHILD
PID 88858 custom SIGCHLD handler
PID 88858FD GLOB(0x100080d8a6a0)
PID 88858FD GLOB(0x1000809086b0)
Died at /zip/lib/perl5/5.36.0/App/MHFS.pm line 2404.
 at /zip/lib/perl5/5.36.0/App/MHFS.pm line 2351.
        MHFS::Process::__ANON__("Died at /zip/lib/perl5/5.36.0/App/MHFS.pm line 2404.\x{a}") called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 2404
        MHFS::Process::_setup_handlers(HASH(0x10008095bde8), GLOB(0x100080e47b70), GLOB(0x100080d8a6a0), GLOB(0x1000809086b0), HASH(0x100080e47ac8), HASH(0x100080d8b390)) called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 2630
        MHFS::Process::_new_child(HASH(0x100080d8b078), HASH(0x100080e47ac8), HASH(0x100080d8b390)) called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 2552
        MHFS::Process::_new_ex(CODE(0x10008095bcb0), HASH(0x100080d8b078), HASH(0x100080d8b1e0)) called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 2653
        MHFS::Process::new_output_child("MHFS::Process", MHFS::EventLoop::Poll=HASH(0x100080384ea0), CODE(0x100080d8acb8), CODE(0x100080d8aeb0)) called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 4236
        MHFS::Plugin::MusicLibrary::UpdateLibrariesAsync(MHFS::Plugin::MusicLibrary=HASH(0x100080ddcae8), MHFS::EventLoop::Poll=HASH(0x100080384ea0), CODE(0x100080d8ac28)) called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 4283
        MHFS::Plugin::MusicLibrary::__ANON__(HASH(0x1000802b5d90), 229440.838387437, MHFS::EventLoop::Poll=HASH(0x100080384ea0)) called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 210
        MHFS::EventLoop::Poll::Base::check_timers(MHFS::EventLoop::Poll=HASH(0x100080384ea0)) called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 273
        MHFS::EventLoop::Poll::Base::run(MHFS::EventLoop::Poll=HASH(0x100080384ea0)) called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 475
        MHFS::HTTP::Server::new("MHFS::HTTP::Server", HASH(0x100080e154a0), ARRAY(0x100080042508)) called at /zip/lib/perl5/5.36.0/App/MHFS.pm line 7054
        App::MHFS::run("App::MHFS") called at /zip/bin/mhfs line 5
FD GLOB(0x100080d8a6a0) reader DESTROY called
FD GLOB(0x1000809086b0) reader DESTROY called
G4Vi commented 1 year ago

It appears fcntl F_GETFL is used wrong in multiple places: https://github.com/G4Vi/MHFS/blob/master/App-MHFS/lib/App/MHFS.pm#L2404 . A pull request into dev would be greatly appreciated if you want or I can fix it later.

G4Vi commented 1 year ago

@Veraellyunjie Try out mhfs.com from inside the MHFS_bin build artifact: https://github.com/G4Vi/MHFS/actions/runs/3796727721

As for fixing youtube-dl, adding a python symlink to either python2 or python3 somewhere in PATH should do the trick. (youtube-dl supports "2.6, 2.7, or 3.2+")