Bug 987810 - [fork][origin_runtime_186]some service can't start normally when create an apaerogear-push-0.8.0 app
Summary: [fork][origin_runtime_186]some service can't start normally when create an ap...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Farah Juma
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 08:11 UTC by Yan Du
Modified: 2015-05-14 23:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-29 12:48:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
detail log (29.97 KB, text/plain)
2013-07-24 08:11 UTC, Yan Du
no flags Details
0731_server.log (fork_ami_pmorie_736) (30.68 KB, text/plain)
2013-07-31 10:31 UTC, Yan Du
no flags Details
fork_ami_aerogear_push_748 test log (30.75 KB, text/plain)
2013-08-07 03:26 UTC, Yan Du
no flags Details
boot log (8.00 KB, text/plain)
2013-08-07 04:54 UTC, Yan Du
no flags Details
fork_ami_aerogear_push_758 log (28.81 KB, text/plain)
2013-08-13 06:26 UTC, Yan Du
no flags Details

Description Yan Du 2013-07-24 08:11:03 UTC
Description of problem:

create an aerogear-push-0.8.0 app,then check server.log, some service can't be start normally
eg:
2013/07/24 01:12:44,557 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.netty.simplepush-server: org.jboss.msc.service.StartException in service jboss.netty.simplepush-server: [PersistenceUnit: SimplePushPU] Unable to build EntityManagerFactory
2013/07/24 01:12:47,911 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 19705ms - Started 174 of 294 services (1 services failed or missing dependencies, 115 services are passive or on-demand)

detail log has attached.


Version-Release number of selected component (if applicable):
fork_ami_aerogear_push_709


How reproducible:
Always


Steps to Reproduce:
1. create an aerogear-push-0.8.0
   rhc app create ap1 aerogear-push-0.8.0 mysql-5.1
2. check the server.log 


Actual results:
some service can't be started normally
pls. refer to the detail log in attachment


Expected results:
all the service can be started successfully without any error

Comment 1 Yan Du 2013-07-24 08:11:45 UTC
Created attachment 777646 [details]
detail log

Comment 2 Farah Juma 2013-07-24 18:15:52 UTC
I haven't been able to reproduce this using a devenv instance based on the latest fork AMI (fork_ami_aerogear_push_709). In particular, all of the services start successfully for me. However, this could be a timing issue, i.e., it could be that the datasource service sometimes isn't started when the Netty service starts up. Dan is looking into this (see https://issues.jboss.org/browse/AGPUSH-213).

Comment 3 Farah Juma 2013-07-26 20:16:12 UTC
A dependency on jpa has been added to the Netty module (see https://issues.jboss.org/browse/AGPUSH-213). This bug should no longer occur once a new fork AMI has been created.

Comment 4 Farah Juma 2013-07-30 19:27:39 UTC
A new fork AMI that contains the fix for this issue is now available for testing.

Comment 5 Farah Juma 2013-07-30 19:27:39 UTC
A new fork AMI that contains the fix for this issue is now available for testing.

Comment 6 Yan Du 2013-07-31 10:30:42 UTC
test on for_ami_pmorie_736, issue still can be reproduced.

server.log has attached. pls. check it. thanks.

Comment 7 Yan Du 2013-07-31 10:31:46 UTC
Created attachment 781038 [details]
0731_server.log (fork_ami_pmorie_736)

Comment 8 Farah Juma 2013-07-31 21:13:51 UTC
A dependency on the datasource has been added to the netty subsystem. A new fork AMI that contains this fix is currently being built.

Comment 9 Yan Du 2013-08-01 10:43:08 UTC
The new fork AMI is still not ready for test. will re-test it once the new fork ami is ready. Thanks.

Comment 10 Farah Juma 2013-08-06 20:54:48 UTC
The new fork AMI is now ready: fork_ami_aerogear_push_748

Comment 11 Yan Du 2013-08-07 03:26:02 UTC
test on fork_ami_aerogear_push_748

still show some error in server.log, pls. refer to the attachment. Thanks.

Comment 12 Yan Du 2013-08-07 03:26:49 UTC
Created attachment 783639 [details]
fork_ami_aerogear_push_748 test log

Comment 13 Daniel Bevenius 2013-08-07 04:23:33 UTC
Could you please also attach boot.log for the latest run? 
We have added a log statement at info level when we add the dependency to the configured data source. I don't see this in the log file attached and I like to verify. 

Thanks

Comment 14 Yan Du 2013-08-07 04:54:47 UTC
Created attachment 783662 [details]
boot log

Comment 15 Daniel Bevenius 2013-08-07 05:39:35 UTC
Thanks for attaching the boot.log. I can see the log statement so this looks correct. 

It has been difficult for us to reproduce this issue and the only way has been to set breakpoints in the code. Obviously adding the dependency is not working and I'll look into this.

Thanks

Comment 16 Farah Juma 2013-08-08 00:52:14 UTC
A dependency on the datasource being bound in JNDI (as opposed to a dependency on the datasource service itself) has been added to the cartridge (as Dan described in https://issues.jboss.org/browse/AGPUSH-213?focusedCommentId=12795533&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12795533). This bug should hopefully no longer occur once the new fork AMI is ready.

Comment 17 Farah Juma 2013-08-12 15:55:49 UTC
The new fork AMI is now ready for testing: fork_ami_aerogear_push_758

Comment 18 Yan Du 2013-08-13 06:25:21 UTC
test on fork_ami_aerogear_push_758, 

most of the previous error in server.log disappeared, but seems still show ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate], (and i tried to create jbossas-7 app, there is no such error shown with jbossas-7 app.) You can refer detail log in attachment. thanks.

Comment 19 Yan Du 2013-08-13 06:26:40 UTC
Created attachment 786002 [details]
fork_ami_aerogear_push_758 log

Comment 20 matzew 2013-08-13 09:20:27 UTC
Hello Yan,

the ERROR is not a stopper, however a fix has been created.

Please see this JIRA ticket for more details:
https://issues.jboss.org/browse/AGPUSH-273

Comment 21 Farah Juma 2013-08-20 20:51:24 UTC
The new fork AMI is now ready for testing: fork_ami_aerogear_push_809

Comment 22 Yan Du 2013-08-21 02:23:10 UTC
test on fork_ami_aerogear_push_809

no error shown when creating aerogear push server application. 
move the bug to verified.


Note You need to log in before you can comment on or make changes to this bug.