FAQ — Newznab 0.2.3-dev documentation (2024)

Table of Contents
Authorization rejected from nntp server White screen instead of web page Database logging Lots of binary headers processed but few releases created Search and raws earch requests lose page CSS styling Error: Server did not return article numbers 1234567 Error: Connection timed out Error: Session error during install step1 Error in TMDb.php with strstr Error: PEAR::isError() Error: 502 Bad Gateway Error: curl_init() Error: “MySQL server has gone away…” Movies with a large number of releases are not listing the releases properly No previews or media info Php cli not seeing that curl is installed on a wamp server Updating releases is taking forever Error: Parts failed to insert Error: stream_socket_client or “Failed to write to socket” Error: PHP Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given Error: You must have POSIX and PCNTL functions to use PowerSpawn No releases appear in audio or console view Error: “Notice: Trying to get property of non-object in C:xampphtdocsnnpluswwwinstallindex.php on line 50” Sphinx not updating Delta index. New releases not visible Sphinx error - PHP Notice: Undefined index: total-documents in /var/www/newznab/htdocs/www/lib/sphinx.php on line 331 Script terminating early when using freebsd If you are seeing this in your error log: Fatal error: Class ‘COM’ not found PHP Warning: mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50532 Library:50614 in /var/www/newznab/www/lib/framework/db.php on line 15 PHP Fatal error: Call to undefined function gzopen() in /var/www/newznab/www/lib/nzb.php on line 22 References

Below is a collection of common questions and errors and their answers and solutions.Please read through this carefully before asking for help.

Authorization rejected from nntp server

Check you have enough available connections not currently in use

White screen instead of web page

This is probably a php error not being displayed to browser or sessiontimed out and 403 being throw.

Database logging

Having issues with performance or want to debug database hits, then definedefine(‘DB_LOG’, ‘/tmp/nndblog.log’); to output all ran queries to text file.

Lots of binary headers processed but few releases created

The binary headers downloaded do not match the regexs used to create arelease. The message headers must follow popular formats in order forreleases to be created.

Search and raws earch requests lose page CSS styling

Use the provided Apache VirtualHost.

Error: Server did not return article numbers 1234567

This isn’t necessarily a bad thing, see section onmissing parts.

Error: Connection timed out

If you’re seeing errors like:

Connection timed out. Reconnecting...Cannot connect to server *******Already connected, disconnect first!

Disabling compressed headers should solve the issue.

Error: Session error during install step1

Set register_globals to off in php.ini.

Error in TMDb.php with strstr

If you’re seeing an error like:

Warning: Wrong parameter count for ``strstr()`` in ``newznab\www\lib\TMDb.php`` on line 354

You’re most likely using the wrong php version; upgrade to version 5.3+.

Error: PEAR::isError()

Error like:

Strict Standards: Non-static method PEAR::isError() should not be called statically

Set error_reporting = E_ALL ^ E_STRICT in php.ini.

Error: 502 Bad Gateway

Error at $cfg->pearCheck = @include('System.php'); solved by adding inopen_basedir path to pear.

Error: curl_init()

Call to undefined function curl_init(). Make sure you are using the rightphp.ini file. If you are using WAMP, then the php.ini file that Apacheuses is in the Apache /bin folder (not the php.ini in wamp/php).The php cli will use the first php.ini it can find in the Windows pathenvironmental variable. In my case, this was an old version in another phpdirectory I set up. Once I deleted that, it used the version in the/wamp/php directory.

Error: “MySQL server has gone away…”

MySQL is dropping your connection. Adjust max_allowed_packet inmy.cnf, which you should have already set according to theinstall docs, and if that doesn’t fix it, you can tryadjusting mysql.connect_timeout in php.ini.

Movies with a large number of releases are not listing the releases properly

Read the install docs (see group_concat_max_len underMySQL).

No previews or media info

Check that you version of unrar > 3.8.

Php cli not seeing that curl is installed on a wamp server

When you use the php cli windows uses php.exe inside the php wamp directory,that php is for web only really. Point Newznab to the php-win.exe in thesame directory. The only script having problem was updatereleases.bat soin that script now looks likeC:\wamp\bin\php\php5.3.5\php-win.exe update_releases.php

Updating releases is taking forever

If updating releases appears to have frozen atStage 8 . You have the header retention set too high, or during a large importhave allowed too many parts/binaries to be inserted, and mysql takes a long time toprune the table. It will finish eventually, just be patient.

