Quantcast

UI of push notification application in OpenShift hangs on 401 error

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

UI of push notification application in OpenShift hangs on 401 error

ffraticelli
Hello,
we would like to deploy Unified Push Server in our organization, and we are testing it with OpenShift before creating our own instance.

We are using the REST API to register and send push notifications.

Both work, but after sending the 1st notification, the server application is completely unusable and I keep receiving 401 messages.
I have tried to restart the application, but nothing changes. I have deleted/created a new application, but I get the same issue.

The registration and sending keeps working well with the REST API, even after the server gets blocked.Screen_Shot_2016-02-12_at_13.png

The application is:
https://aerogear-unog.rhcloud.com/

The variant is for Android.

I have read in the forum that the 401 error could be linked to asynch server times, but we are not using our own server, we are just testing it on OpenShift.

Thanks for your help.
Fausto
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: UI of push notification application in OpenShift hangs on 401 error

ffraticelli
This post was updated on .
It really looks a serious bug in the UPS though.

To replicate the issue, create a UPS application using OpenShift and an Android variant (haven't tried with iOS, it might have the same issue).
Register a device and send the following POST with a REST client. It will completely block the server UI as shown in the screenshot (my previous message):

URL: https://aerogear-unog.rhcloud.com/ag-push/rest/sender

BASIC AUTH:
xxxPushApplicationID:xxxMasterSecret

HEADERS:
Accept: application/json
Content-Type: application/json

BODY:
{
     "message": {
      "alert": "HELLO!",
      "sound": "default"
   }
}

Please any help?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] UI of push notification application in OpenShift hangs on 401 error

Matthias Wessendorf
Hello Fausto,

sorry for the late response.

Did you create the UPS as a medium sized gear?

Thanks,
Matthias

On Tue, Feb 16, 2016 at 9:23 AM, ffraticelli <[hidden email]> wrote:
It really looks a serious bug in the UPS though.

To replicate the issue, create a UPS application using OpenShift and an
Android variant (haven't tried with iOS, it might have the same issue).
Register a device and send the following POST with a REST client. It will
completely block the server UI as shown in the screenshot (my previous
message):

URL: https://aerogear-unog.rhcloud.com/ag-push/rest/sender

BASIC AUTH:
PushApplicationID:MasterSecret

HEADERS:
Accept: application/json
Content-Type: application/json

BODY:
{
     "message": {
      "alert": "HELLO!",
      "sound": "default"
   }
}

Please any help?



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/UI-of-push-notification-application-in-OpenShift-hangs-on-401-error-tp504p511.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users



--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] UI of push notification application in OpenShift hangs on 401 error

ffraticelli
Hi Mathias,
thank you for your answer.
When using the OpenShift UI to create the app, it only allows small gear, no way I can set medium.

In our own instance created using Docker the yaml file doesn't have a gear-size parameter.
Here's the yaml file, what/where should I include the gear-size param?

unifiedpushDB:
  image: mysql:5.5
  environment:
   - MYSQL_USER=TTT
   - MYSQL_PASSWORD=ZZZ
   - MYSQL_DATABASE=XXX
   - MYSQL_ROOT_PASSWORD=supersecret
  ports:
  - 4306:3306
keycloakDB:
  image: mysql:5.5
  environment:
   - MYSQL_USER=YYY
   - MYSQL_PASSWORD=XXX
   - MYSQL_DATABASE=keycloak
   - MYSQL_ROOT_PASSWORD=supersecret
  ports:
  - 4406:3306
unifiedpushserver:
  image: aerogear/unifiedpush-wildfly-dev
  links:
    - unifiedpushDB:unifiedpush
    - keycloakDB:keycloak
  ports:
  - 8443:8443

Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] UI of push notification application in OpenShift hangs on 401 error

Matthias Wessendorf


On Wednesday, 24 February 2016, ffraticelli <[hidden email]> wrote:
Hi Mathias,
thank you for your answer.
When using the OpenShift UI to create the app, it only allows small gear, no
way I can set medium.

Unfortunately the 1.1.x version requires medium :-(
 

In our own instance created using Docker the yaml file doesn't have a
gear-size parameter.
Here's the yaml file, what/where should I include the gear-size param?

unifiedpushDB:
  image: mysql:5.5
  environment:
   - MYSQL_USER=TTT
   - MYSQL_PASSWORD=ZZZ
   - MYSQL_DATABASE=XXX
   - MYSQL_ROOT_PASSWORD=supersecret
  ports:
  - 4306:3306
keycloakDB:
  image: mysql:5.5
  environment:
   - MYSQL_USER=YYY
   - MYSQL_PASSWORD=XXX
   - MYSQL_DATABASE=keycloak
   - MYSQL_ROOT_PASSWORD=supersecret
  ports:
  - 4406:3306
unifiedpushserver:
  image: aerogear/unifiedpush-wildfly-dev
  links:
    - unifiedpushDB:unifiedpush
    - keycloakDB:keycloak
  ports:
  - 8443:8443

Thanks.



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/UI-of-push-notification-application-in-OpenShift-hangs-on-401-error-tp504p524.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Aerogear-users@lists.jboss.org&#39;)">Aerogear-users@...
https://lists.jboss.org/mailman/listinfo/aerogear-users


--
Sent from Gmail Mobile

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] UI of push notification application in OpenShift hangs on 401 error

Matthias Wessendorf

On Wed, Feb 24, 2016 at 3:19 PM, Matthias Wessendorf <[hidden email]> wrote:


On Wednesday, 24 February 2016, ffraticelli <[hidden email]> wrote:
Hi Mathias,
thank you for your answer.
When using the OpenShift UI to create the app, it only allows small gear, no
way I can set medium.

Unfortunately the 1.1.x version requires medium :-(
 

In our own instance created using Docker the yaml file doesn't have a
gear-size parameter.
Here's the yaml file, what/where should I include the gear-size param?

unifiedpushDB:
  image: mysql:5.5
  environment:
   - MYSQL_USER=TTT
   - MYSQL_PASSWORD=ZZZ
   - MYSQL_DATABASE=XXX
   - MYSQL_ROOT_PASSWORD=supersecret
  ports:
  - 4306:3306
keycloakDB:
  image: mysql:5.5
  environment:
   - MYSQL_USER=YYY
   - MYSQL_PASSWORD=XXX
   - MYSQL_DATABASE=keycloak
   - MYSQL_ROOT_PASSWORD=supersecret
  ports:
  - 4406:3306
unifiedpushserver:
  image: aerogear/unifiedpush-wildfly-dev
  links:
    - unifiedpushDB:unifiedpush
    - keycloakDB:keycloak
  ports:
  - 8443:8443

Thanks.



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/UI-of-push-notification-application-in-OpenShift-hangs-on-401-error-tp504p524.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users


--
Sent from Gmail Mobile



--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] UI of push notification application in OpenShift hangs on 401 error

ffraticelli
Thank you. Where do I set the gear-size to medium with Docker? I don't find any indication in the Docker documentation you sent.

Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] UI of push notification application in OpenShift hangs on 401 error

Matthias Wessendorf
I meant local docker - not on openshift

On Wed, Feb 24, 2016 at 4:13 PM, ffraticelli <[hidden email]> wrote:
Thank you. Where do I set the gear-size to medium with Docker? I don't find
any indication in the Docker documentation you sent.

Thanks.



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/UI-of-push-notification-application-in-OpenShift-hangs-on-401-error-tp504p527.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users



--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] UI of push notification application in OpenShift hangs on 401 error

ffraticelli
This post was updated on .
Then, if I understand well, the gear-size parameter is only used by OpenShift, right?

But than, this parameter cannot the cause of the problem, because our local UPS instance (on Docker) has exactly the same issue.

I replicated the issue following exactly the steps described earlier.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] UI of push notification application in OpenShift hangs on 401 error

Matthias Wessendorf


On Wed, Feb 24, 2016 at 8:54 PM, ffraticelli <[hidden email]> wrote:
Then, if I understand well, the gear-size parameter is only used by
OpenShift, right?

yes
 

But than, this parameter cannot the cause of the problem, because our local
UPS instance (on Docker) has exactly the same issue?

Really? That's strange - never heard of that issue before.
You ran both DB docker images and the server? and get the issue ?
 

I replicated the issue following exactly the steps described earlier.

Ok, can you file a bug on our AGPUSH JIRA instance, with stack-trace?
 



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/UI-of-push-notification-application-in-OpenShift-hangs-on-401-error-tp504p529.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users



--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] UI of push notification application in OpenShift hangs on 401 error

Matthias Wessendorf
Can you also add log details, from the browser console for all the 401 requests ? 

Thanks!

On Wed, Feb 24, 2016 at 9:21 PM, Matthias Wessendorf <[hidden email]> wrote:


On Wed, Feb 24, 2016 at 8:54 PM, ffraticelli <[hidden email]> wrote:
Then, if I understand well, the gear-size parameter is only used by
OpenShift, right?

yes
 

But than, this parameter cannot the cause of the problem, because our local
UPS instance (on Docker) has exactly the same issue?

Really? That's strange - never heard of that issue before.
You ran both DB docker images and the server? and get the issue ?
 

I replicated the issue following exactly the steps described earlier.

Ok, can you file a bug on our AGPUSH JIRA instance, with stack-trace?
 



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/UI-of-push-notification-application-in-OpenShift-hangs-on-401-error-tp504p529.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users



--



--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Loading...