ApplicationInstance lock should check process name to find invalid lock files

Bug #1341414 reported by Robert Moore
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Back In Time
Fix Released
Medium
Germar

Bug Description

As far as I can tell, the daily backups are still taking place just fine, but the GUI refuses to show itself, and this started within the last three weeks or so (since that was approximately the last time that I checked into the state of my backups).

Going to a shell to run BIT we get the normal boilerplate as well as the message that the application is already running and providing a PID. Strangely, upon checking with ps, there's no such PID, and there's no 'backtintime' anywhere in the list.

Ubuntu 12.04

Tags: gui
Revision history for this message
Germar (germar) wrote :

Please take a look if there is a file '~/.local/share/backintime/app.lock.pid' and delete it.

Revision history for this message
Robert Moore (32variations) wrote : Re: [Bug 1341414] Re: GUI refuses to come up.

Thanks for your quick response.

There's no such file. Also, a few hours ago, the problem magically went
away.

Before I sent my bug report, I did an extensive search and found that,
indeed, other individuals had also had this same issue - and the same
resolution: it went away.

About all I "did" that might possibly have made any difference was to
briefly drop into a KDE desktop and see if I could root around there and
find out anything about my regular 12.04/Gnome login. After finding nothing
informative, I logged back into my normal desktop, tried the usual root
launcher one last time and all was well again.

The only other thing that was going on that might have something to do with
it was the fact that it had missed doing the backup the day before all of
this apparently started because I forgot to plug in the backup drive.

Hope that helps. I will let you right away if it occurs again. I tend to be
really anal about my computer, so I'll watch more carefully and see if I
can uncover some useful information.

Thanks!

On Mon, Jul 14, 2014 at 5:57 AM, Germar <email address hidden> wrote:

> Please take a look if there is a file
> '~/.local/share/backintime/app.lock.pid' and delete it.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1341414
>
> Title:
> GUI refuses to come up.
>
> Status in Back In Time:
> New
>
> Bug description:
> As far as I can tell, the daily backups are still taking place just
> fine, but the GUI refuses to show itself, and this started within the
> last three weeks or so (since that was approximately the last time
> that I checked into the state of my backups).
>
> Going to a shell to run BIT we get the normal boilerplate as well as
> the message that the application is already running and providing a
> PID. Strangely, upon checking with ps, there's no such PID, and
> there's no 'backtintime' anywhere in the list.
>
> Ubuntu 12.04
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/backintime/+bug/1341414/+subscriptions
>

Revision history for this message
Germar (germar) wrote : Re: GUI refuses to come up.

What has happen is this:
- 'app.lock.pid' wasn't removed for what ever reason last time you closed BIT GUI (may be BIT crashed)
- the PID inside that lock file was now used by an other process (may be from your Gnome desktop)
- BIT read the lock file and send a 'kill -0 <PID>' to check if the process is alive and got a positive response. So it said the lock is valid and exit
- when you logged out of Gnome and log into KDE this process was killed and no other process took the same PID again
- next time you started BIT 'kill -0 <PID>' showed no running process and so deleted the (now invalid) lock and started just normal.

Problem is that we don't check which process is using that PID. We just check if there is a process alive with this PID.

summary: - GUI refuses to come up.
+ ApplicationInstance lock should check process name to find invalid lock
+ files
Changed in backintime:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Robert Moore (32variations) wrote :

What was surprising was that the issue survived many reboots and cold boots. It was only a guess on my part that trying one of my other desktops might have anything to do with it, or perhaps even lead to a favorable outcome.

Thanks again.

Germar (germar)
Changed in backintime:
status: Triaged → Fix Committed
milestone: none → 1.1.0
assignee: nobody → Germar (germar)
Germar (germar)
Changed in backintime:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.