QNAP QSync can't establish connection to NAS

Questions about Wine on Linux
Locked
tgp1994
Newbie
Newbie
Posts: 2
Joined: Thu Oct 12, 2017 7:06 pm

QNAP QSync can't establish connection to NAS

Post by tgp1994 »

Wine version: 2.18
Operating system(s): Linux Mint 18.2 "Sonya" x86_64, Ubuntu 17.04 "Zesty" i386

Description:
A long standing issue with running QSync (AppDB) under Wine has been that QSync never seems to successfully connect to a NAS. After attempting to connect, it will say "Authentication failure" even though logs on the NAS indicate that the client authenticated successfully.

As you can see in the AppDB, I've done my own testing on various versions of QSync. The latest, 4.2.3, still shows this issue with Wine version 2.18.

Terminal output:

Code: Select all

fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:nls:GetThreadPreferredUILanguages 00000034, 0x22788fc, 0x227896c 0x2278904
fixme:nls:get_dummy_preferred_ui_language (0x34 0x22788fc 0x227896c 0x2278904) returning a dummy value (current locale)
fixme:process:RegisterApplicationRestart (L" /RestartByRestartManager:B37459E7-2AF5-4b35-BD74-B05A0C7529F1",0)
fixme:msg:ChangeWindowMessageFilterEx (nil) c0d9 1 (nil)
fixme:shell:InitNetworkAddressControl stub
fixme:listview:LISTVIEW_SetView View LV_VIEW_TILE unimplemented
err:listview:LISTVIEW_WindowProc unknown msg 10a2 wp=00000000 lp=0227772c
fixme:listview:LISTVIEW_SetView View LV_VIEW_TILE unimplemented
err:listview:LISTVIEW_WindowProc unknown msg 10a2 wp=00000000 lp=02277724
fixme:listview:LISTVIEW_SetView View LV_VIEW_TILE unimplemented
err:listview:LISTVIEW_WindowProc unknown msg 10a2 wp=00000000 lp=02277474
err:listview:LISTVIEW_WindowProc unknown msg 10af wp=00000000 lp=00000000
IOTC_Initialize2 VERSION[10A0900]...
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
err:winediag:IcmpCreateFile Failed to use ICMP (network ping), this requires special permissions.
Application debug log:

Code: Select all

2017-10-07 23:08:15 [Qsync] CQsyncConnection()::CreateConnectionInfo(QFILE_CONNECTION_SCHEME_WEB_FILE_MAN) 
2017-10-07 23:08:15 [Qsync] CQsyncConnection()::CreateConnectionInfo(Destination root path = http://[REMOVED]:8080) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection::TryConnect (Login)(failure) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection::Close(NAS=[REMOVED])(user=) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection::Stop(NAS=)(user=) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection()::Stop(Close connnection m_DestPathInfo.hConnection) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection()::Stop(CloseTunnel) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection()::CloseTunnel 
2017-10-07 23:08:17 [Qsync] CQsyncConnection::Close(NAS=[REMOVED])(user=) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection::Stop(NAS=)(user=) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection()::Stop(Close connnection m_DestPathInfo.hConnection) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection()::Stop(CloseTunnel) 
2017-10-07 23:08:17 [Qsync] CQsyncConnection()::CloseTunnel
Things I've tried:
  • On Mint, I tried sudo setcap cap_net_raw+epi /usr/bin/wine-preloader which resolved the ping errors at the time, although this work around no longer works in Ubuntu 17.04.
  • Logging in secure mode and insecure - both produce the same result.
  • Windows PCs work fine
Further reading: Possibly related bugs: I contacted QNAP support about having a Linux version, and this was their response on Oct. 10, 2017.
QNAP Support wrote: As far as I can see, [Linux support is] still just a feature request. I do not know if they are working on it now. I can submit another feature request for you, and ask to see if they'll give me a status update.
I haven't heard back yet. Judging by the forum posts, it sounds like there's a Linux version of Qsync floating around somewhere at QNAP. Perhaps this would be a good opportunity to iron out some Wine bugs though.

Any ideas how I should proceed with this?
tgp1994
Newbie
Newbie
Posts: 2
Joined: Thu Oct 12, 2017 7:06 pm

Update: Packet capture

Post by tgp1994 »

I ran a packet capture on a Windows machine to demonstrate a successful session from when the program launches, to when it begins checking for changes. To summarize, QSync does not send out any ICMP packets during a normal session. See attached for a CSV of the packet capture session.
Attachments
qsync-session.zip
Packet Capture session - Microsoft Network Capture 3.4, opened in Wireshark and exported to CSV.
(5.73 KiB) Downloaded 232 times
Locked