cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error while Installation hybris 6.2

Former Member
0 Likes
1,474

Hi All,

I am installing hybris 6.2 and I need install b2b_cc and b2b_acc_plus , but when I execute "install.bat -r b2b_acc, this command generate the next error:

Please analize the error ans help me with the answer, Thanks!!!

Error:

D:\> cd D:\Hybris\HybrisVersion62\installer

D:\Hybris\HybrisVersion62\installer>install.bat -r b2b_acc Java version: 1.8.0_162 Installer plugins: installer-platform-plugin:1.2.25 installer-addon-plugin:1.0.4 installer-coreplus-plugin:1.0.8 installer-datahub-plugin:1.0.6 installer-bootstrap-plugin:1.4.30

Downloading file:/D:/Hybris/HybrisVersion62/installer/gradle/wrapper/gradle-2.2.1-bin.zip .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. Unzipping C:\Users\npenuela.gradle\wrapper\dists\gradle-2.2.1-bin\q4mdjaulunnupee7ttflj52el\gradle-2.2.1-bin.zip to C:\Users\npenuela.gradle\wrapper\dists\gradle-2.2.1-bin\q4mdjaulunnupee7ttflj52el :recipes/b2b_acc:setup FAILED

FAILURE: Build failed with an exception.

  • Where: Build file 'D:\Hybris\HybrisVersion62\installer\recipes\b2b_acc\build.gradle' line: 58

  • What went wrong: Execution failed for task ':recipes/b2b_acc:setup'.

    Failed to apply plugin [id 'installer-platform-plugin'] Platform home not found. You are running installer in out of commercesuite scope. Use -P parameter to configure platform home.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 23.454 secs Problem with java process - finished with non-zero exit code (1)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi all,

I found the error , the reason is that the yb2baccelerator directory exist, because I am installing the b2b_acc_plus also, because I need to use the addons for b2b.

before install b2b addon with install.bat -r b2b_acc_plus , you must to delete de yb2baccelerator directory, and I continued with the installation and all function ok.

Thanks for your help.

Answers (3)

Answers (3)

Former Member
0 Likes

HI all,

