QuickBox / QB

QuickBox is much more than a ‘seedbox installer script’, it is a simplistic approach to achieving easy seedbox and services management from a beautifully designed dashboard. Allowing users the ability to interact with their seedbox and server on a professional grade level.
https://quickbox.io
GNU General Public License v3.0
737 stars 171 forks source link

Update autodl-irssi plugin #114

Closed smoresmores closed 6 years ago

smoresmores commented 6 years ago

I've recently checked and saw that the autodl-irssi plugin version is v1.62 (from March 2016). According to their official github the newest version is v2.1.0 from 3 days ago. Not sure exactly what are the differences between the regular version and the community version. https://github.com/autodl-community/autodl-rutorrent/releases https://github.com/autodl-community/autodl-trackers/releases

I tried to run the update from the plugin itself but got an error: Undefined subroutine &AutodlIrssi::updateFailed

Would be great if this can be update. Thanks for your hard work!

JMSDOnline commented 6 years ago

I am updating this tonight

Update:

I've added a system command that allows systems admin to push updates for a users /home/USERNAME/.irssi/. You can run the update and type the following:

upgradeIRSSI -u=<EXISTING_USERNAME_HERE>

View the commit here: https://github.com/QuickBox/QB/commit/09da8c8d366ab654872b4dac3664b69313453b02

smoresmores commented 6 years ago

Thanks. Although when I restarted rtorrent, it now doesn't load. :( I keep getting:

No connection to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file.

I tried to restart rtorrent, disable/enable, reset to the whole PC. Nothing helped.

journalctl shows:

Control process exited, code=exited status=1
Unit entered failed state.
Failed with result 'exit-code'.

OK, something is really strange here, I tried to run rtorrent manually and I am getting

/usr/bin/rtorrent: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory

But seems that my ubuntu version only have 1.0.0 to install... Any idea?

JMSDOnline commented 6 years ago

@smoresmores, it looks like it is looking for an old libcrypto library. Perhaps you recently did an apt-get update and it updated, thus rtorrent is spitting errors. If you're running 0.9.6 (current, I assume you are) then you could run apt -y install rtorrent. This should fix this issue as I have encountered it before on a couple of installs. This all started happening after openssl did an upstream push several updates ago.

@kade-robertson, I have had a couple of reports with this, I am going to have a look and see if QuickBox gave a bad update somewhere.. or perhaps didn't include something along the way.

smoresmores commented 6 years ago

@JMSDOnline yes, this solved it. It was looking for a newer version of libcrypto (1.0.2 instead of 1.0.0). Anyway, now everything works fine. Thanks you!!

JMSDOnline commented 6 years ago

It was looking for a newer version

Ha, that's the one I meant. Glad that got it for you!

Thanks you!!

Oh no my friend, thanks you!!! 😃

Is the autodl-irssi plugin working out ok, or have you received the :xml: error as well?

JMSDOnline commented 6 years ago

Possible errors may exist, however @kade-robertson has worked out a fix for the initial install of the autodl-irssi package here #118

JMSDOnline commented 6 years ago

As per this Community topic, this seems to now be resolved.

kade-robertson commented 6 years ago

@JMSDOnline Still experiencing the missing xml module issue, but I seem to be isolated with this.

JMSDOnline commented 6 years ago

@kade-robertson, noted: I'll see how this can be reproduced. Could you tell me what the exact error was once more?

kade-robertson commented 6 years ago

Sure:

[15.03.2018 09:58:54] Error downloading files. Make sure autodl-irssi is started and configured properly (eg. password, port number): Error getting files listing: Missing PHP modules: xml

Will note that it is running perfectly fine in the screen window, still picking up results and using all the configuration I've set, just not accessible from the WebUI.

JMSDOnline commented 6 years ago

Does any of this help?

apt-get -y install php7.0-xml
phpenmod -v 7.0 xml
kade-robertson commented 6 years ago

apt-get -y install php7.0-xml:

Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.0-xml is already the newest version (7.0.28-1+ubuntu16.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.

phpenmod -v 7.0 xml:

<no output>

I did notice that my php -v shows I'm using php 7.2.3, so I re-did both commands for php7.2-xml instead and ended up with the same output essentially. No changes to the current situation.

JMSDOnline commented 6 years ago

I did notice that my php -v shows I'm using php 7.2.3

Hmm, that could be a problem. Your php version should be as follows:

php -v
PHP 7.0.28-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Mar  6 2018 10:44:15) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.28-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies

I haven't tested with anything higher than this version.

You may have to edit your php.ini file and send a restart to php-fpm as per these edits: quickbox-setup Lines 924-941

kade-robertson commented 6 years ago

A-ha! I think I've figured out how to fix this (albeit I'm not sure which change did it since I did them all at once), while keeping all of the existing php versions, seeing as it looked like some sort of compatibility issue with the different versions. Substitute any references to 7.2 with whatever the current version showing up with php -v is.

  1. Run those two sed commands linked to above.
  2. a2dismod php7.2
  3. a2enmod php7.0
  4. update-alternatives --config php, pick whichever index has php7.0 and press Enter
  5. service apache2 restart