spacer.png, 0 kB
  September 09, 2010, 02:06:30

 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: URDD is starting up 20%  (Read 293 times)
ylbobby

Posts: 4


View Profile Email
« on: March 10, 2010, 06:01:23 »

Hi,

I install urd on Slackware10.2. When I turn on URDD, it says URDD is starting up 20%. After about 15 sec, the URDD can be online. But can not download. The log is here. I don't know how to do about the problem.

Code:
2010-Mar-10 11:45:34 WARNING Warning on line 306 in file /raid0/data/module/NZBDownloader/www/urdd/download_functions.php: proc_open(/dev/null): failed to open stream: Permission denied (2)
2010-Mar-10 11:45:34 WARNING Warning on line 306 in file /raid0/data/module/NZBDownloader/www/urdd/download_functions.php: proc_open(/dev/null): failed to open stream: Permission denied (2)
2010-Mar-10 11:45:34 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:34 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:34 WARNING Could not create pipe
2010-Mar-10 11:45:34 WARNING Could not create pipe
2010-Mar-10 11:45:34 INFO using authentication as gn810747
2010-Mar-10 11:45:34 INFO using authentication as gn810747
2010-Mar-10 11:45:34 INFO using authentication as gn810747
2010-Mar-10 11:45:34 WARNING Warning on line 306 in file /raid0/data/module/NZBDownloader/www/urdd/download_functions.php: proc_open(/dev/null): failed to open stream: Permission denied (2)
2010-Mar-10 11:45:34 INFO using authentication as gn810747
2010-Mar-10 11:45:34 INFO using authentication as gn810747
2010-Mar-10 11:45:34 INFO using authentication as gn810747
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:45:32 INFO Creating directory /raid0/data/NZB/urd/tmp/sw3/2/
2010-Mar-10 11:45:32 INFO Creating directory /raid0/data/NZB/urd/tmp/sw3/2/
2010-Mar-10 11:42:38 NOTICE We are started as root. Dropping priviliges
2010-Mar-10 11:42:38 NOTICE Dropping priviliges to user urd
2010-Mar-10 11:42:38 NOTICE Dropping priviliges to group urd
2010-Mar-10 11:42:38 NOTICE Dropping priviliges to user urd
2010-Mar-10 11:42:38 NOTICE We are started as root. Dropping priviliges
2010-Mar-10 11:42:38 NOTICE Dropping priviliges to group urd
2010-Mar-10 11:42:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:33 INFO using authentication as gn810747
2010-Mar-10 11:42:33 INFO using authentication as gn810747
2010-Mar-10 11:42:33 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:32 INFO using authentication as gn810747
2010-Mar-10 11:42:32 INFO using authentication as gn810747
2010-Mar-10 11:42:31 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:31 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:30 INFO using authentication as gn810747
2010-Mar-10 11:42:30 INFO using authentication as gn810747
2010-Mar-10 11:42:28 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:28 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:26 INFO using authentication as gn810747
2010-Mar-10 11:42:26 INFO using authentication as gn810747
2010-Mar-10 11:42:23 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:23 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:22 INFO using authentication as gn810747
2010-Mar-10 11:42:22 INFO using authentication as gn810747
2010-Mar-10 11:42:19 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:18 INFO using authentication as gn810747
2010-Mar-10 11:42:16 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:14 INFO using authentication as gn810747
2010-Mar-10 11:42:12 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:10 INFO using authentication as gn810747
2010-Mar-10 11:42:08 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:07 INFO using authentication as gn810747
2010-Mar-10 11:42:04 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:03 INFO using authentication as gn810747
2010-Mar-10 11:42:00 WARNING Warning on line 280 in file /raid0/data/module/NZBDownloader/www/urdd/urdd_config.php: pcntl_getpriority(): Error 3: No process was located using the given parameters (2)
2010-Mar-10 11:42:00 INFO Connecting to NNTP server: news.giganews.com:119
2010-Mar-10 11:42:00 NOTICE Starting urdd
Logged
ylbobby

Posts: 4


View Profile Email
« Reply #1 on: March 10, 2010, 06:12:18 »

I fond that the install/install.sh did not run automatic. And useradd and groupadd are not full in Slackware. So, I modify the install.sh and run it. The user urd and group urd are created successful.

Code:
elif [ -x /bin/addgroup ] ; then
        addgroup="/bin/addgroup"
        ag_options=""


Code:
elif [ -x /usr/bin/useradd ] ; then
        adduser="/usr/bin/useradd"
        au_options="-s /bin/false -d /tmp -g $urd_group"

And I reference to "How to solve most problems when starting with URD", did it, but no ineffective.
Logged
spearhead
Administrator
*
Posts: 790


View Profile WWW
« Reply #2 on: March 10, 2010, 10:10:50 »

the install usually isn't necessary, so it isn't run. I'll add a few checks to see if the privilege drop functions actually work. And also look at that script.
Logged
ylbobby

Posts: 4


View Profile Email
« Reply #3 on: March 10, 2010, 10:38:55 »

If not create user urd and group urd, there are warning log.

Quote
2010-Mar-10    17:12:01    CRITICAL    An error occured during startup of URD daemon: Could not drop priviliges. Group urd not found.

And I found these:

Code:
$config['urdd_uid']                 = 'urd';  // run the install.sh as root to install the user and the group
$config['urdd_gid']                 = 'urd';  // these values are only used when urdd is started as root or with the setuid bit s
et

And my apache run as user root. Is there any problems?
« Last Edit: March 10, 2010, 12:09:25 by ylbobby » Logged
spearhead
Administrator
*
Posts: 790


View Profile WWW
« Reply #4 on: March 10, 2010, 15:15:03 »

Running apache as root is not a good idea in general. But for URD it should not be a problem.
Logged
ylbobby

Posts: 4


View Profile Email
« Reply #5 on: March 11, 2010, 04:38:50 »

Modify the config.php

Code:
$config['urdd_uid']                 = 'urd';
$config['urdd_gid']                 = 'urd';

to

Code:
$config['urdd_uid']                 = 'root';
$config['urdd_gid']                 = 'root';

The download is OK Cheesy
Logged
spearhead
Administrator
*
Posts: 790


View Profile WWW
« Reply #6 on: March 11, 2010, 10:20:37 »

I adapted the code to ignore the settings if they are set to empty string.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
Amigri by Fakdordes
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB