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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
07-12-2006, 05:08 PM
|
#1
|
|
Member
Registered: Jan 2006
Location: France
Distribution: Debian Squeeze, Webmin + Virtualmin (remote dedi)
Posts: 212
Rep:
|
Bloody instance already running
Hello folks
I have a weird problem with a program that I cannot run, because the sytem thinks it's already running - while this is not the case.
Code:
[sabin@mdv ~]$ amule
Initialising aMule
Checking if there is an instance already running...
There is an instance of aMule already running
Raising current running instance.
[sabin@mdv ~]$
I'm running Mandriva 2006 with KDE 3.4.2, and amule is installed from an RPM package provided by PLF.
I tried removing and then reinstalling the program's package : that changed nothing.
I changed KDE's defaults, so that it would boot with a blank/virgin session, without any previous parameters : that changed nothing.
Of course, there is no amule program running, ksysguard (or a simple ps -A) didn't show any sign of it.
If I run amule as another user, for instance, this time the program will run.
So well, would you have any idea how I could solve that problem and be finally able to be able to run again my program ?
Any additional info required, I'll fetch it
Thanks a lot if you can help 
|
|
|
|
07-12-2006, 05:48 PM
|
#2
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
You probably have an errant pid entry. go into /proc and look into the pid directories, you should be looking at the symlinks exe. one of these probably will be pointing a aMule, delete that entry and voila.
But PLEASE make sure that it really isn't running that pid by using kill first.
|
|
|
|
07-12-2006, 06:58 PM
|
#3
|
|
Member
Registered: Jan 2006
Location: France
Distribution: Debian Squeeze, Webmin + Virtualmin (remote dedi)
Posts: 212
Original Poster
Rep:
|
Thanks for the reply, Leonscape.
It took me quite a while for finding how to check all the exe symlinks (the list kept refreshing too fast), a search for "exe" and a quick glance of of of the columns did the trick ^^
But alas, after a search, I can tell that no exe symlink is pointing at /usr/bin/amule 
Isn't it weird, after all, since another user can run the program perfectly ?
Thanks again, even if it didn't work 
Would you have an other idea, perhaps ? 
|
|
|
|
07-13-2006, 06:20 PM
|
#4
|
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
Try looking in the temp directories, maybe its left something behind something its checking, failing and throwing up an unrelated error. check also any config files in the users local directory . directories and files are common, maybe one of them is corrupt.
|
|
|
|
07-13-2006, 08:21 PM
|
#5
|
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
Check for a lock file in the .amule directory of your home directory.
|
|
|
|
07-14-2006, 05:13 AM
|
#6
|
|
Member
Registered: Jan 2006
Location: France
Distribution: Debian Squeeze, Webmin + Virtualmin (remote dedi)
Posts: 212
Original Poster
Rep:
|
Erm, I have indeed a lock file "muleLock" in the .amule directory, and though it's a binary file, the file contains 4910, which could be a PID.
And, I just tested, that was REALLY the cause of the problem.
How weird ?? Why such a file's presence would induce the program into already believing an instance was already running ? o_O
Thanks a great lot, Jtshaw :-)
|
|
|
|
07-14-2006, 07:10 AM
|
#7
|
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
Quote:
|
Originally Posted by Sabinou
How weird ?? Why such a file's presence would induce the program into already believing an instance was already running ? o_O
|
This is a method programs use to determine if there is an instance already running. On execution the first thing they do is check for the existence of a file (usually called lock or something like that). If the file is there, they assume another instance and won't execute. If it isn't they write the file and move on. I for one hate this method and find it antiquated.. but a lot of people still use it.
|
|
|
|
07-14-2006, 07:39 AM
|
#8
|
|
Member
Registered: Jan 2006
Location: France
Distribution: Debian Squeeze, Webmin + Virtualmin (remote dedi)
Posts: 212
Original Poster
Rep:
|
Thanks again for the info, then  )
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:42 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|