I try with the two answers , and at the end , i use the debug option and the error is : Thanks for your help. 17:34:45.463 [QUIET] [system.out] [copy] Copying 1981 files to D:\Hybris\HybrisVersion62\hybris\temp\hybris\extgen 17:35:07.180 [QUIET] [system.out] [copy] Copied 376 empty directories to 1 empty directory under D:\Hybris\HybrisVersion62\hybris\temp\hybris\extgen 17:35:32.998 [QUIET] [system.out] [copy] Copying 1981 files to D:\Hybris\HybrisVersion62\hybris\temp\hybris\extgen_final 17:35:51.181 [ERROR] [system.err] 17:35:51.197 [ERROR] [system.err] BUILD FAILED 17:35:51.213 [ERROR] [system.err] D:\Hybris\HybrisVersion62\hybris\bin\platform\build.xml:113: The following error occurred while executing this line: 17:35:51.233 [ERROR] [system.err] D:\Hybris\HybrisVersion62\hybris\bin\platform\resources\ant\extgen.xml:289: The following error occurred while executing this line: 17:35:51.249 [ERROR] [system.err] D:\Hybris\HybrisVersion62\hybris\bin\platform\resources\ant\extgen.xml:185: Directory D:\Hybris\HybrisVersion62\hybris\bin/custom/yb2bacceleratorstorefront already exists. 17:35:51.273 [ERROR] [system.err] 17:35:51.289 [ERROR] [system.err] Total time: 1 minute 29 seconds 17:35:51.605 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED 17:35:51.621 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'cmd'' finished with exit value 1 (state: FAILED) 17:35:51.657 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':recipes/b2b_acc:setup' 17:35:51.698 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :recipes/b2b_acc:setup FAILED 17:35:51.722 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :recipes/b2b_acc:setup (Thread[main,5,main]) completed. Took 1 mins 42.28 secs. 17:35:51.742 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 1 mins 42.28 secs, idle: 0.036 secs 17:35:51.766 [ERROR] [org.gradle.BuildExceptionReporter] 17:35:51.778 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. 17:35:51.798 [ERROR] [org.gradle.BuildExceptionReporter] 17:35:51.806 [ERROR] [org.gradle.BuildExceptionReporter] Where: 17:35:51.814 [ERROR] [org.gradle.BuildExceptionReporter] Build file 'D:\Hybris\HybrisVersion62\installer\recipes\b2b_acc\build.gradle' line: 63 17:35:51.826 [ERROR] [org.gradle.BuildExceptionReporter] 17:35:51.838 [ERROR] [org.gradle.BuildExceptionReporter] What went wrong: 17:35:51.850 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':recipes/b2b_acc:setup'. 17:35:51.862 [ERROR] [org.gradle.BuildExceptionReporter] > external process returned non-zero exit code, command: [cmd, /c, set "ANT_OPTS=-Xmx1024m" & set "PLATFORM_HOME=D:\Hybris\HybrisVersion62\hybris\bin\platform" & set "ANT_HOME=D:\Hybris\HybrisVersion62\hybris\bin\platform\apache-ant-1.9.1" & set "PATH=D:\Hybris\HybrisVersion62\hybris\bin\platform\apache-ant-1.9.1\bin;%PATH%" & ant extgen -Dinput.template=yacceleratorstorefront -Dinput.name=yb2bacceleratorstorefront -Dinput.package=de.hybris.platform.yb2bacceleratorstorefront] 17:35:51.898 [ERROR] [org.gradle.BuildExceptionReporter] 17:35:51.906 [ERROR] [org.gradle.BuildExceptionReporter] * Try: 17:35:51.914 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. 17:35:51.930 [LIFECYCLE] [org.gradle.BuildResultLogger] 17:35:51.938 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED 17:35:51.950 [LIFECYCLE] [org.gradle.BuildResultLogger] 17:35:51.958 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 1 mins 50.959 secs 17:35:51.970 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for settings file 'D:\Hybris\HybrisVersion62\installer\settings.gradle' (C:\Users\npenuela.gradle\caches\2.2.1\scripts\settings_8dryxdl1wlcxywel8kzxz2xd3\SettingsScript\buildscript). 17:35:51.986 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for settings file 'D:\Hybris\HybrisVersion62\installer\settings.gradle' (C:\Users\npenuela.gradle\caches\2.2.1\scripts\settings_8dryxdl1wlcxywel8kzxz2xd3\SettingsScript\no_buildscript). 17:35:52.014 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file 'D:\Hybris\HybrisVersion62\installer\build.gradle' (C:\Users\npenuela.gradle\caches\2.2.1\scripts\build_9cm6sjuje8jnp2xfnqmmhm9r5\ProjectScript\buildscript). 17:35:52.026 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file 'D:\Hybris\HybrisVersion62\installer\build.gradle' (C:\Users\npenuela.gradle\caches\2.2.1\scripts\build_9cm6sjuje8jnp2xfnqmmhm9r5\ProjectScript\no_buildscript). 17:35:52.050 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file 'D:\Hybris\HybrisVersion62\installer\recipes\b2b_acc\build.gradle' (C:\Users\npenuela.gradle\caches\2.2.1\scripts\build_978ckrmlohxywev5isi1dyjw9\ProjectScript\buildscript). 17:35:52.066 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file 'D:\Hybris\HybrisVersion62\installer\recipes\b2b_acc\build.gradle' (C:\Users\npenuela.gradle\caches\2.2.1\scripts\build_978ckrmlohxywev5isi1dyjw9\ProjectScript\no_buildscript). 17:35:52.082 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (C:\Users\npenuela.gradle\caches\modules-2). 17:35:52.098 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Plugin Resolution Cache (C:\Users\npenuela.gradle\caches\2.2.1\plugin-resolution) was closed 0 times. 17:35:52.110 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache task history cache (D:\Hybris\HybrisVersion62\installer.gradle\2.2.1\taskArtifacts) was closed 0 times. 17:35:52.146 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs) 17:35:52.170 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolved configuration cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs) 17:35:52.182 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 2 resolution results binary files in 0.048 secs 17:35:52.198 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] In-memory dependency metadata cache closed. Repos cached: 1, cache instances: 1, modules served from cache: 0, artifacts: 0 Problem with java process - finished with non-zero exit code (1) D:\Hybris\HybrisVersion62\installer>

Former Member
0 Likes

Hi ,

You can try first set the command "setantenv.bat" under the D:/Hybris/HybrisVersion62/hybris/bin/platform after that in the same cmd prompt you can Install/Initialization/Start recipes under the D:\Hybris\HybrisVersion62\installer> using the below commands.

To install->install.bat -r recipe-name setup

To initialize->install.bat -r recipe-name initialize

To start->install.bat -r recipe-name start

Thanks, Rakesh.

kaukrish
Discoverer
0 Likes

Try setting your platform home as well using the -P option and give a try .

Example - install.bat -r b2b_acc -P "D:/Hybris/HybrisVersion62/hybris/bin/platform" (Assuming that this is your platform path)