[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5312: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
Tiny Tiny RSS • daemon user needs shell?
Page 1 of 4

daemon user needs shell?

Posted: 15 May 2013, 15:01
by TauTau
Hi,

I came across something I don't quite understand. While implementing ttrss on my root server, I used the init script from here . I got errors about a not found .stamp file in the lock directory. There is a .lock file in the directory, so the process (which is running, I could verify that) was able to create *that* file. However, only when I gave the user the daemon runs under a shell, ttrss started to update feeds.
So why is the update process able to create the .lock file, but not the .stamp file (I couldn't see if it really creates the file, it just wasn't able to *find* one from the error message)? I'd really prefer the http users to not have a login shell ;)

Re: daemon user needs shell?

Posted: 15 May 2013, 15:27
by TauTau
ok, seems that didn't solve it. The user now has a bash entry in /etc/passwd, the ttrss and lock directory have permissions 777 (not good), and I still get

E_WARNING (2) include/functions.php:2136 file_get_contents(lock/update_daemon.stamp): failed to open stream: No such file or directory

Re: daemon user needs shell?

Posted: 15 May 2013, 15:34
by fox
Hello I can't linux, and

Re: daemon user needs shell?

Posted: 15 May 2013, 15:43
by TauTau
did another test... su'ed to the user it should run with, changed to the ttrs directory, and ran

php ./update_daemon2.php

when there is a thread spawned:

[MASTER] spawned client 0

I get directly after that:

sh: /php: not found

what does that mean?

Edit: Same Error comes with "php ./update.php --daemon"

Re: daemon user needs shell?

Posted: 15 May 2013, 15:44
by blainemono
Did you grep the kernel daemon? It's a bit wonky when not grepped.

Re: daemon user needs shell?

Posted: 15 May 2013, 16:01
by TauTau
joking? What should a grep to a kernel daemon do? And which daemon?

Just to clarify this a bit, I'm a fulltime server admin, so I usually know my way around a system, just php is not my kind of beef ;)

Re: daemon user needs shell?

Posted: 15 May 2013, 16:06
by fox
>I'm a fulltime server admin

Re: daemon user needs shell?

Posted: 15 May 2013, 16:07
by TauTau
so, running "php ./update.php --feeds" seems to work, it's just the daemon part not working. If it was a shell script, I could debug it...

Re: daemon user needs shell?

Posted: 15 May 2013, 16:10
by blainemono
Is your daemon plugged in correctly? Try reversing the polarities.

Re: daemon user needs shell?

Posted: 15 May 2013, 16:10
by fox
Don't do that, it will tear your server apart!

Re: daemon user needs shell?

Posted: 15 May 2013, 16:11
by blainemono
Well he has the full of the time to admin it back to life!

Re: daemon user needs shell?

Posted: 15 May 2013, 16:14
by TauTau
why is this forum called "support", instead of "home of the drunks"?

Re: daemon user needs shell?

Posted: 15 May 2013, 16:15
by fox
Ultimately it's the same thing.

Re: daemon user needs shell?

Posted: 15 May 2013, 16:16
by blainemono
Hello. My name is Blaine an I am an alchoholic.

Re: daemon user needs shell?

Posted: 15 May 2013, 16:17
by fox