Error: Parts failed to insert

If you’re getting the WARNING: xxx Parts failed to insert error it islikely that something went a little crazy with your parts table. In order tofix this you need to truncate (empty) your parts, partrepair andbinaries tables and “reset” your groups.

First, truncate your tables (SQL):

TRUNCATE `parts`;TRUNCATE `partrepair`;TRUNCATE `binaries`;

Now, if the error occurred during normal update_binaries operation, thenyou don’t actually need to completely reset your groups table and insteadyou can just reset its knowledge of how to go “forward” (i.e. what to consideras new posts). You can do this like so:

UPDATE groups SET last_record = 0;UPDATE groups SET last_record_postdate = NULL;

If the error occurred while backfilling, you’ll most likely want to updatefirst_record and first_record_postdate in the same manner.

Additionally, you’ll probably want to set the “Where to start new groups”setting to the appropriate value (like 1 day, for example).

Error: stream_socket_client or “Failed to write to socket”

If you see errors like stream_socket_client or “Failed to write tosocket” while trying to connect to your news server, it is possible that thestandard NNTP ports (119 and 563) are being blocked (either by your ISP or afirewall). Try setting your NNTP port to 80 (for non-ssl) or 443 (forssl), if you’re news server supports it (many do).

Error: PHP Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given

Corrupted mysql tables. Run misc\update_scripts\optimise_db.php true to force an optimiseand repair of all mysql tables.

Error: You must have POSIX and PCNTL functions to use PowerSpawn

The threaded update scripts can only be run on Linux systems with posix installed.Recompile php with –enable-pcntl

No releases appear in audio or console view

Check you are not using cover view and using the shared Amazon api key. Get your own keyor switch to list view.

Error: “Notice: Trying to get property of non-object in C:xampphtdocsnnpluswwwinstallindex.php on line 50”

Reinstall xampp.

Sphinx not updating Delta index. New releases not visible

There is known issues with Windows. Solution is to change “preopen_indexes” from 1 to 0 in sphinx.conf

Sphinx error - PHP Notice: Undefined index: total-documents in /var/www/newznab/htdocs/www/lib/sphinx.php on line 331

Indexes have failed to be rotated from <indexname>.new.sph to <indexname>.sph. Sphinx expects the old files to be there.Solution is to goto the sphinxdata dir and…

rm releases*touch releases.{spa,spd,sph,spi,spk,spm,spp,sps}touch releases_delta.{spa,spd,sph,spi,spk,spm,spp,sps}then run a full + delta index for releases.

See also http://sphinxsearch.com/forum/view.html?id=9859

Script terminating early when using freebsd

Ensure all the php libraries are included

extension=gd.soextension=session.soextension=mysql.soextension=curl.soextension=xml.soextension=ctype.soextension=openssl.soextension=iconv.soextension=mysqli.soextension=hash.soextension=zlib.soextension=pcntl.soextension=posix.soextension=simplexml.so

If you are seeing this in your error log: Fatal error: Class ‘COM’ not found

You require this in php.ini:

[PHP_COM_DOTNET]extension=php_com_dotnet.dll

Previously it was compiled as built-in on the Windows build.

PHP Warning: mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50532 Library:50614 in /var/www/newznab/www/lib/framework/db.php on line 15

Fix = apt-get install php5-mysqlnd(note: actual version numbers may vary from install to install)

PHP Fatal error: Call to undefined function gzopen() in /var/www/newznab/www/lib/nzb.php on line 22

Related to known issue http://ubuntuforums.org/showthread.php?t=2217927Fix = update all references to gzopen to be gzopen64

FAQ — Newznab 0.2.3-dev documentation (2024)

References

Top Articles
Latest Posts
Article information

Author: Patricia Veum II

Last Updated:

Views: 5403

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Patricia Veum II

Birthday: 1994-12-16

Address: 2064 Little Summit, Goldieton, MS 97651-0862

Phone: +6873952696715

Job: Principal Officer

Hobby: Rafting, Cabaret, Candle making, Jigsaw puzzles, Inline skating, Magic, Graffiti

Introduction: My name is Patricia Veum II, I am a vast, combative, smiling, famous, inexpensive, zealous, sparkling person who loves writing and wants to share my knowledge and understanding with you.