[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-24 Thread Launchpad Bug Tracker
This bug was fixed in the package net-cpp - 1.1.0+15.04.20150123.1~rtm-
0ubuntu1

---
net-cpp (1.1.0+15.04.20150123.1~rtm-0ubuntu1) 14.09; urgency=low

  [ Marcus Tomlinson ]
  * Explicitly cast milliseconds::count() to long (LP: #1409995)
 -- Ubuntu daily release ps-jenk...@lists.canonical.com   Fri, 23 Jan 2015 
14:58:31 +

** Changed in: net-cpp (Ubuntu RTM)
   Status: New = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in the base for Ubuntu mobile products:
  Fix Released
Status in unity-scopes-api package in Ubuntu:
  Fix Released
Status in net-cpp package in Ubuntu RTM:
  Fix Released
Status in unity-scopes-api package in Ubuntu RTM:
  In Progress

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-24 Thread Launchpad Bug Tracker
This bug was fixed in the package unity-scopes-api -
0.6.9+15.04.20150123.1~rtm-0ubuntu1

---
unity-scopes-api (0.6.9+15.04.20150123.1~rtm-0ubuntu1) 14.09; urgency=low

  [ Marcus Tomlinson ]
  * Fixed smartscopesproxy crash due to json-cpp update (LP: #1410125)
  * Switch from QNetwork to net-cpp (LP: #1409995)
 -- Ubuntu daily release ps-jenk...@lists.canonical.com   Fri, 23 Jan 2015 
15:19:37 +

** Changed in: unity-scopes-api (Ubuntu RTM)
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in the base for Ubuntu mobile products:
  Fix Released
Status in unity-scopes-api package in Ubuntu:
  Fix Released
Status in net-cpp package in Ubuntu RTM:
  Fix Released
Status in unity-scopes-api package in Ubuntu RTM:
  Fix Released

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-24 Thread Pat McGowan
** Changed in: canonical-devices-system-image
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in the base for Ubuntu mobile products:
  Fix Released
Status in unity-scopes-api package in Ubuntu:
  Fix Released
Status in net-cpp package in Ubuntu RTM:
  Fix Released
Status in unity-scopes-api package in Ubuntu RTM:
  Fix Released

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-23 Thread Launchpad Bug Tracker
This bug was fixed in the package unity-scopes-api -
0.6.11+15.04.20150121.2-0ubuntu1

---
unity-scopes-api (0.6.11+15.04.20150121.2-0ubuntu1) vivid; urgency=low

  [ Ubuntu daily release ]
  * debian/libunity-scopes3.symbols: auto-update to released version

  [ thomas-voss ]
  * Switch from QNetwork to net-cpp (LP: #1326816, #1409995)

  [ MichaƂ Sawicz ]
  * Depend on :native version of g++ to allow cross-compiling to work.
Also run `wrap-and-sort -at` (LP: #1353855)

  [ Marcus Tomlinson ]
  * Switch from QNetwork to net-cpp (LP: #1326816, #1409995)

  [ Michi Henning ]
  * Added utility subdir to header tests.
  * Bunch of miscellaneous fixes:

  [ James Henstridge ]
  * Expose the deserialize() static method on FilterBase and FilterState
for use by the Go bindings.
 -- Ubuntu daily release ps-jenk...@lists.canonical.com   Wed, 21 Jan 2015 
12:46:41 +

** Changed in: unity-scopes-api (Ubuntu)
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in the base for Ubuntu mobile products:
  In Progress
Status in unity-scopes-api package in Ubuntu:
  Fix Released

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-23 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/vivid-proposed/unity-scopes-api

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in the base for Ubuntu mobile products:
  In Progress
Status in unity-scopes-api package in Ubuntu:
  In Progress

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-23 Thread Marcus Tomlinson
** Also affects: unity-scopes-api (Ubuntu RTM)
   Importance: Undecided
   Status: New

** Changed in: unity-scopes-api (Ubuntu RTM)
   Status: New = In Progress

** Changed in: unity-scopes-api (Ubuntu RTM)
 Assignee: (unassigned) = Marcus Tomlinson (marcustomlinson)

** Branch linked: lp:~marcustomlinson/net-cpp/fix_ppc_timeout-rtm

** Branch linked: lp:~marcustomlinson/unity-scopes-api/switch-to-net-
cpp-rtm

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in the base for Ubuntu mobile products:
  In Progress
Status in unity-scopes-api package in Ubuntu:
  Fix Released
Status in unity-scopes-api package in Ubuntu RTM:
  In Progress

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-21 Thread Thomas Strehl
** Also affects: canonical-devices-system-image
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in the base for Ubuntu mobile products:
  New
Status in unity-scopes-api package in Ubuntu:
  In Progress

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-21 Thread Pat McGowan
approving while we look also for a fix to QNetworkAccessManager and the
backend to network manager

** Changed in: canonical-devices-system-image
   Importance: Undecided = High

** Changed in: canonical-devices-system-image
   Status: New = In Progress

** Changed in: canonical-devices-system-image
Milestone: None = ww05-2015

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in the base for Ubuntu mobile products:
  In Progress
Status in unity-scopes-api package in Ubuntu:
  In Progress

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-19 Thread Marcus Tomlinson
** Changed in: unity-scopes-api (Ubuntu)
 Assignee: (unassigned) = Marcus Tomlinson (marcustomlinson)

** Changed in: unity-scopes-api (Ubuntu)
   Status: New = In Progress

** Branch linked: lp:~marcustomlinson/unity-scopes-api/switch-to-net-cpp

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in unity-scopes-api package in Ubuntu:
  In Progress

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-15 Thread Michi Henning
Looks like this is a problem QtNetworkAccessManager. Depending on timing
during boot, it permanently gets stuck.

Marcus has a branch that gets rid of Qt completely and uses net-cpp
instead:

https://code.launchpad.net/~marcustomlinson/unity-scopes-api/switch-to-
net-cpp/+merge/246538

It looks like this will put the issue to rest.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in unity-scopes-api package in Ubuntu:
  New

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-13 Thread Michi Henning
RTM image smartscopesproxy log attached.

** Attachment added: RTM image log for smartscopesproxy
   
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1409995/+attachment/4298022/+files/rtm.log

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in unity-scopes-api package in Ubuntu:
  New

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1409995] Re: Queries to remote scopes time out

2015-01-13 Thread Michi Henning
I just got the bug with image 161 from ubuntu-touch/ubuntu-
rtm/14.09-proposed, so it's definitely not limited to devel only.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1409995

Title:
  Queries to remote scopes time out

Status in unity-scopes-api package in Ubuntu:
  New

Bug description:
  I'm seeing this on Mako, image #63, devel-proposed.

  Periodically, the music scope fails to return any results, leaving a
  blank screen.

  Looking through the log files, I'm seeing tons of messages such as
  this:

  [2015-01-13 01:33:27.056262] INFO: SSRegistry: 
SmartScopesClient.get_remote_scopes(): GET 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US
  [2015-01-13 01:33:27.057239] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): failed to read /custom/partner-id: 
unity::FileException: cannot open /custom/partner-id: No such file or 
directory (errno = 2)
  [2015-01-13 01:33:46.996259] ERROR: SSRegistry: 
SmartScopesClient.get_remote_scopes(): Failed to retrieve remote scopes from 
uri: https://dash.ubuntu.com/smartscopes/v2/remote-scopes: 
unity::ResourceException: Request timed out: 
https://dash.ubuntu.com/smartscopes/v2/remote-scopes?locale=en_US

  The request times out even though the remote end works fine. (Easy to
  confirm by pasting the same URL into the browser.)

  As an aside, the error about /custom/partner-id isn't an error: if the
  file doesn't exist (errno = 2), we should say nothing. That'll get rid
  of a lot of noise.

  In addition, when I run a query, I see all queries to remote scopes
  fail (see attached trace).

  I'm not familiar with the code. Looking through, I noticed this:

  HttpResponseHandle::SPtr response = 
http_client_-get(remote_scopes_uri.str(), [response_str](std::string const 
replyLine) {
  response_str += replyLine; // accumulate all reply lines
  }, headers);
  response-get();

  Following this through, it appears that response_str is being appended
  to from a different thread without any lock. That looks like it's
  wrong to me. But that doesn't explain the timeout exception that is
  thrown from response-get().

  I suspect a race condition somewhere because, occasionally, I get a
  query that works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1409995/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp