Operating System - HP-UX
1832833 Members
2979 Online
110047 Solutions
New Discussion

Re: Firefox doesn't start anymore

 
SOLVED
Go to solution
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

I know copy/past is more credible. Problem is that I can't do that without a browser running. And that's what my whole problem is right now.

The hostname is set in /etc/hosts.

X-programs running fine are Adobe Reader and Scilab. Both are started from commandline.
Dennis Handly
Acclaimed Contributor

Re: Firefox doesn't start anymore

>I attached the output from tusc.out.

This indicates: DISPLAY=10.0.0.7:0.0
There were a bunch of connect(2) to a socket that got:
connect(5, 0x7f7f1134, 16) ... ERR#239 ECONNREFUSED

It then did an exit(1). The last message it wrote to stderr was:
write(2, "\n( f i r e f o x - b i n : 3 4 ".., 60)

H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

I ran tusc again, now with DISPLAY having the default value. I assume it contains the same errors.
Dennis Handly
Acclaimed Contributor

Re: Firefox doesn't start anymore

>I ran tusc again, now with DISPLAY having the default value. I assume it contains the same errors.

It is completely different.
DISPLAY=Somerset:0.0

(You actually have machines with uppercase letters? :-)

LD_LIBRARY_PATH=/opt/firefox:/opt/firefox/plugins:=/opt/gtk2.6/lib/mre/mre-2.0.0.19
SHLIB_PATH is also broken.

This embedded "=" isn't going to help.

