i get this when i try to enter Jail after upgrading from 8.3.0 to 8.3.1 p2
i cant enter jail.
~# jexec 1 csh
jexec: jail_attach(1): Invalid argument
help :)
jls jexec 2 csh
well I got everything working perfectly. 2 xbmc installs, syncing their media sources, thumbnails, and video databases.
NOTE - jail ip=192.168.1.30, freenas(nfs) ip=192.168.1.4
_______________________________________________________________________________
#in freenas shell
jexec 1 csh
#in jail
pkg_add -r mysql55-server
pkg_add -r mysql55-client
mysql_secure_installation
vi /etc/rc.conf
#add in
mysql_enable="YES"
#
service mysql-server start
mysql -u root -p
#in mysql
CREATE USER 'xbmc' IDENTIFIED BY 'xbmc';
GRANT ALL ON *.* TO 'xbmc';
quit;
_______________________________________________________________________________
### on my xbmc boxes ( .xbmc/userdata/advancedsettings.xml )
<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>192.168.1.30</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>
<pathsubstitution>
<substitute>
<from>special://masterprofile/Thumbnails/</from>
<to>nfs://192.168.1.4/mnt/RAID/Media/xbmc/Thumbnails/</to>
</substitute>
<substitute>
<from>special://masterprofile/sources.xml</from>
<to>nfs://192.168.1.4/mnt/RAID/Media/xbmc/sources.xml</to>
</substitute>
<substitute>
<from>special://masterprofile/mediasources.xml</from>
<to>nfs://192.168.1.4/mnt/RAID/Media/xbmc/mediasources.xml</to>
</substitute>
</pathsubstitution>
</advancedsettings>
_______________________________________________________________________________
to>nfs://192.168.1.4/mnt/RAID/Media/xbmc/sources.xml</to>
I'm hoping someone can help me as even the simplest of anything on this FreeNAS doesn't work. My original server broke and I had to start from scratch. Now when trying to install mysql again it will not pull in from the ftp site. What am I doing wrong? I've spent hours trying to find a solution and can't see anything. I can actually go to FreeBSD and see the file, but can't pull it in.
[root@freenas ~]# jexec 1 csh
Jail# pkg_add -r mysql55-server
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3- release/Latest/mysql55-server.tbz: No address record pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages -8.3-release/Latest/mysql55-server.tbz' by URL
Jail#
I'm able to ping both the freenas IP and my jail IP address with no problems.
Joshua Parker Ruehlig, I'm running FreeNAS-8.3.1-RELEASE-p2-x64 (r12686+b770da6_dirty) with MySQL in a jail. Would like to upgrade Freenas to 9.1. I have 12TB of storage on the server, would really like to not have to rebuild the XMBC DB. What are my options, if I have to rebuild the db and reinstall the jail and MySQL I can do that. Just want to be cover the bases before I do any major surgery on the server. I have not upgraded the jail the last few upgrades. Server feeds 4 XMBC Frodo systems and also contains backups and N: drive for the house and families PC's.
Thanks,
Bill
Joshua Parker Ruehlig, I'm running FreeNAS-8.3.1-RELEASE-p2-x64 (r12686+b770da6_dirty) with MySQL in a jail. Would like to upgrade Freenas to 9.1. I have 12TB of storage on the server, would really like to not have to rebuild the XMBC DB. What are my options, if I have to rebuild the db and reinstall the jail and MySQL I can do that. Just want to be cover the bases before I do any major surgery on the server. I have not upgraded the jail the last few upgrades. Server feeds 4 XMBC Frodo systems and also contains backups and N: drive for the house and families PC's.
Thanks,
Bill
Hi guys,
Followed the guide on the 2nd page (thanks alot bcrowder).
Can't entirely tell if its working or not though, i started XBMC library was completely blank, so i added a source to see if it would create /xmbc/settings etc but i can't see anything in freenas.
Any ideas?
sounds like you didn't start mysqlWhen I run "mysql_secure_installation" after installing the packages ("pkg install mysql55-server"), I get the following error right after if asks me for the current password for root: "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" Any ideas?
sysrc 'mysql_enable=YES' service mysql-server start
sounds like you didn't start mysql
Code:sysrc 'mysql_enable=YES' service mysql-server start
I see glad it's helpful.Dude, that is exactly what I'm looking for...using MySQL instead of sqlite (or whatever it's called). Thank you very much. I will follow it step by step.
For the record, I simply did the following:
entered OC jail that was created by FreeNAS plugin by running jexec -u root 2 csh
then, because the FreeBSD 9 port for mysql was missing on ftp.freebsd.org (I got an error when running pkg_add ... about it missing), I instead ran pkg install mysql55-server
the above apparently installed the client as well
the next step was running mysql_secure_install, which is where I got the error mentioned
sure, this link should work.Joshua, thank you so very much. Everything is working great. You take paypal donations or something?