Bug#522926: client cannot write to new files on server, only edit/delete/create

2009-12-02 Thread Iustin Pop
On Tue, Apr 07, 2009 at 02:31:30PM +0200, martin f krafft wrote:
> Package: nfs-common
> Version: 1:1.1.4-1
> Severity: grave
> […]

Hi,

> However, they could not write to new files. They could create them,
> but trying to write to them causes:
> 
>   open("testfile", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EINVAL (Invalid 
> argument)
> 
> The file is created, but it cannot be written to.

Hmm, so the create succeeds on the server, but the client reports EINVAL?

> I can delete files just fine.
> 
> This happens with 1.1.4-1 through 1.1.5-2, talking to
> a 1:1.1.2-6lenny1 kernel server.

Since this bug is somewhat old and unstable has now 1.2.0, can you confirm this
is reproduceable?

My tests with up-to-date lenny (server) + up-to-date sid (client,
2.6.31-1-amd64) show normal, expected behaviour:

open("testfile", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
write(3, "aaa", 3)  = 3
close(3)= 0

regards,
iustin



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#522926: client cannot write to new files on server, only edit/delete/create

2009-04-07 Thread martin f krafft
also sprach Aníbal Monsalve Salazar  [2009.04.08.0243 +0200]:
> Please check the content of /proc/mounts on the client and if the option
> "sec=null" is listed for the file system in question, you will need to
> change that option to "sec=sys" in /etc/fstab or in the mount command
> that you use. In such case, see:

Nope, it's sec=sys for all mounts.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
a qui sait comprendre, peu de mots suffisent.
 -- intelligenti pauca


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Bug#522926: client cannot write to new files on server, only edit/delete/create

2009-04-07 Thread Aníbal Monsalve Salazar
Please check the content of /proc/mounts on the client and if the option
"sec=null" is listed for the file system in question, you will need to
change that option to "sec=sys" in /etc/fstab or in the mount command
that you use. In such case, see:

http://bugs.debian.org/492970
http://bugs.debian.org/493667



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#522926: client cannot write to new files on server, only edit/delete/create

2009-04-07 Thread martin f krafft
Package: nfs-common
Version: 1:1.1.4-1
Severity: grave

I've had a great morning with NFS. First, the server had to be
restarted, which caused all clients (at least one was using each of
1.1.4-1 and 1.1.5-[12]) to require a restart, since all processes
just hung hard.

New mounts would also not work, even though trying to mount exported
filesystems without permission on the server yielded an "access
denied" error on the client.

After I rebooted the clients, they could mount and browse the
filesystem, and read files without problems.

They could edit files too.

However, they could not write to new files. They could create them,
but trying to write to them causes:

  open("testfile", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EINVAL (Invalid 
argument)

The file is created, but it cannot be written to.

I can delete files just fine.

This happens with 1.1.4-1 through 1.1.5-2, talking to
a 1:1.1.2-6lenny1 kernel server.

The NFS infrastructure here has been working for years and also
after the lenny upgrade, and I have tried restarting the kernel
server daemon many times. The only thing that has changed between
when it was working and now was today's OpenSSL upgrade.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nfs-common depends on:
ii  adduser  3.110   add and remove users and groups
ii  initscripts  2.86.ds1-61 Scripts for initializing and shutt
ii  libc62.9-6   GNU C Library: Shared libraries
ii  libcomerr2   1.41.3-1common error description library
ii  libevent11.3e-3  An asynchronous event notification
ii  libgssglue1  0.1-2   mechanism-switch gssapi library
ii  libkrb53 1.6.dfsg.4~beta1-12 Transitional library package/krb4 
ii  libnfsidmap2 0.21-2  An nfs idmapping library
ii  librpcsecgss30.18-1  allows secure rpc communication us
ii  libwrap0 7.6.q-16Wietse Venema's TCP wrappers libra
ii  lsb-base 3.2-22  Linux Standard Base 3.2 init scrip
ii  netbase  4.34Basic TCP/IP networking system
ii  portmap  6.0-9   RPC port mapper
ii  ucf  3.0018  Update Configuration File: preserv

nfs-common recommends no packages.

nfs-common suggests no packages.

-- debconf-show failed


-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)