Firefox is already running, but not responding - Bug?
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You're right that "My documents" is a Windows-folder. But it is on the Mandriva Flash stick and it's empty in the beginning. It does not inherit anything from the hard disk My Documents folder, it 'inherits' the documents from the /home/$USER folders. Yes, I've used it on other computers as well. It still has the same bookmarks!
OK, then the Mandriva Flash configuration is unique. Even Mandriva One does not include a My Documents folder (directory). Since I do not use the Flash release here I am unfamiliar with its characteristics. You may be best served to ask this question on the Mandriva Users Forum (this link gets you to the main portal page).
Okay the solution is quite simple, this is what u have to do,
Open up a Terminal window,
type in this,
cd .mozilla/
cd firefox/
ls -a
cd (name).default (You'll see a folder with default extension)
ls -a
LOOK FOR "LOCK" file, if there, type in
rm lock
TRY RUNNING NOW, IF NOT THEN LOOK FOR "PARENTLOCK",
rm parentlock
Thanks for the answer, but as you can see in the thread above, this did not solve the problem. In the meantime I installed Linux again from scratch, and since then the problem didnṫ show up again.
run the above commands as the user who is having firefox problem.
In addition.. i moved my firefox binary (/usr/lib/firefox/firefox-bin) to /usr/lib/firefox/firefox-bin.org and kept my script (shown below) as /usr/lib/firefox/firefox-bin. so that the same problem will be solved background itself
Code:
#!/bin/bash
# /usr/lib/firefox/firefox-bin script
if ! [ `id -u` = 0 ]
then
chmod -R 777 $HOME/.mozilla/
find $HOME/.mozilla -name lock > /dev/null 2>&1
if [ $? = 0 ]
then
rm -f `find $HOME/.mozilla -name lock` 2> /dev/null
rm -f `find $HOME/.mozilla -name sessionstore.js` 2> /dev/null
rm -f `find $HOME/.mozilla -name .parentlock` 2> /dev/null
fi
fi
/usr/lib/firefox/firefox-bin.org $*
You can try this out. But dont mess up if you are not clear what is happening..
run the above commands as the user who is having firefox problem.
In addition.. i moved my firefox binary (/usr/lib/firefox/firefox-bin) to /usr/lib/firefox/firefox-bin.org and kept my script (shown below) as /usr/lib/firefox/firefox-bin. so that the same problem will be solved background itself
Code:
#!/bin/bash
# /usr/lib/firefox/firefox-bin script
if ! [ `id -u` = 0 ]
then
chmod -R 777 $HOME/.mozilla/
find $HOME/.mozilla -name lock > /dev/null 2>&1
if [ $? = 0 ]
then
rm -f `find $HOME/.mozilla -name lock` 2> /dev/null
rm -f `find $HOME/.mozilla -name sessionstore.js` 2> /dev/null
rm -f `find $HOME/.mozilla -name .parentlock` 2> /dev/null
fi
fi
/usr/lib/firefox/firefox-bin.org $*
You can try this out. But dont mess up if you are not clear what is happening..
I had the same problem. I did the following to remove the stale lock files and then opened firefox. it worked.
Thanks for the answer, but as you can see in the thread above, this did not solve the problem. In the meantime I installed Linux again from scratch, and since then the problem didnṫ show up again.
the command "ps -A | grep firefox" is case sensitive if you look at the ps --help there are a lot of letters and the upper case perform different functions then the lower case ones do hope this helps
Cure to misleading "firefox already running" message
>>>This seems to be caused by a corruption in the user's Firefox profile.
>>>First stop Firefox (and you may as well delete lock files).
ps aux | grep firefox
>>kill any processes you find..
kill -9 "nnnn" (process number = nnnn)
>>>remove lock files cd ~"username"/.mozilla/firefox/uuhu32gf.default/ (or whatever your profile directory is)
ls -alh
rm lock
rm .parentlock
rm sessionstore.js
>>>Now rename the ini file which selects your corrupt profile at firefox startup (so firefox will no longer find "profiles.ini"). cd ~username/.mozilla/firefox/
mv profiles.ini not_profiles_ini
In the absence of profiles.ini, when you restart Firefox (and it will start now) firefox will create a new profile and profiles.ini file. The name of the new profile will be visible in >
ls ~username/.mozilla/firefox/
Suggest then copying bookmarks from your old profile folder to the new one (unless someone has time to spare doing further definitive investigation to pin down the exact file causing the old profile to fail).
To restore bookmarks from old profile:
>>find your old bookmarks (the most recent LARGE "bookmarks-(date of last known good).json" file in this directory (ignore any more recent tiny / empty ones created by the corrupted or failed firefox profile).
ls ~username/.mozilla/firefox/"old_profile_directory"/bookmarkbackups/
Copy last good bookmark backups .json file to new profile: cp ~username/.mozilla/firefox/"old_profile_directory"/bookmarkbackups/bookmarks-2012-02-29.json ~username/.mozilla/firefox/"new_profile_directory"/bookmarkbackups
Open Firefox (your bookmarks won't be there yet, unlike the old method of just copying a bookmarks file, this is a 2-stage process).
Click on bookmarks > show all bookmarks > import and backup > restore >>> choose the file / date from the menu which corresponds to the last-known good file (.json) that you just previously / copied restored.
Your old bookmarks will all now be available, although the "bookmarks toolbar folder (ie links/personal bookmarks, whatever you like to call it) may need restoring by dragging on your own favourites.
Last edited by tonyh1; 03-05-2012 at 12:57 PM.
Reason: Added detail
I saw that fine script from ksri07091983 in post #69.
However, I think there is a bug there.
If you try to run firefox for a second time, then it tries to delete the existing lock files, which will happily happen.
Then, you delete anything saved within the session, which means that if you have many windows and tabs open, next time you start you will not have them !
If you remove the
Code:
rm ... sessionstore.js
then you get the whole session again, that is all the windows and tabs you had last time (or is saved, anyway).
I would recommend add a line about if firefox runs already, then let it run as-is.
I would change your
Quote:
find
and
Quote:
if
commands into :
Code:
ps -e | grep firefox &>/dev/null; let lastexit=$?
find $HOME/.mozilla -name lock &>/dev/null ; let lastexit+=$?
if [ $lastexit = 0 ]
That way you run the rm set only if there is lock file AND the firefox does not run (i.e. first call).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.