6 Replies Latest reply on Apr 5, 2013 12:24 PM by mdrillin

    failed to deploy teiid to openshift ("git apply standalone.diff" command failed)

    yjma2001

      Hi All:

       

      I am trying to deploy teiid into my openshift application (jbosseap-6.0) by following the documentation "https://github.com/teiid/openshift", but the step "git apply standalone.diff" already failed. Here is the error I got:

       

      c:\openshift\teiiddemo>git apply standalone.diff

      standalone.diff:9: trailing whitespace.

                      <extension module="org.jboss.teiid"/>

      standalone.diff:17: trailing whitespace.

                                              <driver name="teiid-local" module="org.jboss.teiid">

      standalone.diff:18: trailing whitespace.

                                                      <driver-class>org.teiid.jdbc.TeiidDriver</driver-class>

      standalone.diff:19: trailing whitespace.

                                                      <xa-datasource-class>org.teiid.jdbc.TeiidDataSource</xa-datasource-class>

      standalone.diff:20: trailing whitespace.

                                              </driver>

      error: patch failed: .openshift/config/standalone.xml:32

      error: .openshift/config/standalone.xml: patch does not apply

       

      Anyone knows how to solve this problem or any work-arround?

       

      Thanks advance.

      Jack

        • 1. Re: failed to deploy teiid to openshift ("git apply standalone.diff" command failed)
          mdrillin

          Jack,

          I will take a look today and will let you know when the update is available.

          Thanks,

          Mark

          • 2. Re: failed to deploy teiid to openshift ("git apply standalone.diff" command failed)
            mdrillin

            Jack,

            I was able to successfully install the demo today.  I think what you are seeing is a whitespace issue with the standalone.diff file.

             

            Can you try "git apply --whitespace=fix standalone.diff" and let me know if that helps?

            thanks

            Mark

            • 3. Re: failed to deploy teiid to openshift ("git apply standalone.diff" command failed)
              yjma2001

              Hi Mark:

               

              Thanks for the response. It only works on deploying teiid to openshift application where jbosseap-6.0 cartridge is installed.

               

              But for me, I am trying to deploy teiid to openshift application with jbossas-7 cartridge installed, this call still fails, here is the error:

               

              c:\openshift\teiiddemo>git apply --whitespace=fix standalone.diff

              standalone.diff:9: trailing whitespace.

                              <extension module="org.jboss.teiid"/>

              standalone.diff:17: trailing whitespace.

                                                      <driver name="teiid-local" module="org.jboss.teiid">

              standalone.diff:18: trailing whitespace.

                                                              <driver-class>org.teiid.jdbc.TeiidDriver</driver-class>

              standalone.diff:19: trailing whitespace.

                                                              <xa-datasource-class>org.teiid.jdbc.TeiidDataSource</xa-datasource-class>

              standalone.diff:20: trailing whitespace.

                                                      </driver>

              error: patch failed: .openshift/config/standalone.xml:32

              error: .openshift/config/standalone.xml: patch does not apply

               

              You see, even I add the "--whitespace=fix" option, the "git apply" command still failed.

               

              Thanks

              Jack

              • 4. Re: failed to deploy teiid to openshift ("git apply standalone.diff" command failed)
                mdrillin

                Jack,

                Sorry, but we no longer support the AS7 cartridge for the Teiid OpenShift Demo.  There were a couple significant bug fixes that are resolved by using the jbosseap-6.0 cartridge.

                Thanks,

                Mark

                1 of 1 people found this helpful
                • 5. Re: failed to deploy teiid to openshift ("git apply standalone.diff" command failed)
                  yjma2001

                  Thanks Mark for that info.

                   

                  During the teiid deploy (git push), I saw floowing error from screen output:

                   

                  remote: Running .openshift/action_hooks/deploy

                  remote: ERROR 1146 (42S02) at line 1: Table 'teiiddemo.ACCOUNT' doesn't exist

                  remote:

                  remote: Schema not found --> Importing schema from .openshift/action_hooks/customer-schema.sql

                  remote:

                  remote:

                  remote: done.

                   

                  But it looks like teiid got deployed successfully, and database tables got created at mysql. so what is this error?

                   

                  Thanks

                  Jack

                  • 6. Re: failed to deploy teiid to openshift ("git apply standalone.diff" command failed)
                    mdrillin

                    You can ignore that error message.  When the demo is first installed, there is an action hook that loads demo data into the mysql database.  To determine whether to load the data, the script does a check against the db to see if the ACCOUNT table exists.  That message shows up on the initial install because the ACCOUNT table is not there.  Then If user makes any subsequent changes to their OpenShift installation, the script will skip the db loading.