And you have this xhost error:
write(2, "X l i b : c o "n n e c t i o n t o " S o m e r s e t : 0 . 0 " r e f u s e d b y s e r v r \r\nX l i b : C l i e n t i s n o t a u "
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

Do you have any suggestion on what action to take?
You say "This embedded "=" isn't going to help."; what should be better?
Also "And you have this xhost error:
write(2, "X l i b : c o "n n e c t i o n t o " S o m e r s e t : 0 . 0 " r e f u s e d b y s e r v r \r\nX l i b : C l i e n t i s n o t a u "" What does this indicate? That I can't start firefox because xserver refuses a connection? Why?
Dennis Handly
Acclaimed Contributor

Re: Firefox doesn't start anymore

>Do you have any suggestion on what action to take?

You need to use xhost on Somerset to allow the current machine to display there.

>You say "This embedded "=" isn't going to help."; what should be better?

Remove the "=" before =/opt/gtk2.6.

>What does this indicate? That I can't start firefox because xserver refuses a connection?

First of all, do you see that complete message?
Yes. You haven't done xhost to allow it to display.
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

>You need to use xhost on Somerset to allow the current machine to display there.

This sounds like a misunderstanding. I have installed firefox on Somerset and I'm trying to run it on Somerset. No other machine involved.

>Remove the "=" before =/opt/gtk2.6.

I've been searching in /(root), /etc and my homedir where LD_LIBRARY_PATH is configured, but I can't find it.
Dennis Handly
Acclaimed Contributor

Re: Firefox doesn't start anymore

>I have installed firefox on Somerset and I'm trying to run it on Somerset. No other machine involved.

Try xhost Somerset and localhost.

>>Remove the "=" before =/opt/gtk2.6.

>I've been searching in /(root), /etc and my homedir where LD_LIBRARY_PATH is configured, but I can't find it.

Also look for SHLIB_PATH. Or all variables:
$ env | fgrep ==
If you don't set /opt/gtk2.6, this may be broken in /opt/firefox/firefox. Ah, it's there in mine too!
moz_libdir==/opt/gtk2.6/lib/firefox-2.0.0.16
MRE_HOME==/opt/gtk2.6/lib/mre/mre-2.0.0.16
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

>Try xhost Somerset and localhost.

Neither work out starting firefox

>Also look for SHLIB_PATH

Have looked for it in /(root), /etc and homedir, but can't find it. Also "echo $SHLIB_PATH" shows empty.

>$ env | fgrep ==

Shows empty.
Dennis Handly
Acclaimed Contributor

Re: Firefox doesn't start anymore

>but can't find it.

I told you that the "=" problem is in /opt/firefox/firefox.
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

>I told you that the "=" problem is in /opt/firefox/firefox.

Ok. I grepped on "==" in /opt/firefox/firefox and got this:

moz_libdir==/opt/gtk2.6/lib/firefox-2.0.0.19
MRE_HOME==/opt/gtk2.6/lib/mre/mre-2.0.0.19

So you suggest to remove 1 of the "=" in both lines?
TTr
Honored Contributor

Re: Firefox doesn't start anymore

My /opt/firefox/firefox has the same exact lines with the double equal signs in it and runs fine. The two paths after the double equal signs do not exist either. I don't think this is the problem.

> Have looked for it in /(root), /etc and homedir, but can't find it. Also "echo $SHLIB_PATH" shows empty

I think this IS the problem. You need to recreate the SHLIB_PATH variable.

> After installing Gimp, I noticed Firefox doesn't start anymore. Removed Gimp and all dependencies, but still nothing

What other software got removed? It is possible that something got removed that was needed. Check the swremove log and try to find out. At a minimum the /opt/gtk2.6/lib should be there. It is needed fy firefox.
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

>I think this IS the problem. You need to recreate the SHLIB_PATH variable.

I assume I have to export it from somehwere like /etc/profile? On the other hand, I have a wrapper script for Adobe Reader that does: export SHLIB_PATH="/opt/gtk2.6/lib". And Adobe Reader works well.

>Check the swremove log and try to find out. At a minimum the /opt/gtk2.6/lib should be there. It is needed fy firefox.

I have it (see above). I just added "export SHLIB_PATH="/opt/gtk2.6/lib"" as the first line to the startfirefox script, but it doesn't solve the problem.

swremove.log shows the following packages as removed: gimp, libXpm, libXrender, pango, gegl, babl, atk, cairo, expat, fontconfig, freetype, gettext, glib2, libiconv, libpng, pixman, t1lib, xpdf, zlib.
Dennis Handly
Acclaimed Contributor

Re: Firefox doesn't start anymore

>So you suggest to remove 1 of the "=" in both lines?

Yes. But it still works for me with the two "==" so it might not be the real problem.

lsof says my IPF firefox is using these shlibs:
/opt/firefox/libmozjs.so
/opt/firefox/libnspr4.so
/opt/firefox/libplc4.so
/opt/firefox/libplds4.so
/opt/firefox/libxpcom.so
/opt/firefox/libxpcom_core.so
/opt/gtk2.6/lib/libXft.so
/opt/gtk2.6/lib/libXrender.so
/opt/gtk2.6/lib/libatk-1.0.so
/opt/gtk2.6/lib/libexpat.so
/opt/gtk2.6/lib/libfontconfig.so
/opt/gtk2.6/lib/libfreetype.so
/opt/gtk2.6/lib/libgdk-x11-2.0.so
/opt/gtk2.6/lib/libgdk_pixbuf-2.0.so
/opt/gtk2.6/lib/libglib-2.0.so
/opt/gtk2.6/lib/libgmodule-2.0.so
/opt/gtk2.6/lib/libgobject-2.0.so
/opt/gtk2.6/lib/libgthread-2.0.so
/opt/gtk2.6/lib/libgtk-x11-2.0.so
/opt/gtk2.6/lib/libiconv.so
/opt/gtk2.6/lib/libintl.so
/opt/gtk2.6/lib/libpango-1.0.so
/opt/gtk2.6/lib/libpangoft2-1.0.so
/opt/gtk2.6/lib/libpangox-1.0.so
/opt/gtk2.6/lib/libpangoxft-1.0.so
/opt/gtk2.6/lib/libz.so.1.2.3
/usr/lib/hpux32/X11R6/libICE.so.1
/usr/lib/hpux32/X11R6/libSM.so.1
/usr/lib/hpux32/X11R6/libX11.so.1
/usr/lib/hpux32/X11R6/libXext.so.1
/usr/lib/hpux32/X11R6/libXt.so.1
/usr/lib/hpux32/dld.so
/usr/lib/hpux32/libCsup.so.1
/usr/lib/hpux32/libc.so.1
/usr/lib/hpux32/libdl.so.1
/usr/lib/hpux32/libm.so.1
/usr/lib/hpux32/libnss_dns.so.1
/usr/lib/hpux32/libnss_files.so.1
/usr/lib/hpux32/libpthread.so.1
/usr/lib/hpux32/librt.so.1
/usr/lib/hpux32/libstd_v2.so.1
/usr/lib/hpux32/libuca.so.1
/usr/lib/hpux32/libunwind.so.1
/usr/lib/hpux32/uld.so
libjavaplugin_nscp.so
mozilla/libjavaplugin_oji.so

/opt/gtk2.6/lib is in the embedded path 3 times, so you don't really need to put it in LD_LIBRARY_PATH/SHLIB_PATH.
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

Unfortunately I can't remember which packages I had installed, if any, before I installed Gimp. But, regarding your lsof list, I've installed this list:

atk 1.26.0 atk
cairo 1.8.8 cairo
expat 2.0.1 expat
fontconfig 2.7.0 fontconfig
freetype 2.3.9 freetype glib2 2.20.4 glib2
libXft 2.1.13 libXft
libXrender 0.9.4 libXrender
libiconv 1.13.1 libiconv
libpng 1.2.37 libpng
links 1.00pre23 links
lsof 4.82 lsof
openssl 0.9.8k openssl
pango 1.24.4 pango
pixman 0.15.14 pixman
unzip 5.52 unzip
zlib 1.2.3 zlib

Despite this list, firefox doesn't start. At least, with "links" I have a browser.
TTr
Honored Contributor

Re: Firefox doesn't start anymore

I ran my firefox through tusc and compared my tusc output to yours and at the top your file the obvious item that is missing is the SHLIB_PATH. In fact in your tusc output the SHLIB_PATH appears later on 3 times and it has bad syntax.
"SHLIB_PATH=/opt/firefox:=/opt/gtk2.6/lib/mre/mre-2.0.0.19" The syntax not only is wrong but the mre subdirectory does not exist.

My SHLIB_PATH is set to
"SHLIB_PATH=/opt/firefox:=/opt/gtk2.6/lib/mre/mre-2.0.0.12:/usr/lib:/etc/opt/resmon/lib:/opt/gnome/lib:/opt/graphics/phigs/lib:/opt/java1.4/jre/lib:/opt/gtk+2/lib:/usr/local/lib:/opt/gtk2.6/lib"

So I suggest that you create the SHLIB_PATH variable and export it in your shell before you invoke firefox. Note that the ":=/opt/gtk2.6/lib/mre/mre-2.0.0.12" is not a valid path neither it exists but it does not break the syntax for all the other library paths before and after the mre path.
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

>So I suggest that you create the SHLIB_PATH variable and export it in your shell before you invoke firefox.

I put your SHLIB_PATH in the script right before /opt/firefox/firefox. Unfortunately, firefox still doesn't start.
Suraj K Sankari
Honored Contributor

Re: Firefox doesn't start anymore

Hi,

Please don't forget to assign some points who give there valuable time for your problem.

To know how to assign points please go through the below link.


http://forums13.itrc.hp.com/service/forums/helptips.do?#33

Suraj
TTr
Honored Contributor

Re: Firefox doesn't start anymore

Did you export it?
/opt/firefix/firefox is a script that runs (not sources) another script, the /opt/firefox/run-mozilla.sh which in turn run the firefox-bin.
Did you run ut again through tusc and did you check if the SHLIB_PATH is set as you put it in?
I would type in a shell

export SHLIB_PATH=/usr/lin:/....all paths here
/opt/firefox/firefox

If it still doesn't work, run it through tusc and post the tusc output.
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

>Did you export it?

Yes, I did.

>I would type in a shell

Didn't work out.

>If it still doesn't work, run it through tusc and post the tusc output.

Here's both tusc.out and the xhost output I got after "xhost +Somerset":

# /usr/bin/X11/xhost +Somerset
Xlib: connection to "Somerset:0.0" refused by server
Xlib: Client is not authorized to connect to Server
/usr/bin/X11/xhost: unable to open display "Somerset:0.0"
Dennis Handly
Acclaimed Contributor

Re: Firefox doesn't start anymore

# /usr/bin/X11/xhost +Somerset
Xlib: connection to "Somerset:0.0" refused by server

This is the problem you need to solve. This was the error message firefox was trying to print.

Does the command "xhost" print a list?
Can nslookup find Somerset?
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

>Does the command "xhost" print a list?

$ xhost
access control enabled, only authorized clients can connect

# /usr/bin/X11/xhost
Xlib: connection to "Somerset:0.0" refused by server
Xlib: Client is not authorized to connect to Server
/usr/bin/X11/xhost: unable to open display "Somerset:0.0"

>Can nslookup find Somerset?

$ nslookup Somerset
Using /etc/hosts on: Somerset

looking up FILES
Name: Somerset
Address: 10.0.0.17
TTr
Honored Contributor

Re: Firefox doesn't start anymore

Why do you have the xhost running as a non root user ($ xhost), and as a root user (# /usr/bin/X11/xhost)? How are you loging in to the server? The tusc file you attached shows that you are running firefox as the huub user. Are you loging in as root and then doing su to the huug user?

You should login to CDE as a user and run firefox as the same user. Try loging in as root and run firefox as root and see if it starts up.
H. van Niekerk
Frequent Advisor

Re: Firefox doesn't start anymore

>You should login to CDE as a user and run firefox as the same user. Try loging in as root and run firefox as root and see if it starts up.

Good point. Now it turns out that as a normal user, the startfirefox script doesn't get firefox started, while as root it does get firefox started.
TTr
Honored Contributor

Re: Firefox doesn't start anymore

> as a normal user, the startfirefox script doesn't get firefox started

Ok, now we are getting somewhere. As a normal user, did you login to the main CDE screen so that the entire desktop belongs to that user?. No root logins and no "su"?