gscan2pdf does not start on Ubuntu 9.04

Bug #301515 reported by Dakkar
4
Affects Status Importance Assigned to Milestone
gscan2pdf (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gscan2pdf

After upgrading to Ubuntu 9.04 development branch, gscan2pdf does not start at all. Scanner is working in other applications (ex Xsane scanner utility)

If I try to start gscan2pdf from the command line by typing "gscan2pdf" I get this message :

"/tmp/tnexKMvNv6/session" does not exist within ConfigPath: /tmp/tnexKMvNv6! at /usr/bin/gscan2pdf line 1581"

Thanks!

Revision history for this message
Mike Waters (robert-waters) wrote :

It looks like gscan2pdf is relying on a session file in the /tmp directory, which is being purged for some reason (cron, or startup; I am not sure of how ubuntu handles /tmp).
The link to that nonexistant session file (inside 'ConfigPath') is part of gscan2pdf's per-user settings file, in the logged-on user's home directory: ~/.gscan2pdf

So, simply deleting this file will allow the app to start, albeit with the default configuration (minus anything that was saved in that settings file).

In my office I've just placed a perl script on the desktop of all scan PCs:
#!/usr/bin/perl

exec("rm ~/.gscan2pdf");

This is obviously a temporary solution, and not even a very good one ;)

So, good luck.
-Mike Waters

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

This is known problem, fixed in the upcoming release.

The problem only occurs when gscan2pdf is not shutdown cleanly, and then the temp area is deleted before gscan2pdf is restarted.

If gscan2pdf is restarted first, then it will restore the previous session.

> #!/usr/bin/perl
> exec("rm ~/.gscan2pdf");

How about

#!/bin/bash
rm ~/.gscan2pdf

or even

#!/bin/bash
mv ~/.gscan2pdf ~/.gscan2pdf.old
grep -v session ~/.gscan2pdf.old > ~/.gscan2pdf
rm ~/.gscan2pdf.old

Revision history for this message
Dakkar (dakkar9999) wrote : Re: [Bug 301515] Re: gscan2pdf does not start on Ubuntu 9.04

Hi,

Thanks for the reply. Yes, I followed your instruction and it work.
I just tried again on reboot and it still works.

Thanks for solving the problem!

On Mon, Nov 24, 2008 at 11:34 PM, Mike Waters <email address hidden> wrote:
>
> It looks like gscan2pdf is relying on a session file in the /tmp directory, which is being purged for some reason (cron, or startup; I am not sure of how ubuntu handles /tmp).
> The link to that nonexistant session file (inside 'ConfigPath') is part of gscan2pdf's per-user settings file, in the logged-on user's home directory: ~/.gscan2pdf
>
> So, simply deleting this file will allow the app to start, albeit with
> the default configuration (minus anything that was saved in that
> settings file).
>
> In my office I've just placed a perl script on the desktop of all scan PCs:
> #!/usr/bin/perl
>
> exec("rm ~/.gscan2pdf");
>
> This is obviously a temporary solution, and not even a very good one ;)
>
> So, good luck.
> -Mike Waters
>
> --
> gscan2pdf does not start on Ubuntu 9.04
> https://bugs.launchpad.net/bugs/301515
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "gscan2pdf" source package in Ubuntu: New
>
> Bug description:
> Binary package hint: gscan2pdf
>
> After upgrading to Ubuntu 9.04 development branch, gscan2pdf does not start at all. Scanner is working in other applications (ex Xsane scanner utility)
>
> If I try to start gscan2pdf from the command line by typing "gscan2pdf" I get this message :
>
> "/tmp/tnexKMvNv6/session" does not exist within ConfigPath: /tmp/tnexKMvNv6! at /usr/bin/gscan2pdf line 1581"
>
> Thanks!
>

Revision history for this message
Dakkar (dakkar9999) wrote :

Thanks! Mike Waters' solution worked flawlessly.

Changed in gscan2pdf:
status: New → 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.