LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-08-2005, 11:10 PM   #1
maelstrom209
Member
 
Registered: Sep 2004
Location: The Imagination
Distribution: Suse 9.3 Professional
Posts: 176

Rep: Reputation: 30
Switching Profiles in Mozilla, Firefox, and Thunderbird


My computer unexpectically shut itself off last night while I had a bunch of programs open. I think the computer got a bit hot and need a rest so I left it alone. I just went and turned on my laptop and found that Mozilla, Firefox, and Thunderbird all will not let me log into my default identity because it's currently in use. I think that something happened when the laptop crashed casing the programs I was using to be running still. I was wondering how to switch back to my default profile. I'm using a profile that I just made right now but haven't found the option to switch back. Any help would be greatly appreciated. I have some many saved features on my Mozilla and Firefox browsers along with tons of email in Thunderbird. I cannot lose this information. Thanks in advance for any help I'll get.
 
Old 01-09-2005, 12:18 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Tools -> Switch Profile
Does that not work? If so, do this:
Code:
ps -aux | grep mozilla
And kill any valid processes, then retry
Do the same for Thunderbird.
 
Old 01-09-2005, 12:29 AM   #3
maelstrom209
Member
 
Registered: Sep 2004
Location: The Imagination
Distribution: Suse 9.3 Professional
Posts: 176

Original Poster
Rep: Reputation: 30
Quote:
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 5541 0.0 0.1 1696 632 pts/1 S+ 22:29 0:00 grep mozilla
That's the error message that I get when I do the command "ps -aux | grep mozilla" Also, under "Tools" I do not have the option to switch profiles. I only looked for Firefox though. For Firefox I'm running version 1.0 Preview. I have not checked the other programs to see if this code works for them.
 
Old 01-09-2005, 12:34 AM   #4
maelstrom209
Member
 
Registered: Sep 2004
Location: The Imagination
Distribution: Suse 9.3 Professional
Posts: 176

Original Poster
Rep: Reputation: 30
This is strange. It seems that Mozilla is able to log into the default profile and I didn't need to switch it. I still didn't have much luck in trying to get Firefox and Thunderbird to switch to the default identity.
 
Old 01-09-2005, 01:08 AM   #5
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
I'm sorry, the command is actually
Code:
ps aux | grep mozilla
note the lack of the -
but it doesn't cause any problems that I've experienced.
That's where the switch profile is on Mozilla-1.7
Try looking under the other Menus at the top... it should be in there somwehere.
 
Old 01-09-2005, 09:10 PM   #6
maelstrom209
Member
 
Registered: Sep 2004
Location: The Imagination
Distribution: Suse 9.3 Professional
Posts: 176

Original Poster
Rep: Reputation: 30
This is not good! I've tried this code and I've managed to find the path to my profile. The path is as follows:

Code:
/mozillafirefox/lib/defaults/profiles/
The problem is that this is the "profiles" directory but I don't see the profiles that I have made? Please help! I don't know what to do.
 
Old 01-09-2005, 10:19 PM   #7
zedmelon
Member
 
Registered: Jun 2004
Location: colorado, USA
Distribution: slack, oBSD
Posts: 119

Rep: Reputation: 22
EDIT:
Before deleting files as I mentioned below, be absolutely CERTAIN that the file in question is only for 'locking' Mozilla, and not used by something else!

Quote:
Originally posted by maelstrom209
This is not good! I've tried this code and I've managed to find the path to my profile. The path is as follows:

/mozillafirefox/lib/defaults/profiles/

