[mythtv-users] MythWeb mysteriously stops talking to the backend [solved---Ubuntu packaging problem?]

f-myth-users@media.mit.edu f-myth-users at media.mit.edu
Thu Feb 16 05:42:40 UTC 2006


[Editing error---which scrambled the bug description---fixed.]

    > Date: Wed, 15 Feb 2006 22:55:10 -0500 (EST)
    > From: f-myth-users at media.mit.edu

    >   Warning at /usr/share/mythtv/mythweb/includes/init.php, line 50:
    >   session_sart(): open(php_sessions/sess_[big hash], O_RDWR) failed: No such file or directory (2)

Solved.  (*sigh*)

For the sake of the archives, -and- any later Ubuntu packagers:

It appears that the Ubuntu 0.18.1 packaging of MythWeb populated
/var/www/mythweb, created /var/cache/mythweb and its two directories
image_cache and php_sessions [*], and also created a symlink from
/var/www/mythweb/image_cache to /var/cache/mythweb/image_cache.

HOWEVER, it did -not- create the corresponding symlink from
/var/www/mythweb/php_sessions to /var/cache/mythweb/php_sessions!

Once I created that symlink, the above error went away (and -that-
error didn't appear until I'd fixed the typo in my AllowOverride
directive, which was itself papered over by MythWeb not requiring
more than 8MB out of PHP until yesterday, hence I didn't see any
errors when I first (mis)-configured that AllowOverride).

To current Ubuntu packagers of 0.19---if you're starting from the
0.18.1 package (I have no idea), check it carefully to see if it
suffers from the same missing symlink.  (I haven't checked the 0.18.1
.deb to see if this analysis is 100% correct, but I'm pretty sure I
never created the image_cache symlink, so I'm guessing that the .deb
made it, in which case it should have made the other one, too.)



[*] Perhaps with too-restrictive permissions, since it seems to assume
that mythweb and/or apache will always be running as root and, even
though the directories are root.www-data and root.root, only gave them
group-write; I opened them up to world-write.  [Maybe they should be
owned by mythtv.mythtv and -then- g+w there?  That would work if myth
was running either as root or mythtv.]


More information about the mythtv-users mailing list