current directory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

current directory

duplicity-talk mailing list
Duplicity throws a wobbly when the `cwd’ it was started from disappears prior or during runtime.

Any reason why it could not ‘cd’ into its own DB or temp dir ?

Dw.


_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Reply | Threaded
Open this post in threaded view
|

Re: current directory

duplicity-talk mailing list
i don't see any.

..ede/duply.net

On 15.02.2017 12:20, Dirk-Willem van Gulik via Duplicity-talk wrote:

> Duplicity throws a wobbly when the `cwd’ it was started from disappears prior or during runtime.
>
> Any reason why it could not ‘cd’ into its own DB or temp dir ?
>
> Dw.
>
>
> _______________________________________________
> Duplicity-talk mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>

_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Reply | Threaded
Open this post in threaded view
|

Re: current directory

duplicity-talk mailing list
This is probably not in duplicity, but in Python itself.  I've had other Python programs get 'wobbly' when the cwd is in a directory that disappears, especially if the cwd is mounted.  Try running from home or tmp.

...Ken


On Wed, Feb 15, 2017 at 5:25 AM, edgar.soldin--- via Duplicity-talk <[hidden email]> wrote:
i don't see any.

..ede/duply.net

On 15.02.2017 12:20, Dirk-Willem van Gulik via Duplicity-talk wrote:
> Duplicity throws a wobbly when the `cwd’ it was started from disappears prior or during runtime.
>
> Any reason why it could not ‘cd’ into its own DB or temp dir ?
>
> Dw.
>
>
> _______________________________________________
> Duplicity-talk mailing list
> [hidden email]
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>

_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk


_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Reply | Threaded
Open this post in threaded view
|

Re: current directory

duplicity-talk mailing list
he's probably aware of the workaround. any reason for us not to chdir into say, archive dir?

..ede/duply.net

On 15.02.2017 13:23, Kenneth Loafman wrote:

> This is probably not in duplicity, but in Python itself.  I've had other Python programs get 'wobbly' when the cwd is in a directory that disappears, especially if the cwd is mounted.  Try running from home or tmp.
>
> ...Ken
>
>
> On Wed, Feb 15, 2017 at 5:25 AM, edgar.soldin--- via Duplicity-talk <[hidden email] <mailto:[hidden email]>> wrote:
>
>     i don't see any.
>
>     ..ede/duply.net <http://duply.net>
>
>     On 15.02.2017 12:20, Dirk-Willem van Gulik via Duplicity-talk wrote:
>     > Duplicity throws a wobbly when the `cwd’ it was started from disappears prior or during runtime.
>     >
>     > Any reason why it could not ‘cd’ into its own DB or temp dir ?
>     >
>     > Dw.
>     >
>     >
>     > _______________________________________________
>     > Duplicity-talk mailing list
>     > [hidden email] <mailto:[hidden email]>
>     > https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk>
>     >
>
>     _______________________________________________
>     Duplicity-talk mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk>
>
>

_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Reply | Threaded
Open this post in threaded view
|

Re: current directory

duplicity-talk mailing list
In my experience, just starting in a transient directory can cause problems, mounted or static.  A cd at that point might help, but no guarantees, and really no good way to test it.

For me, problems occurred mostly when trying to exit or kill a Python program after its cwd had gone away.

...Ken
 

On Wed, Feb 15, 2017 at 6:28 AM, <[hidden email]> wrote:
he's probably aware of the workaround. any reason for us not to chdir into say, archive dir?

..ede/duply.net

