nginx jail shared object not found

Status
Not open for further replies.

Scareh

Contributor
Joined
Jul 31, 2012
Messages
182
first:

Build FreeNAS-9.2.0-RELEASE-x64 (ab098f4)
Platform Intel(R) Xeon(R) CPU E3110 @ 3.00GHz
Memory 8168MB


2nd the problem:

I have a jail running Ajaxplorer (actually an install of nginx/php and pyio).
Problem is that every time i happen to reboot for any and all reason i get an error on my nginx installation that it can't find a shared object.
error message:

Performing sanity check on nginx configuration:
Shared object "libexpat.so.6" not found, required by "nginx"
Starting nginx.
Shared object "libexpat.so.6" not found, required by "nginx"
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
tried reinstalling, tried deinstall then install. But no dice.
Any idea why it loses the shared object? and how to fix it?
thanks


 

Scareh

Contributor
Joined
Jul 31, 2012
Messages
182
Try deinstalling then reinstalling textproc/expat.



when i search the freebsd.org/ports website on textproc/expat it doesn't give any hits. (wasn't on the list of ports I installed for ajaxplorer either tbh)
and google isn't being responsive about this either :/
Could you elaborate a bit on which port i need plz?
 
D

dlavigne

Guest
If you have the ports collection installed, as the superuser do this:

cd /usr/ports/textproc/expat
make deinstall
make install

If you are instead using packages, do this as the superuser:

pkg delete -f expat
pkg install expat
 

Scareh

Contributor
Joined
Jul 31, 2012
Messages
182
Code:
 
root@Ajaxplorer:/ # cd /usr/ports/textproc/expat
/usr/ports/textproc/expat: No such file or directory.
root@Ajaxplorer:/ # cd /usr/ports/textproc/expat && make install clean
/usr/ports/textproc/expat: No such file or directory.

i did a portsnap fetch extract just to be sure it was up to date, but no dice. I used it inside my jail as root, not sure if you mean jail or inside freenas shell?
And i'm not using any packages, only ports.
 
D

dlavigne

Guest
My bad, it should be /usr/ports/textproc/expat2.

Also, NEVER add software from the freenas shell, always from within a jail.
 

Scareh

Contributor
Joined
Jul 31, 2012
Messages
182
figured you meant to use it install inside the jail, just wanted to be 100% certain :p

that fixed it btw, so tyvm.

Any idea why it breaks when i reboot/stop-start the jail?
 

Scareh

Contributor
Joined
Jul 31, 2012
Messages
182
ah didn't verify, thought this was just a temp solution, my bad.
And yes it fixed it now permanently so tyvm!
 
Status
Not open for further replies.
Top