Michael Albinus | 2 Jun 2010 12:03
Picon
Picon
Gravatar

Re: [tramp-gvfs + webdav] How to make it mount particular share, not root server directory

Sergej Pupykin <pupykin.s <at> gmail.com> writes:

> On 27.05.2010 01:49, Sergej Pupykin wrote:
>> How can I fix it?
>
> I try to change path in:
>
>       ;; The call must be asynchronously, because of the "askPassword"
>       ;; or "askQuestion"callbacks.
>       (with-tramp-dbus-call-method vec nil
> 	:session tramp-gvfs-service-daemon tramp-gvfs-path-mounttracker
> 	tramp-gvfs-interface-mounttracker "mountLocation"
> 	`(:struct
> here-->>	  ,(dbus-string-to-byte-array "/dav")
> 	  ,(tramp-gvfs-mount-spec vec))
> 	(dbus-get-unique-name :session)
> 	:object-path object-path)
>
> It asks password, mounts proper locations, but then hangs for some
> time and prints 'Location already mounted' error message.

I've committed a new version of tramp-gvfs.el to the repositories, where
the problem shall be solved. Sometimes (not always), I have problems to
write on the dav server. But according to the apache logs, it seems to
be a problem of the test server I've used (my QNAP TS-459P).

Best regards, Michael.
Sergej Pupykin | 2 Jun 2010 15:02
Picon

Re: [tramp-gvfs + webdav] How to make it mount particular share, not root server directory

Hello, Michael,
> I've committed a new version of tramp-gvfs.el to the repositories, where
> the problem shall be solved. Sometimes (not always), I have problems to
> write on the dav server. But according to the apache logs, it seems to
> be a problem of the test server I've used (my QNAP TS-459P).
>
>    
Now it mounts successfully. 'make-directory' can create directory on 
server, but find-file says
'File not found and directory is write protected'

I try to C-x C-f '/dav:sergej <at> 127.0.0.1:dav/test.txt' however
http://127.0.0.1/dav/test.txt can be opened
Also 'gvfs-cat dav://sergej <at> 127.0.0.1/dav/test.txt' works.

How can I help to debug this issue?

Thanks a lot for you work.
Michael Albinus | 2 Jun 2010 15:31
Picon
Picon
Gravatar

Re: [tramp-gvfs + webdav] How to make it mount particular share, not root server directory

Sergej Pupykin <pupykin.s <at> gmail.com> writes:

> Hello, Michael,

Hi,

> Now it mounts successfully. 'make-directory' can create directory on 
> server, but find-file says
> 'File not found and directory is write protected'
>
> I try to C-x C-f '/dav:sergej <at> 127.0.0.1:dav/test.txt' however

Maybe you try '/dav:sergej <at> 127.0.0.1:/dav/test.txt'

> http://127.0.0.1/dav/test.txt can be opened
> Also 'gvfs-cat dav://sergej <at> 127.0.0.1/dav/test.txt' works.
>
> How can I help to debug this issue?

(setq tramp-verbose 10)

Rerun the test. There will be a debug buffer which tells us something,
hopefully. If not, we add other traces.

What happens, if you say 'ls -lR ~/.gvfs/' from the shell?

> Thanks a lot for you work.

Best regards, Michael.
(Continue reading)

Sergej Pupykin | 2 Jun 2010 17:43
Picon

Re: [tramp-gvfs + webdav] How to make it mount particular share, not root server directory


>> Now it mounts successfully. 'make-directory' can create directory on
>> server, but find-file says
>> 'File not found and directory is write protected'
>>
>> I try to C-x C-f '/dav:sergej <at> 127.0.0.1:dav/test.txt' however
>>      
> Maybe you try '/dav:sergej <at> 127.0.0.1:/dav/test.txt'
>    
>> http://127.0.0.1/dav/test.txt can be opened
>> Also 'gvfs-cat dav://sergej <at> 127.0.0.1/dav/test.txt' works.
>>
>> How can I help to debug this issue?
>>      
> (setq tramp-verbose 10)
>
> Rerun the test. There will be a debug buffer which tells us something,
> hopefully. If not, we add other traces.
>
> What happens, if you say 'ls -lR ~/.gvfs/' from the shell?
>    

I found the problem. It was in 2 copies of dbus. One for gvfsd, one for 
emacs.

Now editing and saving works.

It does not want to work properly with test.txt, because of autosaved 
data I think, but it is not problem.

(Continue reading)

Michael Albinus | 2 Jun 2010 19:34
Picon
Picon
Gravatar

Re: [tramp-gvfs + webdav] How to make it mount particular share, not root server directory

Sergej Pupykin <pupykin.s <at> gmail.com> writes:

> So I am waiting for new emacs version with fresh tramp :)

Emacs 23.2 is just out. I don't know a schedule for Emacs 23.3, but it
will take months.

Very likely I will release a Tramp version in between. Also no concrete
plans yet, but *this* I can influence.

> Thanks again.

Best regards, Michael.
Ted Zlatanov | 7 Jun 2010 18:41
X-Face
Favicon
Gravatar

Re: Passwords, stored in Gnome Keyring and KWallet

On Wed, 12 May 2010 14:07:54 +0200 Michael Albinus <michael.albinus <at> gmx.de> wrote: 

MA> Ted Zlatanov <tzz <at> lifelogs.com> writes:
>> Michael, I left a TODO in the manual for explaining secrets.el.

MA> I'm sitting with this, it is not so easy.

MA> The crucial point is how to populate the Gnome Keyring with valid
MA> entries. For .authinfo files it is obvious, "edit the file".

Maybe assistant.el could be useful?  This is a good simple task: set up
auth-source entries for various types of accounts.  The manual doesn't
have to explain as much then, and the .ast file can describe the
secrets.el steps to create and populate a Secrets API backend.

If not, it becomes a pretty complicated explanation as you saw.  What
direction would you prefer?

MA> Consequently, auth-source.el shall offer such an interface. Something
MA> like (auth-source-create)
...
MA> What do you think about?

I agree 100% with your changes to auth-source.el you posted previously
to make this interface a possibility.  Deleting and creating
authinfo/netrc entries, which is missing in your version, should not be
too hard: we just need to remember the original line for every parsed
entry in netrc.el (to avoid cases where the parser might create
identical parses for two different lines).

(Continue reading)

Michael Albinus | 12 Jun 2010 11:34
Picon
Picon
Gravatar

Re: Some operations fail in XEmacs

Pete Forman <petef4+usenet <at> gmail.com> writes:

> Michael Albinus <michael.albinus <at> gmx.de> wrote on 2009-12-24:
>
>   > Pete Forman  wrote on 2009-12-24:
>>
>>> One issue that is outstanding is that some remote commands are
>>> failing as the pathname is being handled as if it were local. These
>>> include M-x grep and chmod (M in dired).  I've tested with a plain
>>> plink on xemacs -q.
>>
>   > I fear that there might be problems with XEmacs. process-file and
>   > start-file-process, used in GNU Emacs for runing processes on a
>   > remote host, do not exist in XEmacs (yet). There are emulations in
>   > tramp-util.el, but I haven't tested them for a long time in XEmacs.
>
> I still have these problems with some remote operations on tramp 2.1.18,
> XEmacs 21.5b29, native on XP SP3.

I've committed a patch to the Tramp repository, which shall reenable
this feature for XEmacs. Tested on Ubuntu 10.04 with

"XEmacs 21.4 (patch 22) \"Instant Classic\" [Lucid] (x86_64-linux-gnu, Mule) of Tue Jul 14 2009 on yellow"

Could you, please, check?

Best regards, Michael.
Seb | 12 Jun 2010 23:56
Picon
Gravatar

problems with access to Windows_NT server

Hi,

Trying to access the FTP site ftp://win-builder.r-project.org
(instructions described in http://win-builder.r-project.org) by using
'/anonymous <at> win-builder.r-project.org:/' I get this trace:

---<--------------------cut here---------------start------------------->---
Debugger entered--Lisp error: (error "No such file or directory `/anonymous <at> win-builder.r-project.org:/'")
  signal(error ("No such file or directory `/anonymous <at> win-builder.r-project.org:/'"))
  error("No such file or directory `%s'" "/anonymous <at> win-builder.r-project.org:/")
  dired-at-point()
  call-interactively(dired-at-point nil nil)
---<--------------------cut here---------------end--------------------->---

I can interact with that directory from a browser (konqueror) at
ftp://win-builder.r-project.org without problems.  I'm told that the
problem might be that ange-FTP doesn't understand Windows NT directory
listing format.  Logging in from the shell shows no problems:

---<--------------------cut here---------------start------------------->---
$ ftp win-builder.r-project.org
Connected to win-builder.r-project.org.
220-Microsoft FTP Service
220 Welcome on CRANwinGuest
Name (win-builder.r-project.org:sluque): anonymous
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230-Before uploading source packages to R-release, R-patched or R-devel, please 
read
    http://129.217.207.166/index.htm
(Continue reading)

Michael Albinus | 13 Jun 2010 20:01
Picon
Picon
Gravatar

Re: problems with access to Windows_NT server

Seb <spluque <at> gmail.com> writes:

> Hi,
>
> Trying to access the FTP site ftp://win-builder.r-project.org
> (instructions described in http://win-builder.r-project.org) by using
> '/anonymous <at> win-builder.r-project.org:/' I get this trace:
>
> Debugger entered--Lisp error: (error "No such file or directory `/anonymous <at> win-builder.r-project.org:/'")
>   signal(error ("No such file or directory `/anonymous <at> win-builder.r-project.org:/'"))
>   error("No such file or directory `%s'" "/anonymous <at> win-builder.r-project.org:/")
>   dired-at-point()
>   call-interactively(dired-at-point nil nil)

Which Emacs version are you using? Since Emacs 22, Tramp is enabled, and
the default method is "scp". In order to access via ftp, you must use

/ftp:anonymous <at> win-builder.r-project.org:/

> Cheers,

Best regards, Michael.
Seb | 13 Jun 2010 20:18
Picon
Gravatar

Re: problems with access to Windows_NT server

On Sun, 13 Jun 2010 20:01:42 +0200,
Michael Albinus <michael.albinus <at> gmx.de> wrote:

[...]

> Which Emacs version are you using?

I'm using GNU Emacs 23.2.1.

> Since Emacs 22, Tramp is enabled, and the default method is "scp". In
> order to access via ftp, you must use

> /ftp:anonymous <at> win-builder.r-project.org:/

Thanks Michael.  Trying that with 'C-x d
/ftp:anonymous <at> win-builder.r-project.org:/' seems to go a little
further, but fails later with this in buffer *Messages*:

Doing CD...
Opening FTP connection to win-builder.r-project.org...done
Logging in as user anonymous <at> win-builder.r-project.org...done
Getting PWD...done
Doing CD...done
Listing /ftp:anonymous <at> win-builder.r-project.org:/...done
dired-at-point: No such file or directory `/ftp:anonymous <at> win-builder.r-project.org:/'

and tracing it:

Debugger entered--Lisp error: (error "No such file or directory `/ftp:anonymous <at> win-builder.r-project.org:/'")
  signal(error ("No such file or directory `/ftp:anonymous <at> win-builder.r-project.org:/'"))
(Continue reading)


Gmane