On 15.02.2017 13:23, Kenneth Loafman wrote:
> This is probably not in duplicity, but in Python itself.  I've had other Python programs get 'wobbly' when the cwd is in a directory that disappears, especially if the cwd is mounted.  Try running from home or tmp.
>
> ...Ken
>
>
> On Wed, Feb 15, 2017 at 5:25 AM, edgar.soldin--- via Duplicity-talk <[hidden email] <mailto:[hidden email]>> wrote:
>
>     i don't see any.
>
>     ..ede/duply.net <http://duply.net>
>
>     On 15.02.2017 12:20, Dirk-Willem van Gulik via Duplicity-talk wrote:
>     > Duplicity throws a wobbly when the `cwd’ it was started from disappears prior or during runtime.
>     >
>     > Any reason why it could not ‘cd’ into its own DB or temp dir ?
>     >
>     > Dw.
>     >
>     >
>     > _______________________________________________
>     > Duplicity-talk mailing list
>     > [hidden email] <mailto:[hidden email]>
>     > https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk>
>     >
>
>     _______________________________________________
>     Duplicity-talk mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk>
>
>


_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Reply | Threaded
Open this post in threaded view
|

Re: current directory

duplicity-talk mailing list
Ken,

so you'd rather keep it as is and oppose to adding a chdir as a precaution? or not?

..ee/duply.net

On 15.02.2017 13:44, Kenneth Loafman wrote:

> In my experience, just starting in a transient directory can cause problems, mounted or static.  A cd at that point might help, but no guarantees, and really no good way to test it.
>
> For me, problems occurred mostly when trying to exit or kill a Python program after its cwd had gone away.
>
> ...Ken
>  
>
> On Wed, Feb 15, 2017 at 6:28 AM, <[hidden email] <mailto:[hidden email]>> wrote:
>
>     he's probably aware of the workaround. any reason for us not to chdir into say, archive dir?
>
>     ..ede/duply.net <http://duply.net>
>
>     On 15.02.2017 13:23, Kenneth Loafman wrote:
>     > This is probably not in duplicity, but in Python itself.  I've had other Python programs get 'wobbly' when the cwd is in a directory that disappears, especially if the cwd is mounted.  Try running from home or tmp.
>     >
>     > ...Ken
>     >
>     >
>     > On Wed, Feb 15, 2017 at 5:25 AM, edgar.soldin--- via Duplicity-talk <[hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>> wrote:
>     >
>     >     i don't see any.
>     >
>     >     ..ede/duply.net <http://duply.net> <http://duply.net>
>     >
>     >     On 15.02.2017 12:20, Dirk-Willem van Gulik via Duplicity-talk wrote:
>     >     > Duplicity throws a wobbly when the `cwd’ it was started from disappears prior or during runtime.
>     >     >
>     >     > Any reason why it could not ‘cd’ into its own DB or temp dir ?
>     >     >
>     >     > Dw.
>     >     >
>     >     >
>     >     > _______________________________________________
>     >     > Duplicity-talk mailing list
>     >     > [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>
>     >     > https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk> <https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk>>
>     >     >
>     >
>     >     _______________________________________________
>     >     Duplicity-talk mailing list
>     >     [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>
>     >     https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk> <https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk>>
>     >
>     >
>
>

_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Reply | Threaded
Open this post in threaded view
|

Re: current directory

duplicity-talk mailing list
We can try to make it foolproof, but the universe keeps making better fools.  🙂

Some people mount the cache to remote.  I'd go with a cd to our tempdir.  The real solution is to find a hard location that the user can't remove during execution, cd, and make an exec syscall to start over.

Seems a bit complex to solve what is essentially a pilot error.

...Ken


On Wed, Feb 15, 2017 at 7:08 AM, <[hidden email]> wrote:
Ken,

so you'd rather keep it as is and oppose to adding a chdir as a precaution? or not?

..ee/duply.net

On 15.02.2017 13:44, Kenneth Loafman wrote:
> In my experience, just starting in a transient directory can cause problems, mounted or static.  A cd at that point might help, but no guarantees, and really no good way to test it.
>
> For me, problems occurred mostly when trying to exit or kill a Python program after its cwd had gone away.
>
> ...Ken
>
>
> On Wed, Feb 15, 2017 at 6:28 AM, <[hidden email] <mailto:[hidden email]>> wrote:
>
>     he's probably aware of the workaround. any reason for us not to chdir into say, archive dir?
>
>     ..ede/duply.net <http://duply.net>
>
>     On 15.02.2017 13:23, Kenneth Loafman wrote:
>     > This is probably not in duplicity, but in Python itself.  I've had other Python programs get 'wobbly' when the cwd is in a directory that disappears, especially if the cwd is mounted.  Try running from home or tmp.
>     >
>     > ...Ken
>     >
>     >
>     > On Wed, Feb 15, 2017 at 5:25 AM, edgar.soldin--- via Duplicity-talk <[hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>> wrote:
>     >
>     >     i don't see any.
>     >
>     >     ..ede/duply.net <http://duply.net> <http://duply.net>
>     >
>     >     On 15.02.2017 12:20, Dirk-Willem van Gulik via Duplicity-talk wrote:
>     >     > Duplicity throws a wobbly when the `cwd’ it was started from disappears prior or during runtime.
>     >     >
>     >     > Any reason why it could not ‘cd’ into its own DB or temp dir ?
>     >     >
>     >     > Dw.
>     >     >
>     >     >
>     >     > _______________________________________________
>     >     > Duplicity-talk mailing list
>     >     > [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>
>     >     > https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk> <https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk>>
>     >     >
>     >
>     >     _______________________________________________
>     >     Duplicity-talk mailing list
>     >     [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>
>     >     https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk> <https://lists.nongnu.org/mailman/listinfo/duplicity-talk <https://lists.nongnu.org/mailman/listinfo/duplicity-talk>>
>     >
>     >
>
>


_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk