Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-09 Thread Frank Riley
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
 David George wrote:
 
 If you are running a RedHat/Fedora based system (and possibly others)
 the PATH is reset in /etc/init.d/functions.  Look for a line near the
 top that looks like this:
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin

 Add the following to /etc/sysconfig/mythbackend:

 PATH=$PATH:/usr/local/bin

 Of course there are several other solutions also.
 
 
 This solved my problem.  In Gentoo's /etc/init.d/functions.sh, around
 line 749 (inside the 'if [ -z ${EBUILD} ]' block, there's a PATH set
 there (the only PATH set in the whole file)).  If I tack on a
 /usr/local/bin, like this:
 
 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:${PATH}
 
 My mythcommflag now is correctly spawned from mythbackend (from how I
 understand it works).
 
 Thanks for all of your help, and I apologize if I did miss an obvious
 solution to this elsewhere in the mailling list.

You shouldn't be modifying anything in init.d. Put

PATH=$PATH:/usr/local/bin

in /etc/conf.d/mythbackend.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCWBw+91+pr0EM9zgRAn3GAKCZQBT5MrE8kdoWcDoFW3QcADQuuACeOVsA
RQponXRUsax2gxao464jiv0=
=00lj
-END PGP SIGNATURE-
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-06 Thread Blammo
On Apr 5, 2005 12:42 AM, Chris Pinkham [EMAIL PROTECTED] wrote:
 ERROR: Unable to find mythcommflag
 
  I figured this would get resolved down the road... so I
 
  made the full pathname explicit in the setup screens. Instead of
 
  mythcommflag
 
  I put
 
  /usr/local/bin/mythcommflag
 
  resolved it for me.
 
 Huh?  What setup screen?  I don't remember making the
 executable pathname configurable.


You're right, my bad memory.

That's what I did to fix the same problem with Mythfillldatabase... :)

For commflag, I just linked it from /usr/local/bin/mythcommflag  to
/usr/bin/mythcommflag, and it fixed the problem. Looked like it was
coded to a specific path.
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-06 Thread mythtv-users . mythtv . org
David George wrote:
If you are running a RedHat/Fedora based system (and possibly others) 
the PATH is reset in /etc/init.d/functions.  Look for a line near the 
top that looks like this: 
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin

Add the following to /etc/sysconfig/mythbackend:
PATH=$PATH:/usr/local/bin
Of course there are several other solutions also.
This solved my problem.  In Gentoo's /etc/init.d/functions.sh, around 
line 749 (inside the 'if [ -z ${EBUILD} ]' block, there's a PATH set 
there (the only PATH set in the whole file)).  If I tack on a 
/usr/local/bin, like this:

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:${PATH}
My mythcommflag now is correctly spawned from mythbackend (from how I 
understand it works).

Thanks for all of your help, and I apologize if I did miss an obvious 
solution to this elsewhere in the mailling list.

Thanks,
jl
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-06 Thread Chris Pinkham
  Huh?  What setup screen?  I don't remember making the
  executable pathname configurable.
 
 You're right, my bad memory.

:)

 That's what I did to fix the same problem with Mythfillldatabase... :)
 
 For commflag, I just linked it from /usr/local/bin/mythcommflag  to
 /usr/bin/mythcommflag, and it fixed the problem. Looked like it was
 coded to a specific path.

No specific path, just not in the current PATH when mythbackend is run.



-- 

Chris

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-05 Thread Chris Pinkham
 One of the several (minor) annoyances I've had with my 0.16-0.17 
 upgrade is that mythcommflag won't run automatically anymore.  When I 

It does run automatically, if things are properly configured.
 
ERROR: Unable to find mythcommflag

This error message means mythbackend can't find mythcommflag, so even
though mythcommflag is in _your_ PATH, it evidently isn't in the PATH
of the user running mythbackend or the script that is running
mythbackend.

Search for this error message on the mailing lists and you'll find
several solutions.

 I traced the error to some code in libs/libmythtv/jobqueue.cpp, but I 
 can't see what that return code would be coming back from a process 
 assumedly running as root when it's trying to run a program sitting in 
 /usr/local/bin/ with all the other myth executables.

This has been explained quite a few times on the mailing lists, so
I'll let you read the explanations when you search for the error
message above.

 Plus I'm not seeing this problem reported by anyone else.  I know my 

It was, quite a few times. :)  Previously, the mythcommflag
executable did not actually get called by mythbackend,
mythbackend directly ran the commercial flagging code internally.
This had the negative side-effect that if there were any problems
in commercial flagging that might cause a segfault, etc. whether
the issue was in the flagger, player, etc., then the backend would
go down.  In order to isolate the flagger from mythbackend, after
the JobQueue was created, I modified the JobQueue to call out to
mythcommflag rather than running the flagger code inside mythbackend.

 p.s.  Is there any easy (non-'delete from ...' mysql stuff) way to clean 
 out those errors from the jobqueue (or I guess it's just emptying the 
 job queue)?

You can either manually delete them or you can take the ?easy? way
out and go into the JobQueue page in mythfrontend's status screen
and delete them from there.  Select the item to delete and pick
Delete from the popup menu.


-- 

Chris

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-05 Thread Chris Pinkham
ERROR: Unable to find mythcommflag

 I figured this would get resolved down the road... so I
 
 made the full pathname explicit in the setup screens. Instead of 
 
 mythcommflag
 
 I put 
 
 /usr/local/bin/mythcommflag
 
 resolved it for me.

Huh?  What setup screen?  I don't remember making the
executable pathname configurable. 

-- 

Chris

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-05 Thread mythtv-users . mythtv . org
Chris Pinkham wrote:
This error message means mythbackend can't find mythcommflag, so even
though mythcommflag is in _your_ PATH, it evidently isn't in the PATH
of the user running mythbackend or the script that is running
mythbackend.
No, mythcommflag (in /usr/local/bin) is in root's PATH, and root is 
running mythbackend.  I don't see anything in my init.d script for 
mythbackend that would change the default root PATH available.

Search for this error message on the mailing lists and you'll find
several solutions.
Search where?  I plugged ERROR: Unable to find mythcommflag and to 
find mythcommflag into Google, restricted to gossamer-threads.com and 
also unrestricted and didn't find more than a single hit on the dev list 
noting some CVS commit or something.  Am I misspelling something?  Am I 
searching in the wrong area?

This has been explained quite a few times on the mailing lists, so
I'll let you read the explanations when you search for the error
message above.
Could you give me an idea of when these threads started?
It was, quite a few times. :)  Previously, the mythcommflag
executable did not actually get called by mythbackend,
mythbackend directly ran the commercial flagging code internally.
This had the negative side-effect that if there were any problems
in commercial flagging that might cause a segfault, etc. whether
the issue was in the flagger, player, etc., then the backend would
go down.  In order to isolate the flagger from mythbackend, after
the JobQueue was created, I modified the JobQueue to call out to
mythcommflag rather than running the flagger code inside mythbackend.
Sounds good to me.
You can either manually delete them or you can take the ?easy? way
out and go into the JobQueue page in mythfrontend's status screen
and delete them from there.  Select the item to delete and pick
Delete from the popup menu.
Oh, I didn't see a way to select those items in the Status screen.  I'll 
have to reexamine that.

Thanks for your response, I just hope someone could point me to these 
posts that I'm missing.

Thanks,
jl
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-05 Thread Kevin Kuphal
[EMAIL PROTECTED] wrote:
Chris Pinkham wrote:
This error message means mythbackend can't find mythcommflag, so even
though mythcommflag is in _your_ PATH, it evidently isn't in the PATH
of the user running mythbackend or the script that is running
mythbackend.

No, mythcommflag (in /usr/local/bin) is in root's PATH, and root is 
running mythbackend.  I don't see anything in my init.d script for 
mythbackend that would change the default root PATH available.

Try echoing the path when the backend starts up.  I thought I read some 
posts in the past that the backend user environment might not get fully 
populated when the backend starts up.

Kevin
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-05 Thread David George
On 4/5/2005 12:00 PM, [EMAIL PROTECTED] wrote:
Chris Pinkham wrote:
This error message means mythbackend can't find mythcommflag, so even
though mythcommflag is in _your_ PATH, it evidently isn't in the PATH
of the user running mythbackend or the script that is running
mythbackend.

No, mythcommflag (in /usr/local/bin) is in root's PATH, and root is 
running mythbackend.  I don't see anything in my init.d script for 
mythbackend that would change the default root PATH available.
If you are running a RedHat/Fedora based system (and possibly others) 
the PATH is reset in /etc/init.d/functions.  Look for a line near the 
top that looks like this: 
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin

Add the following to /etc/sysconfig/mythbackend:
PATH=$PATH:/usr/local/bin
Of course there are several other solutions also.

Search for this error message on the mailing lists and you'll find
several solutions.

Search where?  I plugged ERROR: Unable to find mythcommflag and to 
find mythcommflag into Google, restricted to gossamer-threads.com and 
also unrestricted and didn't find more than a single hit on the dev 
list noting some CVS commit or something.  Am I misspelling 
something?  Am I searching in the wrong area?

http://gossamer-threads.com/lists/engine?list=mythtv;do=search_results;search_forum=all;search_string=unable%20to%20find%20mythcommflag;search_type=ANDsb=post_time
--
David
HDTV capable frontend I am working on (now with a picture)
 http://mythhd.info
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-05 Thread mythtv-users . mythtv . org
David George wrote:
If you are running a RedHat/Fedora based system (and possibly others) 
the PATH is reset in /etc/init.d/functions.  Look for a line near the 
top that looks like this: 
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
I'm running Gentoo, actually, but there is a /etc/init.d/functions.sh 
that I've never noticed before.  There is one PATH definition in there 
that did not have /usr/local/bin, so I put it in there.  I'll see if 
that makes any difference.

http://gossamer-threads.com/lists/engine?list=mythtv;do=search_results;search_forum=all;search_string=unable%20to%20find%20mythcommflag;search_type=ANDsb=post_time 
Yep, forgot to do that (but I did search gossamer-threads via Google), 
but most of the hits are from my own thread here.

Thanks,
jl
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Unable to find mythcommflag in 0.17

2005-04-04 Thread Blammo
On Apr 4, 2005 4:08 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi guys,
 
 One of the several (minor) annoyances I've had with my 0.16-0.17
 upgrade is that mythcommflag won't run automatically anymore.  When I
 see the jobqueue status in Mythweb, I see this message on a bunch of
 shows (and the queue keeps on filling up):
 
   ERROR: Unable to find mythcommflag
 
 The punch line?  mythcommflag definitely exists, has 755 permissions and
 *runs fine* when I run it from the command line.  It flags the
 commercials and everything.
 
 I traced the error to some code in libs/libmythtv/jobqueue.cpp, but I
 can't see what that return code would be coming back from a process
 assumedly running as root when it's trying to run a program sitting in
 /usr/local/bin/ with all the other myth executables.
 
 Plus I'm not seeing this problem reported by anyone else.  I know my
 upgrade path may've been a little bit rocky, but I've distcleaned and
 uninstalled a couple of times since then and still this fails.
 
 Any ideas?

I figured this would get resolved down the road... so I

made the full pathname explicit in the setup screens. Instead of 

mythcommflag

I put 

/usr/local/bin/mythcommflag

resolved it for me.
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users