December 18, 201213 yr Try adding a forward slash to the end of /mnt/cache in your plug-in settings. Also, I'd think about moving it into another directory, the installation alone will cause 5 more shares to be created. I'd do something like /mnt/cache/server/ or /mnt/cache/newznab/ Then change the web server - web root to /mnt/cache/newznab/www/ The plug-in is downloading newznab fine, its failing trying to move www and .svn to /mnt/cache/... but from the debug those are the only differences I can see. Mmm... I added the / and also changed the directory path, behaviour is the same: I get the directories in /mnt/cache/newznab created, but directoties under /mnt/cache/newznab/www are not created.. Can it be that there is some reminscant of my manual installation still somewhere that is halting the process ?
December 18, 201213 yr Author Its possible there is something left but not 100% sure... Just to be sure (nothing should have updated it but you never know) what version of mv do you have? mv --version The error its giving is "www is a directory" which shouldn't cause any issue, it moves just fine on mine (and I presume other peoples) systems. I updated just now to add a couple options to mv, hopefully it will clear up the issue. https://dl.dropbox.com/u/1574928/Unraid%20Plugins/newznab_unplugged.plg Jude, try leaving the password field blank when trying to connect to the mysql database. Also, run this: chmod -R 777 /tmp
December 18, 201213 yr All, I've made more improvements to the cron script, and fixed an issue with running the opt tools properly every N hours. I'll be testing it for a bit on my server and making sure that the timed opt's run..then I'll put a new version up. I was just about to implement your previous version, but will wait for the next version. I was putting in the log file code. Just to verify, the file name is "logrotate.d:" including the colon. I used the command "vi logrotate.d:" in Tower:/etc# to create the file and enter the commands you provided. I'm not a *nix person so have to look up the appropriate commands and try an put them into context as to what they are doing. I now have the following files in my directory and the logrotate.d/ file is empty while logrotate.d: has your code. Is this correct. the other two files were there before I added the version. logrotate.d/ logrotate.d: logrotate.conf Thanks for putting this together.
December 18, 201213 yr Its possible there is something left but not 100% sure... Just to be sure (nothing should have updated it but you never know) what version of mv do you have? mv --version The error its giving is "www is a directory" which shouldn't cause any issue, it moves just fine on mine (and I presume other peoples) systems. I updated just now to add a couple options to mv, hopefully it will clear up the issue. https://dl.dropbox.com/u/1574928/Unraid%20Plugins/newznab_unplugged.plg Jude, try leaving the password field blank when trying to connect to the mysql database. Also, run this: chmod -R 777 /tmp I am using the payed version, I started fiddling with it and downloaded the latest SVN manually and copied it over the dirs the plugin made and also added the dir under the WWW dir. This got the plugin to the point it told me I needed to configure (it shows it as installed), so I finished setting it up thru the webinterface. The plugin now shows the plugin as RUNNING. Mission accomplished :-) Thanks for all help !!
December 18, 201213 yr I found this info on backfill. Hope it helps https://newznab.readthedocs.org/en/latest/readme/index.html?highlight=using%20backfill Cheers mate, that helped I have the backfill running I think at the moment something is happening as my CPU usage is way up. Here is my output after starting the back fill command, any care to tell me if this looks ok ? root@Tower:/mnt/cache/Apps/newsnab/misc/update_scripts# php ./backfill_threaded.php Starting threaded backfill process [Thread-MASTER] Spawning new thread. Still have 3 group(s) to update after this [Thread-MASTER] Spawning new thread. Still have 2 group(s) to update after this [Thread-26231] Begining backfill processing for group alt.binaries.x264 [Thread-MASTER] Spawning new thread. Still have 1 group(s) to update after this [Thread-MASTER] Spawning new thread. Still have 0 group(s) to update after this No more groups to process - Initiating shutdown [Thread-26234] Begining backfill processing for group alt.binaries.hdtv [Thread-26233] Begining backfill processing for group alt.binaries.hdtv.x264 [Thread-26232] Begining backfill processing for group alt.binaries.multimedia
December 18, 201213 yr Its possible there is something left but not 100% sure... Just to be sure (nothing should have updated it but you never know) what version of mv do you have? mv --version The error its giving is "www is a directory" which shouldn't cause any issue, it moves just fine on mine (and I presume other peoples) systems. I updated just now to add a couple options to mv, hopefully it will clear up the issue. https://dl.dropbox.com/u/1574928/Unraid%20Plugins/newznab_unplugged.plg Jude, try leaving the password field blank when trying to connect to the mysql database. Also, run this: chmod -R 777 /tmp MySQL now shows that it is running however when I attempt to telnet into it (using password root) I get the following response root@Tower:/tmp# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Newznab install step2 still shows The following error(s) were encountered: • Unable to connect to database • Unable to select database This occurs whether I leave the password field and username blank or not.
December 18, 201213 yr When installing Newznab via the plugin, I had problems getting the simple features webserver to run. I wound up updating to the latest unraid version pus disabling some of my other scripts, including unraid and some others. I finally resorted to installing Simplefeatures GUI. I was finally able to get the server to run. The comments in the web server plugin indicated the GUI was a dependency for the server. Can anyone confirm they are running the server without the GUI? I noticed that when my drives are spun up, every one of them appears to be accessed ~4-8 seconds. I am not sure if this is the simplefeatures gui doing this or not. I want to uninstall the GUI if I don't need it. While it is a nice GUI, I am happy running the stock GUI.
December 18, 201213 yr Author SF webserver IS dependent on the base installation. You ONLY need the plug-in labeled "base" and "webserver" Jude, try this: mysql newznab If it lets you log in, then the password didn't get set correctly(this happened to me). If it says denied, then try: mysql newznab -p and enter your password
December 18, 201213 yr SF webserver IS dependent on the base installation. You ONLY need the plug-in labeled "base" and "webserver" Jude, try this: mysql newznab If it lets you log in, then the password didn't get set correctly(this happened to me). If it says denied, then try: mysql newznab -p and enter your password I tried that and it still doesn't like that root@Tower:/# mysql newznab -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) I tried entering root for the password as well as alternatives, with the same result.
December 18, 201213 yr not sure if it adds anything but here is the last section of the MySQL log 121218 14:48:17 mysqld_safe mysqld from pid file /var/run/mysql/mysql.pid ended 121218 14:50:13 mysqld_safe Starting mysqld daemon with databases from /mnt/cache/apps/mysql 121218 14:50:13 InnoDB: The InnoDB memory heap is disabled 121218 14:50:13 InnoDB: Mutexes and rw_locks use GCC atomic builtins 121218 14:50:13 InnoDB: Compressed tables use zlib 1.2.5 121218 14:50:13 InnoDB: Using Linux native AIO 121218 14:50:13 InnoDB: Initializing buffer pool, size = 128.0M 121218 14:50:13 InnoDB: Completed initialization of buffer pool 121218 14:50:13 InnoDB: highest supported file format is Barracuda. InnoDB: The log sequence number in ibdata files does not match InnoDB: the log sequence number in the ib_logfiles! 121218 14:50:13 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... 121218 14:50:13 InnoDB: Waiting for the background threads to start 121218 14:50:14 InnoDB: 1.1.8 started; log sequence number 1595675 121218 14:50:14 [Note] Recovering after a crash using mysql-bin 121218 14:50:14 [Note] Starting crash recovery... 121218 14:50:14 [Note] Crash recovery finished. 121218 14:50:14 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 121218 14:50:14 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 121218 14:50:14 [Note] Server socket created on IP: '0.0.0.0'. 121218 14:50:14 [Note] Event Scheduler: Loaded 0 events 121218 14:50:14 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.5.28-log' socket: '/tmp/mysql.sock' port: 3306 Source distribution
December 18, 201213 yr I have tried entering a number of different user names and passwords including root and keep getting the same unable to connect or select database. User and password are both root. The password is listed in the plugin page, but it can't be changed there.
December 18, 201213 yr just checked the SF webserver log and the errors for Setup page 2 are shown there as well. Again not sure if this helps. Thanks 18-Dec-2012 20:57:44 UTC] PHP Notice: Undefined index: PLUSPACKAGE in /usr/local/emhttp/plugins/newznab/newznab.php on line 165 [18-Dec-2012 20:57:48 UTC] PHP Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset 0 in /mnt/cache/server/www/lib/smarty/plugins/modifier.truncate.php on line 35 [18-Dec-2012 20:58:03 UTC] PHP Warning: mysql_select_db(): Access denied for user ''@'localhost' (using password: NO) in /mnt/cache/server/www/install/step2.php on line 28 [18-Dec-2012 20:58:03 UTC] PHP Warning: mysql_select_db(): A link to the server could not be established in /mnt/cache/server/www/install/step2.php on line 28 [18-Dec-2012 20:58:03 UTC] PHP Warning: mysql_select_db(): Access denied for user ''@'localhost' (using password: NO) in /mnt/cache/server/www/install/step2.php on line 32 [18-Dec-2012 20:58:03 UTC] PHP Warning: mysql_select_db(): A link to the server could not be established in /mnt/cache/server/www/install/step2.php on line 32 [18-Dec-2012 20:58:08 UTC] PHP Warning: mysql_select_db(): Access denied for user ''@'localhost' (using password: NO) in /mnt/cache/server/www/install/step2.php on line 28 [18-Dec-2012 20:58:08 UTC] PHP Warning: mysql_select_db(): A link to the server could not be established in /mnt/cache/server/www/install/step2.php on line 28 [18-Dec-2012 20:58:08 UTC] PHP Warning: mysql_select_db(): Access denied for user ''@'localhost' (using password: NO) in /mnt/cache/server/www/install/step2.php on line 32 [18-Dec-2012 20:58:08 UTC] PHP Warning: mysql_select_db(): A link to the server could not be established in /mnt/cache/server/www/install/step2.php on line 32 [18-Dec-2012 20:58:09 UTC] PHP Warning: mysql_select_db(): Access denied for user ''@'localhost' (using password: NO) in /mnt/cache/server/www/install/step2.php on line 28 [18-Dec-2012 20:58:09 UTC] PHP Warning: mysql_select_db(): A link to the server could not be established in /mnt/cache/server/www/install/step2.php on line 28 [18-Dec-2012 20:58:09 UTC] PHP Warning: mysql_select_db(): Access denied for user ''@'localhost' (using password: NO) in /mnt/cache/server/www/install/step2.php on line 32 [18-Dec-2012 20:58:09 UTC] PHP Warning: mysql_select_db(): A link to the server could not be established in /mnt/cache/server/www/install/step2.php on line 32 [18-Dec-2012 20:58:15 UTC] PHP Warning: mysql_select_db(): Access denied for user ''@'localhost' (using password: NO) in /mnt/cache/server/www/install/step2.php on line 28 [18-Dec-2012 20:58:15 UTC] PHP Warning: mysql_select_db(): A link to the server could not be established in /mnt/cache/server/www/install/step2.php on line 28 [18-Dec-2012 20:58:15 UTC] PHP Warning: mysql_select_db(): Access denied for user ''@'localhost' (using password: NO) in /mnt/cache/server/www/install/step2.php on line 32 [18-Dec-2012 20:58:15 UTC] PHP Warning: mysql_select_db(): A link to the server could not be established in /mnt/cache/server/www/install/step2.php on line 32
December 18, 201213 yr checked inside the .ROOTPASSWORDSET file (\\TOWER\cache\apps\mysql) and it is empty. Should I be able to see the password here? Just trying to figure this out. Thanks
December 18, 201213 yr Author Its just a placement file to tell the plug-in a password has been set. Try running this: /etc/rc.d/rc.mysql stop --user=mysql mysqld_safe --skip-grant-tables mysql -u root use mysql; update user set password=PASSWORD("newpass") where User='root'; flush privileges; quit #Now the rc script does not work correctly with mysqld_safe, so we have to kill it manually ps aux | grep mysql # look for the long line, it will most likely show up second in the list, the number in the second column is the PID kill PID /etc/rc.d/rc.mysql start --user=mysql mysql newznab -u root -p #enter your new password
December 18, 201213 yr I'm getting a 404 error too . I get redirected to /install and all the files appear to be in the right place and all the permissions are fine. Any idea what could be causing the problem? Awesome work on the plugin though
December 18, 201213 yr Author Replace the lighttpd.cfg with the one found in my post a couple pages back. yours will be located in /boot/config/plugins/simpleFeatures/ Also make sure that if the newznab directory is set to /mnt/cache/newznab/ that in simplefeatures the web-root is set to /mnt/cache/newznab/www/
December 19, 201213 yr I did a compare of the lighttpd.cfg file the plugin created on my system vs the known good one. As you can see there are differences. The version on the left was created by the plugin.
December 19, 201213 yr I found this info on backfill. Hope it helps https://newznab.readthedocs.org/en/latest/readme/index.html?highlight=using%20backfill Cheers mate, that helped I have the backfill running I think at the moment something is happening as my CPU usage is way up. Here is my output after starting the back fill command, any care to tell me if this looks ok ? root@Tower:/mnt/cache/Apps/newsnab/misc/update_scripts# php ./backfill_threaded.php Starting threaded backfill process [Thread-MASTER] Spawning new thread. Still have 3 group(s) to update after this [Thread-MASTER] Spawning new thread. Still have 2 group(s) to update after this [Thread-26231] Begining backfill processing for group alt.binaries.x264 [Thread-MASTER] Spawning new thread. Still have 1 group(s) to update after this [Thread-MASTER] Spawning new thread. Still have 0 group(s) to update after this No more groups to process - Initiating shutdown [Thread-26234] Begining backfill processing for group alt.binaries.hdtv [Thread-26233] Begining backfill processing for group alt.binaries.hdtv.x264 [Thread-26232] Begining backfill processing for group alt.binaries.multimedia It looks like you have 4 groups to backfill and all started well. Did you modify the number of threads? Let us know how it goes and how long does it take (how many days are you backfilling?) , I'm also interested in the threaded scripts. By the way, did you stop the regular updating (screen, cron, newznab.sh, whatever you're using)? I read somewhere (can't find where) it's better to stop updating while backfilling. Sent from my GT-P7500 using Tapatalk 2
December 19, 201213 yr Author I did a compare of the lighttpd.cfg file the plugin created on my system vs the known good one. As you can see there are differences. The version on the left was created by the plugin. Thank you for that, it is fixed in new version. Moved over to my plug-in repo, download plug-in HERE!!!
December 19, 201213 yr Excellent news that its made it to the main repo! One small thing that I've noticed (it was true of the old version too) - at least with Chrome, if I show the nnplus options the layout isn't ideal - it only scrolls down to halfway through the password - so I can't actually see the field.. there is more space above the username than necessary. I think it's being truncated by the progressFrame..? Also have you given any more thought to leaving SVN installed (or maybe moving that to a separate plugin?) and allowing us to update the plus version since there are fixes that I'd really like and don't really want the hassle of copying from a 3rd machine.. Chris
December 19, 201213 yr Author What's your screen resolution? I'm using chrome as well and haven't noticed an issue... And yes, I'll move the svn install to install by default, I had it set to install only if installing from the svn(to save non-plus users a little space and unneeded programs).
December 19, 201213 yr That sounds great on the SVN! After you do that what will be needed to update our copy of newznab? Thanks again for all your help!
December 19, 201213 yr What's your screen resolution? I'm using chrome as well and haven't noticed an issue... 1280 x 800 on MacBook Pro 13"
December 19, 201213 yr Author That sounds great on the SVN! After you do that what will be needed to update our copy of newznab? Thanks again for all your help! Good point, just updated again, added an update button to the plug-in settings. It will only be shown if the svn user is set since the free version is not updated(?). Just click Update Plugin in the settings page, you should end on version 1.2.1 Stourwalk, I'll check it
December 19, 201213 yr Its just a placement file to tell the plug-in a password has been set. Try running this: /etc/rc.d/rc.mysql stop --user=mysql mysqld_safe --skip-grant-tables mysql -u root use mysql; update user set password=PASSWORD("newpass") where User='root'; flush privileges; quit #Now the rc script does not work correctly with mysqld_safe, so we have to kill it manually ps aux | grep mysql # look for the long line, it will most likely show up second in the list, the number in the second column is the PID kill PID /etc/rc.d/rc.mysql start --user=mysql mysql newznab -u root -p #enter your new password code entries look good until use mysql; after typing the above code I get this response. root@Tower:~# mysqld_safe --skip-grant-tables 121218 20:55:52 mysqld_safe Logging to '/var/lib/mysql/Tower.err'. 121218 20:55:52 mysqld_safe A mysqld process already exists root@Tower:~# mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.5.28-log Source distribution Copyright © 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use mysql; ERROR 1049 (42000): Unknown database 'mysql' I tried the next line of code and got this mysql> update user set password=PASSWORD("newpass") where User='root'; ERROR 1046 (3D000): No database selected mysql> I really appreciate the help with this as I am totally over my head here. Thanks again
Archived
This topic is now archived and is closed to further replies.