LinHES Forums
http://forum.linhes.org/

SOLVED: Problems with upgrade to 7
http://forum.linhes.org/viewtopic.php?f=22&t=22308
Page 1 of 1

Author:  bpmcgee [ Sat Nov 12, 2011 11:40 am ]
Post subject:  SOLVED: Problems with upgrade to 7

I'm having a number of problems after I upgraded my backend and front end to 7 this morning. I've tried my powers of googlefu, and local search with no avail. Perhaps someone can help?

1. NFS doesn't come up cleanly (on either machine) when I reboot. It won't automount my volumes. When I try to manually mount them, I get:

mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

If I manually run "rpcbind start", I can then mount my NFS volumes correctly, but I don't know why it's not starting automatically.

2. Mythweb on the back end isn't working. When I try to connect I get:

Fatal Error

!!NoTrans: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [#2002]

Backtrace
Array
(
[0] => Array
(
[file] => /data/srv/httpd/htdocs/mythweb/classes/Database/Query/mysql.php
[line] => 67
[function] => error
[class] => Database
[object] => Database_mysql Object
(
[dbh] =>
[error] => Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [#2002]
[err] => Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[errno] => 2002
[last_sh] => Database_Query_mysql Object
(
[dbh] =>
[query] => Array
(
[0] => SET NAMES utf8;
) <blah blah blah>

I've checked /etc/mysql/my.cnf, and both the server and the client socket are set to:

socket = /var/run/mysqld/mysqld.sock

I don't know why mythweb is trying to use /tmp/mysqld.sock

3. My remote and LCD configs are both lost (again). Going to have to noodle this one out myself :(

Any help?

Thanks,

Brian

Author:  bpmcgee [ Sat Nov 12, 2011 12:58 pm ]
Post subject: 

For problem #2. This might be a red herring, but in "messages.log" I get the following every time I try to load mythweb:

Nov 12 12:52:17 noisy php-cgi: PHP Warning: require(modules/_shared/tmpl/tmpl/footer.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /data/srv/httpd/htdocs/mythweb/modules/_shared/tmpl/_errors/fatal.php on line 47

Author:  bpmcgee [ Sat Nov 12, 2011 1:25 pm ]
Post subject: 

UPDATE:

Fixed Mythweb by changing (in /etc/php/php.ini)

from:

mysql.default_socket =

to:

mysql.default_socket = /var/run/mysqld/mysqld.sock


and restarting lighttpd (sv restart lighttphd)

Still don't know about #1

Author:  stevenj [ Sat Nov 12, 2011 3:41 pm ]
Post subject: 

bpmcgee,

Thanks for posting this. Your solution to #2 fixed that for me too. (although you might fix your typo at the end (sv restart lighttphd) should be (sv restart lighttpd).

That fix got me to the main MythWeb page. Now if I could just get my Mythbackend to work. Nothing can connect to it although it does seem to load. Don't want to hijack your thread so I'll start a new one for that. Thanks again.

Steve

Author:  bpmcgee [ Sun Nov 13, 2011 2:24 pm ]
Post subject:  SOLVED: Upgrade to 7.1 issues

Okay, solution to #1 was that the upgrade didn't completely set up the paths needed for sv to run rpcbind. Specifically the two symbolic links it needs:

as root:

ln -s /etc/sv/rpcbind /service/rpcbind
ln -s /etc/sv/rpcbind /var/service/rpcbind

Seems to do the trick.

Author:  goofee [ Sun Nov 13, 2011 3:49 pm ]
Post subject: 

Thanks.
Code:
sudo add_service.sh rpcbind

will setup the links for you.

Author:  goofee [ Tue Nov 15, 2011 2:48 am ]
Post subject: 

Will this help with the remote problem?
http://knoppmyth.net/phpBB2/viewtopic.php?p=133414

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/