Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

File creation, copying problems on network

4 posts in Networking Last posting was on 2012-04-20 02:42:47.0Z
Steve Posted on 2012-04-02 17:08:31.0Z
Date: Mon, 02 Apr 2012 11:08:31 -0600
From: Steve <steve@salon-software.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
Newsgroups: Advantage.Networking
Subject: File creation, copying problems on network
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 206.196.106.50
Message-ID: <4f79dcd0$1@solutions.advantagedatabase.com>
X-Trace: 2 Apr 2012 10:07:28 -0700, 206.196.106.50
Lines: 23
Path: solutions.advantagedatabase.com
Xref: solutions.advantagedatabase.com Advantage.Networking:996
Article PK: 1132406

Hello, I'm having an odd problem on a Windows Server 2008 R2 network.
When our application is run for the first time, it creates all of the
adt files with temporary names and then copies them to the real name if
the file does not already exist. Obviously, this happens very rapidly.
It works fine when run on the computer that the data is located on,
but not when it is run from one of the networked computers (using mapped
drives).

What seems to be happening is that when trying to open a newly created
file, it fails and it is as if windows is not keeping up with what is
happening and the temporary file is not getting copied to the permanent
filename. We are not using a data dictionary.

Now the interesting thing is if I stop ads, it will run in local mode
and everything works. It only fails when ads is running.

What I really need to find out is why it works in local mode and if
there is something I can change with the ads configuration to make it
work in remote server mode. (or if there is some configuration in
windows that would also make it work, as there are other network
installations that do not share this problem)

Please help!


Alex Wong Posted on 2012-04-02 21:03:50.0Z
Date: Mon, 2 Apr 2012 21:03:50 +0000 (UTC)
Message-ID: <9d1879959e958cedef8f24d3305@devzone.advantagedatabase.com>
From: Alex Wong <someone@sybase.com>
Subject: Re: File creation, copying problems on network
Newsgroups: Advantage.Networking
References: <4f79dcd0$1@solutions.advantagedatabase.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1; format=flowed
X-Newsreader: JetBrains Omea Reader 1098.1
NNTP-Posting-Host: 10.6.193.123
X-Trace: 2 Apr 2012 14:02:46 -0700, 10.6.193.123
Lines: 55
Path: solutions.advantagedatabase.com
Xref: solutions.advantagedatabase.com Advantage.Networking:997
Article PK: 1132407

Hi Steve,

This is a problem with the SMB2. It is kind of good timing that you are asking
this now. We are hitting the same issue in our test environment last week
when using the Win2008R2.

This blog has a detail discussion of the issue:

http://blogs.msdn.com/b/winsdk/archive/2009/07/10/file-exists-access-getfileattributes-findfirstfile-findnextfile-stat-behavior-over-smb-2-0.aspx

The basic problem is that Windows does not update the client side file information
cache in a timely manner. The files are created by the ADS process on the
server. However, Windows does not push down or pull those information to
the client side. When the client process check the existence of the file,
it only hits the cached information which is not updated.

Local mode works because the files are created by the local (client side)
process which updates the local cache.

We got around the problem by disabling the SMB2.

--
Alex

> Hello, I'm having an odd problem on a Windows Server 2008 R2 network.
> When our application is run for the first time, it creates all of the
> adt files with temporary names and then copies them to the real name
> if
> the file does not already exist. Obviously, this happens very
> rapidly.
> It works fine when run on the computer that the data is located on,
> but not when it is run from one of the networked computers (using
> mapped
> drives).
>
> What seems to be happening is that when trying to open a newly created
> file, it fails and it is as if windows is not keeping up with what is
> happening and the temporary file is not getting copied to the
> permanent filename. We are not using a data dictionary.
>
> Now the interesting thing is if I stop ads, it will run in local mode
> and everything works. It only fails when ads is running.
>
> What I really need to find out is why it works in local mode and if
> there is something I can change with the ads configuration to make it
> work in remote server mode. (or if there is some configuration in
> windows that would also make it work, as there are other network
> installations that do not share this problem)
>
> Please help!
>


Steve Posted on 2012-04-03 15:14:29.0Z
Date: Tue, 03 Apr 2012 09:14:29 -0600
From: Steve <steve@salon-software.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
Newsgroups: Advantage.Networking
Subject: Re: File creation, copying problems on network
References: <4f79dcd0$1@solutions.advantagedatabase.com> <9d1879959e958cedef8f24d3305@devzone.advantagedatabase.com>
In-Reply-To: <9d1879959e958cedef8f24d3305@devzone.advantagedatabase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 206.196.106.50
Message-ID: <4f7b1393@solutions.advantagedatabase.com>
X-Trace: 3 Apr 2012 08:13:23 -0700, 206.196.106.50
Lines: 59
Path: solutions.advantagedatabase.com
Xref: solutions.advantagedatabase.com Advantage.Networking:998
Article PK: 1132408

Alex, THANK YOU! This has solved my problem and I'm very grateful!

Steve

On 4/2/2012 3:03 PM, Alex Wong wrote:
> Hi Steve,
>
> This is a problem with the SMB2. It is kind of good timing that you are
> asking this now. We are hitting the same issue in our test environment
> last week when using the Win2008R2.
> This blog has a detail discussion of the issue:
>
> http://blogs.msdn.com/b/winsdk/archive/2009/07/10/file-exists-access-getfileattributes-findfirstfile-findnextfile-stat-behavior-over-smb-2-0.aspx
>
>
> The basic problem is that Windows does not update the client side file
> information cache in a timely manner. The files are created by the ADS
> process on the server. However, Windows does not push down or pull those
> information to the client side. When the client process check the
> existence of the file, it only hits the cached information which is not
> updated.
> Local mode works because the files are created by the local (client
> side) process which updates the local cache.
> We got around the problem by disabling the SMB2.
> --
> Alex
>
>
>
>> Hello, I'm having an odd problem on a Windows Server 2008 R2 network.
>> When our application is run for the first time, it creates all of the
>> adt files with temporary names and then copies them to the real name
>> if
>> the file does not already exist. Obviously, this happens very
>> rapidly.
>> It works fine when run on the computer that the data is located on,
>> but not when it is run from one of the networked computers (using
>> mapped
>> drives).
>>
>> What seems to be happening is that when trying to open a newly created
>> file, it fails and it is as if windows is not keeping up with what is
>> happening and the temporary file is not getting copied to the
>> permanent filename. We are not using a data dictionary.
>>
>> Now the interesting thing is if I stop ads, it will run in local mode
>> and everything works. It only fails when ads is running.
>>
>> What I really need to find out is why it works in local mode and if
>> there is something I can change with the ads configuration to make it
>> work in remote server mode. (or if there is some configuration in
>> windows that would also make it work, as there are other network
>> installations that do not share this problem)
>>
>> Please help!
>>
>
>


Benedictum Posted on 2012-04-20 02:42:47.0Z
From: "Benedictum" <Benedictus@dominusvobis.com>
Newsgroups: Advantage.Networking
References: <4f79dcd0$1@solutions.advantagedatabase.com> <9d1879959e958cedef8f24d3305@devzone.advantagedatabase.com> <4f7b1393@solutions.advantagedatabase.com>
Subject: Re: File creation, copying problems on network
Date: Thu, 19 Apr 2012 21:42:47 -0500
Lines: 66
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
NNTP-Posting-Host: 67.165.170.65
Message-ID: <4f90ccef@solutions.advantagedatabase.com>
X-Trace: 19 Apr 2012 19:41:51 -0700, 67.165.170.65
Path: solutions.advantagedatabase.com
Xref: solutions.advantagedatabase.com Advantage.Networking:999
Article PK: 1132409

fyi
http://www.petri.co.il/how-to-disable-smb-2-on-windows-vista-or-server-2008.htm

"Steve" <steve@salon-software.com> wrote in message
news:4f7b1393@solutions.advantagedatabase.com...
> Alex, THANK YOU! This has solved my problem and I'm very grateful!
>
> Steve
>
> On 4/2/2012 3:03 PM, Alex Wong wrote:
>> Hi Steve,
>>
>> This is a problem with the SMB2. It is kind of good timing that you are
>> asking this now. We are hitting the same issue in our test environment
>> last week when using the Win2008R2.
>> This blog has a detail discussion of the issue:
>>
>> http://blogs.msdn.com/b/winsdk/archive/2009/07/10/file-exists-access-getfileattributes-findfirstfile-findnextfile-stat-behavior-over-smb-2-0.aspx
>>
>>
>> The basic problem is that Windows does not update the client side file
>> information cache in a timely manner. The files are created by the ADS
>> process on the server. However, Windows does not push down or pull those
>> information to the client side. When the client process check the
>> existence of the file, it only hits the cached information which is not
>> updated.
>> Local mode works because the files are created by the local (client
>> side) process which updates the local cache.
>> We got around the problem by disabling the SMB2.
>> --
>> Alex
>>
>>
>>
>>> Hello, I'm having an odd problem on a Windows Server 2008 R2 network.
>>> When our application is run for the first time, it creates all of the
>>> adt files with temporary names and then copies them to the real name
>>> if
>>> the file does not already exist. Obviously, this happens very
>>> rapidly.
>>> It works fine when run on the computer that the data is located on,
>>> but not when it is run from one of the networked computers (using
>>> mapped
>>> drives).
>>>
>>> What seems to be happening is that when trying to open a newly created
>>> file, it fails and it is as if windows is not keeping up with what is
>>> happening and the temporary file is not getting copied to the
>>> permanent filename. We are not using a data dictionary.
>>>
>>> Now the interesting thing is if I stop ads, it will run in local mode
>>> and everything works. It only fails when ads is running.
>>>
>>> What I really need to find out is why it works in local mode and if
>>> there is something I can change with the ads configuration to make it
>>> work in remote server mode. (or if there is some configuration in
>>> windows that would also make it work, as there are other network
>>> installations that do not share this problem)
>>>
>>> Please help!
>>>
>>
>>
>