SQL Server - Resource Temporarily Unavaiable

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
fernando.xpoint
Posts: 1
Joined: Thu 08 Dec 2016 10:52

SQL Server - Resource Temporarily Unavaiable

Post by fernando.xpoint » Thu 08 Dec 2016 11:53

Hi,

I'm trying to do a simple query directly to a online SQLServer database hosted in Azure using UniConnection and UniQuery with a mobile app:

query.Close;
query.SQL.Text := 'select [field] from [table]';
query.Open;

But the follow exception rises: 'Error on data reading from the connection: Resource temporarily unavailable. Socket Error Code: 35($23)'.

Connection configuration:
Provider: SQL Server.
ipVersion: ivIPBoth.
ConnectString: Provider Name=SQL Server;Data Source=[my_db].database.windows.net;Initial Catalog=[my_db];Port=0;User ID=[user];Password=[password];IP Version=ivIPBoth;Login Prompt=False;Pooling=True;Validate Connection=True;

Here in Brazil the app is working perfectly with all resources (select, update, delete, drop etc), but in Apple Store test (when the app subimted is waiting for approval) this simple query is rising the exception above.

What this could be? Is there some missing configuration?

Thanks!

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: SQL Server - Resource Temporarily Unavaiable

Post by azyk » Fri 09 Dec 2016 11:35

The specified issue is not related to UniDAC functionality. Please forward your question to Apple Store support.

ziclope
Posts: 27
Joined: Fri 24 Feb 2006 11:34

Re: SQL Server - Resource Temporarily Unavaiable

Post by ziclope » Wed 08 Mar 2017 10:21

I have the same problem, how can I resolve it ?

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: SQL Server - Resource Temporarily Unavaiable

Post by azyk » Thu 09 Mar 2017 09:22

Please specify whether this error is reproduced when the property TUniConnection.SpecificOptions.Values['SQL Server.IPVersion'] is assigned the value:
- ivIPv4
- ivIPv6
- ivIPBoth

ziclope
Posts: 27
Joined: Fri 24 Feb 2006 11:34

Re: SQL Server - Resource Temporarily Unavaiable

Post by ziclope » Thu 09 Mar 2017 10:19

TUniConnection.SpecificOptions.Values['SQL Server.IPVersion'] = ivIPv4

this is the default value, I have no changed it

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: SQL Server - Resource Temporarily Unavaiable

Post by azyk » Thu 09 Mar 2017 13:16

The described problem may occur if on the client machine where the application is running there is no access to SQL Azure through IPV4 protocol. Trace the path from the client to SQL Azure to find out at which route point the access is absent.

ziclope
Posts: 27
Joined: Fri 24 Feb 2006 11:34

Re: SQL Server - Resource Temporarily Unavaiable

Post by ziclope » Thu 09 Mar 2017 13:30

Can I change to ivBoth on SQL Azure ?

ziclope
Posts: 27
Joined: Fri 24 Feb 2006 11:34

Re: SQL Server - Resource Temporarily Unavaiable

Post by ziclope » Thu 09 Mar 2017 15:37

My actual connection string is

Provider Name=SQL Server;Provider=TDS;Data Source=XXXXXX.database.windows.net;Initial Catalog=DATAS;User ID=demos;Password=demos;MultipleActiveResultSets=True;Login Prompt=False

ziclope
Posts: 27
Joined: Fri 24 Feb 2006 11:34

Re: SQL Server - Resource Temporarily Unavaiable

Post by ziclope » Sat 11 Mar 2017 08:59

Apple review team Still rejected my app.

I have try multiple compilations:

- With Encrypt='True' and Encrypt='False'
- Using ipV6 and ipV4

I have created a NAT64 wifi with macs for try simulating IPV6 and app works in my test. Buy rejected when submited.

Any solutions ? Any idea ?

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: SQL Server - Resource Temporarily Unavaiable

Post by azyk » Mon 13 Mar 2017 10:44

The described problem may occur if at least on one of the route points from a computer/mobile device where the app is running to SQL Azure there is no access to IPV4 protocol. To check the access, use the traceroute command on the computer/mobile device where this problem occurs.

ziclope
Posts: 27
Joined: Fri 24 Feb 2006 11:34

Re: SQL Server - Resource Temporarily Unavaiable

Post by ziclope » Mon 13 Mar 2017 18:02

SQL Azure require at least one route point in IPv4 ?
SQL Azure does not allow connections from ipv6 real networks ?

I don´t know bypass it

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: SQL Server - Resource Temporarily Unavaiable

Post by azyk » Tue 14 Mar 2017 10:08

UniDAC supports connection to SQL Azure using both protocols - IPv4 and IPv6.

To check if client region is available for SQL Azure through IPv4/IPv6 protocol, please read the following article in Azure documentation: https://azure.microsoft.com/en-us/updat ... azure-vms/ or forward these questions to its developers.

ziclope
Posts: 27
Joined: Fri 24 Feb 2006 11:34

Re: SQL Server - Resource Temporarily Unavaiable

Post by ziclope » Tue 14 Mar 2017 15:42

I think that devart should be create a demo app over ios and mac
connecting to SQL Azure, and try publish to apple store.

Because I wasted a lot of time, 1 week, without solution.

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: SQL Server - Resource Temporarily Unavaiable

Post by azyk » Thu 16 Mar 2017 11:04

The error message 'Resource temporarily unavailable' is generated not by UniDAC, but by OS. To solve the problem you should find this error cause. Clarify at the Apple Store whether there is access to SQL Azure from the computer/mobile device where this error occurs.

Post Reply