The problem is that this is the "profiles" directory but I don't see the profiles that I have made? Please help! I don't know what to do. :(
That might not be where your profile information is stored, so an empty directory might not be bad news. If you see a directory with a name like "alk4j8adfjk" or "7ahejdf89" then look inside there.

Search for a file with "lock" in the name, most likely "parent.lock." Mozilla uses this to denote an in use status and removes it when you completely close all windows, download manager, mail, et cetera. I'm not 100% certain Firefox uses the same technique, but if it does, deleting this file should fix your issue.

Code:
find /mozillafirefox/ -name *lock*
If that doesn't give you any output, try
Code:
find / -name *lock*
As for the "ps" command, some distros use different versions/flavors. For Slackware, ps -ef or ps -aux work well. Open BSD had a version that freaked out on the "f" option. The basic command is there, but when in doubt RTFM.

In any case, if you're being told that Mozilla is in use, you might keep looking for an orphan or zombie process. However, if it's the profile, I'd try some timestamp, permissions change, or some other change in file/directory structure/access. If your machine actually *crashed* I doubt you still have some rogue process hindering you.

Last edited by zedmelon; 01-09-2005 at 10:25 PM.
 
Old 01-09-2005, 11:01 PM   #8
maelstrom209
Member
 
Registered: Sep 2004
Location: The Imagination
Distribution: Suse 9.3 Professional
Posts: 176

Original Poster
Rep: Reputation: 30
When I did a search, this is what the information I got back
Code:
/home/maelstrom/.mozilla/firefox/zk2oofxx.grrgl/lock
/home/maelstrom/.mozilla/firefox/p44zbuku.default/lock
These are both directories. The one labelled "grrgl" is the temp one that I'm currently using. The "default" is the one that I want to get back into. Since they are both directories, should I still delete them?

During the search, I also found the one for Thunderbird:
Code:
/home/maelstrom/.thunderbird/v36uw3h3.default/lock
This worries me a bit because this is the only one that I found. I know that I had to make a temporary profile to see what's going on but for the search I only found the ".default" Is it wise to delete this directory? I'm hesitant to do so because I have emails I need to keep in there.

EDIT:
Is there a command of some kind for me to unlock the directories so that it won't think the profiles are being used? Can a "killall" process do the trick? I've reboot and shut down my laptop a bunch of times which is supposed to "killall" but I'm still having this problem...

Last edited by maelstrom209; 01-09-2005 at 11:03 PM.
 
Old 01-09-2005, 11:31 PM   #9
zedmelon
Member
 
Registered: Jun 2004
Location: colorado, USA
Distribution: slack, oBSD
Posts: 119

Rep: Reputation: 22
NOTE: be sure to note the part about renaming a file before deleting it permanently. The cool think about UNIX is that it gives you the power to do anything. The bad thing is, in giving you that power, it has to assume you know what you're doing. I've been on the bad end of learning that lesson too many times. Rename a file, and if it wasn't needed, no programs will complain that it's gone. THEN delete it.

Quote:
Originally posted by maelstrom209
When I did a search, this is what the information I got back
Code:
/home/maelstrom/.mozilla/firefox/zk2oofxx.grrgl/lock
/home/maelstrom/.mozilla/firefox/p44zbuku.default/lock
These are both directories. The one labelled "grrgl" is the temp one that I'm currently using. The "default" is the one that I want to get back into. Since they are both directories, should I still delete them?
NO NO! please not the directories! Just the file itself. The "grrgl" is locked because the system crashed while the file was there. The other one is locked because you're using it to browse LinuxQuestions.org.

Quote:
During the search, I also found the one for Thunderbird:
Code:
/home/maelstrom/.thunderbird/v36uw3h3.default/lock
This worries me a bit because this is the only one that I found. I know that I had to make a temporary profile to see what's going on but for the search I only found the ".default" Is it wise to delete this directory? I'm hesitant to do so because I have emails I need to keep in there. :confused:
I'm guessing that you aren't using Thunderbird right now, so the default (which was running at Crash Time) is the only directory containing a "lock" file.
Fire up T-bird and search again. Did you find two this time?

Again, DON'T delete the entire directory; just delete the file itself. And renaming the file instead of deleting it is always a good idea. try this:
Code:
mv lock IsureHopeZedDidntGiveMeBadAdvice
If the file was needed, rename it back. If it wasn't, your mail should still be fine, just where you left it.

Quote:
EDIT:
Is there a command of some kind for me to unlock the directories so that it won't think the profiles are being used? Can a "killall" process do the trick? I've reboot and shut down my laptop a bunch of times which is supposed to "killall" but I'm still having this problem... :(
Hopefully the above will work for you; I don't think it's a process problem as much as Mozilla checking for the existence of this file when it starts, and when it *finds* the file, it assumes you've already got another instance of Mozilla running.

Good luck.
-zed

PS: *bonk* Oh yeah, I should've told you to check your home directory :\ That's where you'll find LOTS of user-specific config files. Nearly all of them.

Last edited by zedmelon; 01-09-2005 at 11:33 PM.
 
Old 01-10-2005, 12:50 AM   #10
maelstrom209
Member
 
Registered: Sep 2004
Location: The Imagination
Distribution: Suse 9.3 Professional
Posts: 176

Original Poster
Rep: Reputation: 30
YES!! I finally got it to work! What I did was go into the directory and find the filed labeled "lock." I went ahead and deleted this file within the profile directory and everything is working again! Thanks so much for all of your help. I really appreciate it. I'm so happy that I saved all of my mail. Thanks again!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Switching Profiles in Firefox, and Thunderbird maelstrom209 Linux - General 1 01-10-2005 12:53 AM
Problems with Profiles on Firefox and Thunderbird running on Suse 9.2 maelstrom209 Suse/Novell 1 01-10-2005 12:53 AM
mozilla packages vs. Debian (firefox and thunderbird) TimmyP Debian 6 12-22-2004 09:13 AM
Mozilla, Firefox, and Thunderbird not loading craigienz Linux - Software 2 12-20-2004 12:13 AM
Mozilla Firefox and Mozilla Thunderbird FireInTheDark Linux - Software 3 08-14-2004 11:52 AM


All times are GMT -5. The time now is 11:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration