issue with two users opening the same file

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
Post Reply
iwanczuk
New here
Posts: 3
Joined: Tue Feb 09, 2010 10:08 am

issue with two users opening the same file

Post by iwanczuk » Sat Jul 18, 2020 4:14 pm

We have begun to experience a problem where two users accessing the same file at the same time are being allowed to do so with full write permission. The result is that two versions of the file appear on the server.

It used to be that if a file was being accessed by one user the second user would be told that the file was available as read-only.

The only thing that has changed is that one of the two users that are seeing this problem is now working remotely using QSYNC. We never saw this problem when the two users were accessing the server via the office network.

Any ideas of how I might be able to achieve the old style of behaviour?

Thanks in adavnce.

P3R
Guru
Posts: 12205
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: issue with two users opening the same file

Post by P3R » Sat Jul 18, 2020 6:58 pm

iwanczuk wrote:
Sat Jul 18, 2020 4:14 pm
The only thing that has changed is that one of the two users that are seeing this problem is now working remotely using QSYNC.
That mean they're effectively working on different files and creating different versions of it, which Qsync then according to configured settings try to synchronize.
Any ideas of how I might be able to achieve the old style of behaviour?
Access the shared folder directly instead of by using Qsync.
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!

dolbyman
Guru
Posts: 19135
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: issue with two users opening the same file

Post by dolbyman » Sat Jul 18, 2020 9:24 pm

use a vpn ...exposing any qnap part to the open web is asking for trouble

so forget about qsync(and stop forwarding any ports to the nas) and setup a vpn server (on firewall or dedicated appliance)

spile
Know my way around
Posts: 134
Joined: Tue May 24, 2016 12:13 am

Re: issue with two users opening the same file

Post by spile » Sun Jul 19, 2020 3:25 pm

Context is everything.
Where in this thread is there mention of using QSync (a tool I can recommend as is Freefile sync) in a non-lan environment?

P3R
Guru
Posts: 12205
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: issue with two users opening the same file

Post by P3R » Sun Jul 19, 2020 4:36 pm

spile wrote:
Sun Jul 19, 2020 3:25 pm
Where in this thread is there mention of using QSync (a tool I can recommend as is Freefile sync) in a non-lan environment?
iwanczuk wrote:
Sat Jul 18, 2020 4:14 pm
The only thing that has changed is that one of the two users that are seeing this problem is now working remotely using QSYNC. We never saw this problem when the two users were accessing the server via the office network.
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!

spile
Know my way around
Posts: 134
Joined: Tue May 24, 2016 12:13 am

Re: issue with two users opening the same file

Post by spile » Mon Jul 20, 2020 6:35 am

Ahh. Good point but the use of a file sync utility such as QSync or FreeFile sync is not inherently unsafe.

P3R
Guru
Posts: 12205
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: issue with two users opening the same file

Post by P3R » Mon Jul 20, 2020 4:50 pm

spile wrote:
Mon Jul 20, 2020 6:35 am
Ahh. Good point but the use of a file sync utility such as QSync or FreeFile sync is not inherently unsafe.
No they aren't.

But file sync tools aren't good solutions when there's a risk that users can update the same files concurrently in different locations.
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!

spile
Know my way around
Posts: 134
Joined: Tue May 24, 2016 12:13 am

Re: issue with two users opening the same file

Post by spile » Tue Jul 21, 2020 5:07 am

P3R wrote:
Mon Jul 20, 2020 4:50 pm
spile wrote:
Mon Jul 20, 2020 6:35 am
Ahh. Good point but the use of a file sync utility such as QSync or FreeFile sync is not inherently unsafe.
No they aren't.

But file sync tools aren't good solutions when there's a risk that users can update the same files concurrently in different locations.
Indeed but that is not the issue I was responding to.

dolbyman
Guru
Posts: 19135
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: issue with two users opening the same file

Post by dolbyman » Tue Jul 21, 2020 5:15 am

Qsync uses port 8080 to connect to the NAS via port forwarding ... never a good idea to forward anything to the NAS directly. And port 8080 is a prime suspect for fingerprinting and subsequent exploit based hacks

spile
Know my way around
Posts: 134
Joined: Tue May 24, 2016 12:13 am

Re: issue with two users opening the same file

Post by spile » Tue Jul 21, 2020 3:53 pm

dolbyman wrote:
Tue Jul 21, 2020 5:15 am
Qsync uses port 8080 to connect to the NAS via port forwarding ... never a good idea to forward anything to the NAS directly. And port 8080 is a prime suspect for fingerprinting and subsequent exploit based hacks
So rather than ditching a useful sync app, just turn off upnp and manual port forwards then.

P3R
Guru
Posts: 12205
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: issue with two users opening the same file

Post by P3R » Tue Jul 21, 2020 5:15 pm

spile wrote:
Tue Jul 21, 2020 3:53 pm
So rather than ditching a useful sync app...
Ditching the app that is inappropriate for the use case and that causes the problems that is the topic of this thread seem very appropriate to me.

dolbyman added that any open port forwards had better be closed and that using a remote access VPN solution would be the best. I agree with that as that would also be the only secure way forward to accessing the NAS directly, as was my suggested solution for the OP.

If you disagree with our advice for the OP, then please suggest the solution that you think would help her/him better in the concurrent file usage situation that is the use case here.
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!

Post Reply

Return to “File Sharing”