PKG Install - fail to extract

Status
Not open for further replies.

pgrubaugh

Cadet
Joined
Aug 5, 2013
Messages
8
I just upgraded from 8.31 -> 9.1 and was trying to install a pkg (more specifically mysql 5.5 or 5.6). For either of these packages I am receiving the output below. I have confirmed connection at least to www.google.com. Any ideas? Searching forums or google gives almost nothing on 'pkg: fail to extract pkg-static'.


Code:
[root@freenas ~]# pkg install mysql56-server                                   
The package management tool is not yet installed on your system.               
Do you want to fetch and install it now? [y/N]: y                             
Bootstrapping pkg please wait                                                 
_http._tcp.pkg.FreeBSD.org                                                     
pkg: fail to extract pkg-static 
 

survive

Behold the Wumpus
Moderator
Joined
May 28, 2011
Messages
875

pgrubaugh

Cadet
Joined
Aug 5, 2013
Messages
8
Thanks for helping Survive. I feel like I understand the process to follow now. I have created the Jail as 'Standard'. I then opened up a Shell and enter the jail using 'jexec _ /bin/tcsh'. So far so good.

From here on, I have tried many variations to 'pkg install mysql55-server'. Every way I try fails and the problem is that I end up losing connectivity outside of the jail. I have pasted my Shell entries below. You can see that I can ping Google, then I try to install the package. This fails, and then I can no longer ping google. (in-line edit) I just tried this again, and before I get to the pkg install, my 'jexec' session was terminated (screen paused, then was taken back to standard shell). After re-entering jexec, I can no longer ping google. I have noticed this happen in previous sessions, and I wonder if whatever this i, is related to my issue. Any ideas?

Code:
[root@freenas ~]# jls                                                         
  JID  IP Address      Hostname                      Path                     
    1  -              dlna_1                        /mnt/raid/jails/dlna_1   
    7  -              mySQL                        /mnt/raid/jails/mySQL   
[root@freenas ~]# jexec 7 /bin/tcsh                                           
root@mySQL:/ # ping www.google.com                                             
PING www.google.com (74.125.26.99): 56 data bytes                             
64 bytes from 74.125.26.99: icmp_seq=0 ttl=42 time=31.160 ms                   
64 bytes from 74.125.26.99: icmp_seq=1 ttl=42 time=28.945 ms                   
64 bytes from 74.125.26.99: icmp_seq=2 ttl=42 time=49.001 ms                   
64 bytes from 74.125.26.99: icmp_seq=3 ttl=42 time=29.799 ms                   
64 bytes from 74.125.26.99: icmp_seq=4 ttl=42 time=31.485 ms                   
64 bytes from 74.125.26.99: icmp_seq=5 ttl=42 time=27.930 ms                   
^C                                                                             
--- www.google.com ping statistics ---                                         
6 packets transmitted, 6 packets received, 0.0% packet loss                   
round-trip min/avg/max/stddev = 27.930/33.053/49.001/7.235 ms                 
root@mySQL:/ # pkg install mysql55-server                                     
The package management tool is not yet installed on your system.               
Do you want to fetch and install it now? [y/N]: y                             
Bootstrapping pkg please wait                                                 
pkg: Error fetching http://pkgbeta.FreeBSD.org/freebsd:9:x86:64/latest/Latest/pk
g.txz: No address record
root@mySQL:/ # ping www.google.com                                             
^C                                                                             
root@mySQL:/ #
 

pgrubaugh

Cadet
Joined
Aug 5, 2013
Messages
8
Update: I removed the only Plugin I had installed before playing with the Jails (miniDLNA). I also removed the previous jail I created for this effort. After this, I started over. I can maintain network connectivity now, and am now to the next issue. It is saying that my package 'was not found in the repositories'. I have tried both 'mysql55-server' and 'mysql56-server'.

Code:
root@mySQL:/ # pkg install mysql55-server                                     
Updating repository catalogue                                                 
Repository catalogue is up-to-date, no need to fetch fresh copy               
pkg: Package 'mysql55-server' was not found in the repositories               
root@mySQL:/ #    
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Install a jail of type of "pluginjail" instead of a "standard", it will have working packages. Otherwise you need to change the repo yourself.
 

pgrubaugh

Cadet
Joined
Aug 5, 2013
Messages
8
And ... now I have it working. I followed the instructions farther down on the link I posted in step #5. I used the 'Compiling FreeBSD Ports with make' section. This worked very easily.

I still had the problem with miniDLNA and having it crash my network on my jails, but as of now, I don't need miniDLNA, so this isn't a problem for me.

Thanks for pointing me in the right direction Survive. All the documentation was there, it just takes some time to work through it .... for a noob.
 

pgrubaugh

Cadet
Joined
Aug 5, 2013
Messages
8
Thanks William. Just saw your post. I will give that I try when I get back later. I'm not sure what the advantages/disadvantages are of one method vs. the other, but the make install method was pretty easy.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Either will work just fine. Using ports (make install) you can configure which feature you want to enable/disable for each software (if supported).
 

pgrubaugh

Cadet
Joined
Aug 5, 2013
Messages
8
It took adding another Jail to truly figure out my network problems. Very simply, the Jail IP was already in use on my network.
 
Status
Not open for further replies.
Top