when I start to install CCS it works normall untill it went to install com.ti.debug.linux... and it stucks at this line.
I have opened task manager to watch the activity and it just runs some java then stuck.
03/22/2017 00:04:35(GMT) - my - creating constructor MSP-EXP430G2 MSP-EXP430FR5739 MSP-EXP430FR4133 MSP-EXP430F5438 EZ430-F2013 EZ430-CHRONOS image1 image2 image3 image4 image5 image6
03/22/2017 00:04:35(GMT) - Validation::linuxGlibCheck - LD_LIBRARY_PATH == :/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/tcl/lib
03/22/2017 00:04:35(GMT) - Validation::linuxGlibCheck - tempLD == {}
03/22/2017 00:04:35(GMT) - Validation::linuxGlibCheck - cmd = /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/dependency-checker/check_depends.sh --ldpath
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - ran /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/dependency-checker/check_depends.sh --ldpath :Installed versions of glibc and glibcxx: 2.25, N/A
Required versions of glibc and glibcxx: 2.15, GLIBCXX_3.4.19
GLIBC_INSTALLED: 2.25
GLIBC_REQUIRED: 2.15
Checking availability of libraries in ext-depends.txt ...
Done.
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - Line: Installed versions of glibc and glibcxx: 2.25, N/A
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - Line: Required versions of glibc and glibcxx: 2.15, GLIBCXX_3.4.19
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - Line: GLIBC_INSTALLED: 2.25
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - GLIBC_INSTALLED: 2.25
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - Line: GLIBC_REQUIRED: 2.15
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - GLIBC_REQUIRED: 2.15
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - Line: Checking availability of libraries in ext-depends.txt ...
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - Line: Done.
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck - Installed version 2.25 is greater than or equal to 2.15
03/22/2017 00:04:36(GMT) - Validation::linuxGlibCheck -
03/22/2017 00:04:36(GMT) - Validation::linuxLibChecks - LD_LIBRARY_PATH == :/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/tcl/lib
03/22/2017 00:04:36(GMT) - Validation::linuxLibChecks - tempLD == {}
03/22/2017 00:04:36(GMT) - Validation::linuxLibChecks - cmd = /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/dependency-checker/ldcheck
03/22/2017 00:04:37(GMT) - Validation::linuxLibChecks - ran /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/dependency-checker/ldcheck:
03/22/2017 00:04:37(GMT) - Validation::linuxLibChecks - cmd = /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/dependency-checker/check_depends.sh --ldpath
03/22/2017 00:04:38(GMT) - Validation::linuxLibChecks - ran /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/dependency-checker/check_depends.sh --ldpath :Installed versions of glibc and glibcxx: 2.25, N/A
Required versions of glibc and glibcxx: 2.15, GLIBCXX_3.4.19
GLIBC_INSTALLED: 2.25
GLIBC_REQUIRED: 2.15
Checking availability of libraries in ext-depends.txt ...
Done.
03/22/2017 00:04:38(GMT) - Validation::linuxLibChecks - Line: Installed versions of glibc and glibcxx: 2.25, N/A
03/22/2017 00:04:38(GMT) - Validation::linuxLibChecks - Line: Required versions of glibc and glibcxx: 2.15, GLIBCXX_3.4.19
03/22/2017 00:04:38(GMT) - Validation::linuxLibChecks - Line: GLIBC_INSTALLED: 2.25
03/22/2017 00:04:38(GMT) - Validation::linuxLibChecks - Line: GLIBC_REQUIRED: 2.15
03/22/2017 00:04:38(GMT) - Validation::linuxLibChecks - Line: Checking availability of libraries in ext-depends.txt ...
03/22/2017 00:04:38(GMT) - Validation::linuxLibChecks - Line: Done.
03/22/2017 00:04:45(GMT) - ::installDirPane0 - InstallDir selected: /home/islam/ti
03/22/2017 00:04:45(GMT) - my - numRootsSelected 0
03/22/2017 00:04:45(GMT) - my - numRootsSelected 0
03/22/2017 00:04:45(GMT) - my - numRootsSelected 0
03/22/2017 00:04:48(GMT) - my - numRootsSelected 1
03/22/2017 00:04:49(GMT) - my - numRootsSelected 2
03/22/2017 00:05:11(GMT) - writeDebugFile -
Install Information:
03/22/2017 00:05:11(GMT) - writeDebugFile - Install Version: 7.1.0.00016
03/22/2017 00:05:11(GMT) - writeDebugFile - Install Source : /home/islam/Downloads/CCS7.1.0.00016_linux-x64
03/22/2017 00:05:11(GMT) - writeDebugFile - Install Temp : /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0
03/22/2017 00:05:11(GMT) - writeDebugFile - Install Type : Offline
03/22/2017 00:05:11(GMT) - writeDebugFile - OS : Linux
03/22/2017 00:05:11(GMT) - writeDebugFile - OS Name : Unknown Linux
03/22/2017 00:05:11(GMT) - writeDebugFile - OS Version : 4.10.3-1-ARCH
03/22/2017 00:05:11(GMT) - writeDebugFile - OS Platform : unix
03/22/2017 00:05:11(GMT) - writeDebugFile - : 64-bit
03/22/2017 00:05:11(GMT) - ::programArgs0 - OSD: UnknownLinux-64-bit
03/22/2017 00:05:11(GMT) - writeDebugFile - : UnknownLinux-64-bit
03/22/2017 00:05:11(GMT) - writeDebugFile - User ID : islam
03/22/2017 00:05:11(GMT) - writeDebugFile - Timezone : EET
03/22/2017 00:05:11(GMT) - writeDebugFile - IPAddress :
03/22/2017 00:05:11(GMT) - writeDebugFile - Update/Rerun : 0
03/22/2017 00:05:11(GMT) - writeDebugFile - Command line : installersrc /home/islam/Downloads/CCS7.1.0.00016_linux-x64 installertmp /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0 buildid 7.1.0.00016 installer /home/islam/Downloads/CCS7.1.0.00016_linux-x64/ccs_setup_linux64_7.1.0.00016.bin bitness 64-bit os linux-x64 osname {Unknown Linux} spversion NONE timestamp 20170322020429 AVon false
03/22/2017 00:05:11(GMT) - writeDebugFile - CCS_WARNING: {Failed to locate system libraries required for CCS operation:
}
03/22/2017 00:05:11(GMT) - writeDebugFile -
Product families selected:
03/22/2017 00:05:11(GMT) - writeDebugFile - PF_MSP430
03/22/2017 00:05:11(GMT) - writeDebugFile - PF_TM4C
03/22/2017 00:05:11(GMT) - writeDebugFile -
Components to be installed:
03/22/2017 00:05:11(GMT) - writeDebugFile - EMU_TI
03/22/2017 00:05:11(GMT) - writeDebugFile - IDE_MSP430
03/22/2017 00:05:11(GMT) - writeDebugFile - MSP430_BUILD_DEBUG
03/22/2017 00:05:11(GMT) - writeDebugFile - MSP430_GCC_SUPPORT
03/22/2017 00:05:11(GMT) - writeDebugFile - EMU_MSP430
03/22/2017 00:05:11(GMT) - writeDebugFile - TIVA_STELLARIS_DRIVERS
03/22/2017 00:05:11(GMT) - writeDebugFile - JRE
03/22/2017 00:05:11(GMT) - writeDebugFile - P2APP
03/22/2017 00:05:11(GMT) - writeDebugFile - ECLIPSE
03/22/2017 00:05:11(GMT) - writeDebugFile - ECLIPSECORE
03/22/2017 00:05:11(GMT) - writeDebugFile - P2TOOLS
03/22/2017 00:05:11(GMT) - writeDebugFile - GMF
03/22/2017 00:05:11(GMT) - writeDebugFile - IDE_MAIN
03/22/2017 00:05:11(GMT) - writeDebugFile - IDE_WORKFLOW
03/22/2017 00:05:11(GMT) - writeDebugFile - DVT_COMMON
03/22/2017 00:05:11(GMT) - writeDebugFile - DVT_UIA
03/22/2017 00:05:11(GMT) - writeDebugFile - DVT_VIA_CCS
03/22/2017 00:05:11(GMT) - writeDebugFile - TIREX
03/22/2017 00:05:11(GMT) - writeDebugFile - XULRUNNER
03/22/2017 00:05:11(GMT) - writeDebugFile - INSTALLER
03/22/2017 00:05:11(GMT) - writeDebugFile - IDE_CHROME
03/22/2017 00:05:11(GMT) - writeDebugFile - IDE_TOOLS_COMMON
03/22/2017 00:05:11(GMT) - writeDebugFile - IDE_GC
03/22/2017 00:05:11(GMT) - writeDebugFile - TARGET_CONTENT_CORE
03/22/2017 00:05:11(GMT) - writeDebugFile - TARGET_CONTENT_CORE_LEGACY
03/22/2017 00:05:11(GMT) - writeDebugFile - NODEJS
03/22/2017 00:05:11(GMT) - writeDebugFile - PINMUX
03/22/2017 00:05:11(GMT) - writeDebugFile - DS
03/22/2017 00:05:11(GMT) - writeDebugFile - DS_FLASH
03/22/2017 00:05:11(GMT) - writeDebugFile - CLOUDAGENT
03/22/2017 00:05:11(GMT) - writeDebugFile - MSP430_CGT_HELP
03/22/2017 00:05:11(GMT) - writeDebugFile - CGT_DEFAULTLIBS_MSP430
03/22/2017 00:05:11(GMT) - writeDebugFile - DMED
03/22/2017 00:05:11(GMT) - writeDebugFile - DVT_ENERGYTRACE
03/22/2017 00:05:11(GMT) - writeDebugFile - IDE_ARM
03/22/2017 00:05:11(GMT) - writeDebugFile - DVT_TRACE
03/22/2017 00:05:11(GMT) - writeDebugFile - TIVA_TM4C
03/22/2017 00:05:11(GMT) - writeDebugFile - TIVA_TM4E
03/22/2017 00:05:11(GMT) - writeDebugFile - ARM_CGT_HELP
03/22/2017 00:05:11(GMT) - writeDebugFile - CGT_DEFAULTLIBS_TMS470
03/22/2017 00:05:11(GMT) - writeDebugFile - GCC_ARM_COMPILER
03/22/2017 00:05:11(GMT) - my - Finish Status Num of families selected: 2 ; num families available: 20
03/22/2017 00:05:11(GMT) - ::programArgs128 - OSD: UnknownLinux-64-bit
03/22/2017 00:05:11(GMT) - my - installdir for ARM_CGT_HELP: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for C2000_CGT_HELP: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for C6000_CGT_HELP: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - Did not find matching component in InstallIni CCS_DOC. Using Defaults.
03/22/2017 00:05:11(GMT) - my - Did not find matching component in InstallIni CCS_LAUNCHER. Using Defaults.
03/22/2017 00:05:11(GMT) - my - Did not find matching component in InstallIni CCS_UTILS. Using Defaults.
03/22/2017 00:05:11(GMT) - my - installdir for DVT_COMMON: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for DVT_ENERGYTRACE: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for DVT_TRACE: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for DVT_UIA: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for DVT_VIA_CCS: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for ECLIPSE: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for EMU_SD: /home/islam/ti/ccsv7/ccs_base
03/22/2017 00:05:11(GMT) - my - installdir for IDE_ARM: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for IDE_C2000: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for IDE_C5500: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for IDE_C6000: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for IDE_CHROME: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for IDE_GC: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for IDE_MAIN: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for IDE_MSP430: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for IDE_TOOLS_COMMON: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for IDE_WORKFLOW: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for MSP430_BUILD_DEBUG: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for MSP430_CGT_HELP: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for MSP430_GCC_SUPPORT: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for MSP432_BUILD_DEBUG: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for P2APP: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - installdir for P2TOOLS: /home/islam/ti/ccsv7/
03/22/2017 00:05:11(GMT) - my - Did not find matching component in InstallIni TARGETDB_DEF_PROPS. Using Defaults.
03/22/2017 00:05:11(GMT) - my - installdir for TARGET_CONTENT_CORE: /home/islam/ti/ccsv7/..
03/22/2017 00:05:11(GMT) - my - installdir for TARGET_CONTENT_CORE_LEGACY: /home/islam/ti/ccsv7/..
03/22/2017 00:05:11(GMT) - Util::getProperty - No /home/islam/ti/ccsv7/eclipse/ccs.properties file found
03/22/2017 00:05:11(GMT) - Util::getProperty - No /home/islam/ti/ccsv7/eclipse/ccs.properties file found
03/22/2017 00:05:12(GMT) - ProgressPane::Run - non-threaded
03/22/2017 00:05:12(GMT) - ProgressPane::Run - RunInstall /home/islam/ti/ccsv7/eclipse/ccs_config.xml 0 0 0 0 /home/islam/ti/ccsv7/install_logs/20170322020429/ccs_setup_7.1.0.00016_install.log ::progressPane0 -1
03/22/2017 00:05:12(GMT) - RunMain - CCS_INFO: Started with params pConfigFile=/home/islam/ti/ccsv7/eclipse/ccs_config.xml pProfiling=0 pUpdate=0 logfile=/home/islam/ti/ccsv7/install_logs/20170322020429/ccs_setup_7.1.0.00016_install.log progress=::progressUpdate0
03/22/2017 00:05:12(GMT) - RunMain - CCS_INFO: encoding = utf-8
03/22/2017 00:05:12(GMT) - readConfigFile - Start installing components:
03/22/2017 00:05:12(GMT) - readConfigFile - read config file /home/islam/ti/ccsv7/eclipse/ccs_config.xml
03/22/2017 00:05:12(GMT) - readConfigFile - found /home/islam/ti/ccsv7/eclipse/ccs_config.xml
03/22/2017 00:05:12(GMT) - readConfigFile - Parsing Root Elements
03/22/2017 00:05:12(GMT) - readConfigFile - Done Parsing
03/22/2017 00:05:12(GMT) - readConfigFile - CCSDIR=/home/islam/ti/ccsv7
03/22/2017 00:05:12(GMT) - readConfigFile - EclipseDir=/home/islam/ti/ccsv7/eclipse
03/22/2017 00:05:12(GMT) - readConfigFile - InstallDir=/home/islam/ti
03/22/2017 00:05:12(GMT) - readConfigFile - TempDir=/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0
03/22/2017 00:05:12(GMT) - readConfigFile - platform=linux-x64
03/22/2017 00:05:12(GMT) - readConfigFile - LocalBaseRepository=/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo
03/22/2017 00:05:12(GMT) - readConfigFile - baserepourl=/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo
03/22/2017 00:05:12(GMT) - readConfigFile - featureurl=/home/islam/Downloads/CCS7.1.0.00016_linux-x64/featurerepo
03/22/2017 00:05:12(GMT) - readConfigFile - LocalRepository_Exists=1
03/22/2017 00:05:12(GMT) - readConfigFile - componentinstaller=false
03/22/2017 00:05:12(GMT) - readConfigFile - eclipseexe=eclipse
03/22/2017 00:05:12(GMT) - readConfigFile - in install components
03/22/2017 00:05:12(GMT) - readUserProfile - userprofile =
03/22/2017 00:05:12(GMT) - RunMain - Update = 0
03/22/2017 00:05:12(GMT) - downloadIfRequired - deleted /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/jre_root.gtk.linux.x86_64_1.8.0.122
03/22/2017 00:05:12(GMT) - downloadIfRequired - copying /home/islam/Downloads/CCS7.1.0.00016_linux-x64/featurerepo/binary/jre_root.gtk.linux.x86_64_1.8.0.122
03/22/2017 00:05:12(GMT) - downloadIfRequired - copied /home/islam/Downloads/CCS7.1.0.00016_linux-x64/featurerepo/binary/jre_root.gtk.linux.x86_64_1.8.0.122 to /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/jre_root.gtk.linux.x86_64_1.8.0.122
03/22/2017 00:05:12(GMT) - downloadIfRequired - File /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/jre_root.gtk.linux.x86_64_1.8.0.122 already exists. Not attempting to download
03/22/2017 00:05:12(GMT) - extract - cmd = "unzip" -q -o -d "/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0" "/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/jre_root.gtk.linux.x86_64_1.8.0.122"
03/22/2017 00:05:14(GMT) - extract - successfully unzipped /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/jre_root.gtk.linux.x86_64_1.8.0.122
03/22/2017 00:05:14(GMT) - extract - cmd = "unzip" -q -o -d "/home/islam/ti/ccsv7/eclipse" "/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/downloads/jre-8u112-linux-x64.zip"
03/22/2017 00:05:21(GMT) - extract - successfully unzipped /tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/downloads/jre-8u112-linux-x64.zip
03/22/2017 00:05:21(GMT) - installEclipse - In InstallEclipse for linux-x64
03/22/2017 00:05:21(GMT) - downloadIfRequired - File /home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/eclipse_core_4.5.1.custom-160121.zip already exists. Not attempting to download
03/22/2017 00:05:21(GMT) - extract - cmd = "unzip" -q -o -d "/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0" "/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/eclipse_core_4.5.1.custom-160121.zip"
03/22/2017 00:05:22(GMT) - extract - successfully unzipped /home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/eclipse_core_4.5.1.custom-160121.zip
03/22/2017 00:05:22(GMT) - findLauncher - launcher version = 1.3.100.v20150511-1540
03/22/2017 00:05:22(GMT) - installEclipse - CCS_INFO: eclipse does not exist
03/22/2017 00:05:22(GMT) - installEclipse - using /home/islam/ti/ccsv7/eclipse/jre/bin/java
03/22/2017 00:05:22(GMT) - installEclipse - "/home/islam/ti/ccsv7/eclipse/jre/bin/java" -Xmx512m -Dorg.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=30000 -Dorg.eclipse.ecf.provider.filetransfer.retrieve.closeTimeout=10000 -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=30000 "-Dosgi.configuration.area=/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/eclipse/cfg" "-Dosgi.instance.area=/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/eclipse/ws" -jar "/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar" -application org.eclipse.equinox.p2.director -repository "file:/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/eclipserepo" -installIU org.eclipse.platform.ide,org.eclipse.help.feature.group,org.eclipse.equinox.p2.discovery.feature.feature.group,org.eclipse.equinox.p2.user.ui.feature.group,org.eclipse.cdt.feature.group,org.eclipse.cdt.debug.ui.memory.feature.group,org.eclipse.tm.terminal.feature.feature.group,org.eclipse.epp.mpc.feature.group,org.eclipse.egit.feature.group,org.eclipse.cdt.build.crossgcc.feature.group,org.eclipse.rse.feature.group,org.eclipse.cdt.launch.remote.feature.group,org.eclipse.gef.feature.group,gnu.io.rxtx.feature.group,org.eclipse.gmf.runtime.thirdparty.feature.group -destination "/home/islam/ti/ccsv7/eclipse/" -profile epp.package.cpp -profileProperties org.eclipse.update.install.features=true -bundlepool "/home/islam/ti/ccsv7/eclipse/" -p2.os linux -p2.ws gtk -p2.arch x86_64 -roaming
03/22/2017 00:05:22(GMT) - runEclipseApp - running cmd "/home/islam/ti/ccsv7/eclipse/jre/bin/java" -Xmx512m -Dorg.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=30000 -Dorg.eclipse.ecf.provider.filetransfer.retrieve.closeTimeout=10000 -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=30000 "-Dosgi.configuration.area=/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/eclipse/cfg" "-Dosgi.instance.area=/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/eclipse/ws" -jar "/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar" -application org.eclipse.equinox.p2.director -repository "file:/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/eclipserepo" -installIU org.eclipse.platform.ide,org.eclipse.help.feature.group,org.eclipse.equinox.p2.discovery.feature.feature.group,org.eclipse.equinox.p2.user.ui.feature.group,org.eclipse.cdt.feature.group,org.eclipse.cdt.debug.ui.memory.feature.group,org.eclipse.tm.terminal.feature.feature.group,org.eclipse.epp.mpc.feature.group,org.eclipse.egit.feature.group,org.eclipse.cdt.build.crossgcc.feature.group,org.eclipse.rse.feature.group,org.eclipse.cdt.launch.remote.feature.group,org.eclipse.gef.feature.group,gnu.io.rxtx.feature.group,org.eclipse.gmf.runtime.thirdparty.feature.group -destination "/home/islam/ti/ccsv7/eclipse/" -profile epp.package.cpp -profileProperties org.eclipse.update.install.features=true -bundlepool "/home/islam/ti/ccsv7/eclipse/" -p2.os linux -p2.ws gtk -p2.arch x86_64 -roaming
03/22/2017 00:07:56(GMT) - runEclipseApp - Installing org.eclipse.platform.ide 4.6.0.I20160607-1100.
Installing org.eclipse.help.feature.group 2.2.0.v20160606-1100.
Installing org.eclipse.equinox.p2.discovery.feature.feature.group 1.0.400.v20160504-1450.
Installing org.eclipse.equinox.p2.user.ui.feature.group 2.2.200.v20160606-1311.
Installing org.eclipse.cdt.feature.group 9.0.0.201606062011.
Installing org.eclipse.cdt.debug.ui.memory.feature.group 9.0.0.201606062011.
Installing org.eclipse.tm.terminal.feature.feature.group 4.1.0.201606052351.
Installing org.eclipse.epp.mpc.feature.group 1.5.0.v20160608-1804.
Installing org.eclipse.egit.feature.group 4.4.0.201606070830-r.
Installing org.eclipse.cdt.build.crossgcc.feature.group 9.0.0.201606062011.
Installing org.eclipse.rse.feature.group 3.7.1.201603211627.
Installing org.eclipse.cdt.launch.remote.feature.group 9.0.0.201606062011.
Installing org.eclipse.gef.feature.group 3.11.0.201606061308.
Installing gnu.io.rxtx.feature.group 2.1.8.0_201606281300.
Installing org.eclipse.gmf.runtime.thirdparty.feature.group 1.10.0.201606071959.
Operation completed in 142787 ms.
03/22/2017 00:07:56(GMT) - runEclipseApp - done.
03/22/2017 00:07:56(GMT) - installEclipse - eclipse installed successfully, looking for binary
03/22/2017 00:07:56(GMT) - installEclipse - new state: feature installed
03/22/2017 00:07:56(GMT) - downloadIfRequired - File /home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/updateinstaller.zip already exists. Not attempting to download
03/22/2017 00:07:56(GMT) - extract - cmd = "unzip" -q -o -d "/home/islam/ti/ccsv7/eclipse" "/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/updateinstaller.zip"
03/22/2017 00:07:56(GMT) - extract - successfully unzipped /home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/updateinstaller.zip
03/22/2017 00:07:56(GMT) - installP2app - "/home/islam/ti/ccsv7/eclipse/eclipse" -application org.eclipse.equinox.p2.director -repository "file:/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/p2appfRepo" -installiu com.ti.ccstudio.p2appf.feature.group -nosplash
03/22/2017 00:07:56(GMT) - runEclipseApp - running cmd "/home/islam/ti/ccsv7/eclipse/eclipse" -application org.eclipse.equinox.p2.director -repository "file:/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/p2appfRepo" -installiu com.ti.ccstudio.p2appf.feature.group -nosplash
03/22/2017 00:08:28(GMT) - runEclipseApp - Installing com.ti.ccstudio.p2appf.feature.group 6.0.0.201703152000.
Operation completed in 7323 ms.
03/22/2017 00:08:28(GMT) - runEclipseApp - done.
03/22/2017 00:08:28(GMT) - removeURL - cmdline = "/home/islam/ti/ccsv7/eclipse/eclipse" -data "/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/workspace" -application com.ti.ccstudio.p2app -removerepo "file:/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/p2appfRepo" -nosplash
03/22/2017 00:08:48(GMT) - removeURL - successfully ran "/home/islam/ti/ccsv7/eclipse/eclipse" -data "/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/workspace" -application com.ti.ccstudio.p2app -removerepo "file:/home/islam/Downloads/CCS7.1.0.00016_linux-x64/baserepo/p2appfRepo" -nosplash
03/22/2017 00:08:48(GMT) - processOtherFeatures - length of features = 75; 1; 0
03/22/2017 00:08:48(GMT) - processOtherFeatures - processing JRE
03/22/2017 00:08:48(GMT) - processOtherFeatures - JRE state: feature installed; does not need to be processed
03/22/2017 00:08:48(GMT) - processOtherFeatures - length of features = 75; 2; 0
03/22/2017 00:08:48(GMT) - processOtherFeatures - processing ECLIPSECORE
03/22/2017 00:08:48(GMT) - processOtherFeatures - ECLIPSECORE state: feature installed; does not need to be processed
03/22/2017 00:08:48(GMT) - processOtherFeatures - length of features = 75; 3; 0
03/22/2017 00:08:48(GMT) - processOtherFeatures - processing ECLIPSE
03/22/2017 00:08:48(GMT) - processOtherFeatures - ECLIPSE state: feature installed; does not need to be processed
03/22/2017 00:08:48(GMT) - processOtherFeatures - length of features = 75; 4; 0
03/22/2017 00:08:48(GMT) - processOtherFeatures - processing DS
03/22/2017 00:08:48(GMT) - processOtherFeatures - state:initial
03/22/2017 00:08:48(GMT) - processOtherFeatures - binary:ti_dspack_ibsetup_linux-x64_7.1.0.1971.run
03/22/2017 00:08:48(GMT) - processOtherFeatures - location = /home/islam/Downloads/CCS7.1.0.00016_linux-x64/featurerepo
03/22/2017 00:08:48(GMT) - processOtherFeatures - newloc:file:/home/islam/Downloads/CCS7.1.0.00016_linux-x64/featurerepo
03/22/2017 00:08:48(GMT) - processOtherFeatures - counting = 6; 4 75
03/22/2017 00:08:48(GMT) - processOtherFeatures - fullrepolist file:/home/islam/Downloads/CCS7.1.0.00016_linux-x64/featurerepo
03/22/2017 00:08:48(GMT) - processOtherFeatures - fullfeaturelist com.ti.ccstudio.debugserver.linux.feature.group
03/22/2017 00:08:48(GMT) - processOtherFeatures - found_msp_repo: false
03/22/2017 00:08:48(GMT) - runEclipseApp - running cmd "/home/islam/ti/ccsv7/eclipse/eclipse" -data "/tmp/ccs_9126e521-a4d2-4701-753f-7c660d522ea0/workspace" -application com.ti.ccstudio.p2app -repository "file:/home/islam/Downloads/CCS7.1.0.00016_linux-x64/featurerepo" -installiu com.ti.ccstudio.debugserver.linux.feature.group -nosplash
03/22/2017 00:09:19(GMT) - runEclipseApp - Installing com.ti.ccstudio.debugserver.linux.feature.group 7.1.0.1971.
Downloading com.ti.ccstudio.debugserver.linux
Downloading com.ti.ccstudio.debugserver.linux_root.gtk.linux.x86_64
Installing com.ti.ccstudio.debugserver.linux.feature.group
Installing com.ti.ccstudio.debugserver.linux.feature.jar
Installing com.ti.ccstudio.debugserver.linux_root.gtk.linux.x86_64
Configuring com.ti.ccstudio.debugserver.linux.feature.group
Configuring com.ti.ccstudio.debugserver.linux.feature.jar
Configuring com.ti.ccstudio.debugserver.linux_root.gtk.linux.x86_64
Preparing to commit the provisioning operation.
Committing the provisioning operation.
Operation completed in 19338 ms.
03/22/2017 00:09:19(GMT) - runEclipseApp - done.
03/22/2017 00:09:19(GMT) - processOtherFeatures - Processing DS to install
03/22/2017 00:09:19(GMT) - processOtherFeatures - current state = initial
03/22/2017 00:09:19(GMT) - processOtherFeatures - false false initial
03/22/2017 00:09:19(GMT) - processOtherFeatures - location = /home/islam/Downloads/CCS7.1.0.00016_linux-x64/featurerepo
03/22/2017 00:09:19(GMT) - processOtherFeatures - Binary=/home/islam/ti/ccsv7/eclipse/downloads/ti_dspack_ibsetup_linux-x64_7.1.0.1971.run
03/22/2017 00:09:19(GMT) - processOtherFeatures - Setting state to feature registered
03/22/2017 00:09:19(GMT) - get_percentage - values 15722706 701337160 35
03/22/2017 00:09:19(GMT) - get_percentage - increase by 0.7846364650063602
03/22/2017 00:09:19(GMT) - processOtherFeatures - CCS_INFO: binary ti_dspack_ibsetup_linux-x64_7.1.0.1971.run; ext = .run
03/22/2017 00:09:19(GMT) - InstallBins - .run: ti_dspack_ibsetup_linux-x64_7.1.0.1971.run --mode unattended --ccs true --prefix "/home/islam/ti/ccsv7" --eclipseprefix "/home/islam/ti/ccsv7/eclipse"
03/22/2017 00:09:19(GMT) - InstallBins - cmd = "/home/islam/ti/ccsv7/eclipse/downloads/ti_dspack_ibsetup_linux-x64_7.1.0.1971.run" --mode unattended --ccs true --prefix "/home/islam/ti/ccsv7" --eclipseprefix "/home/islam/ti/ccsv7/eclipse"
03/22/2017 00:09:19(GMT) - InstallBins - CCS_INFO: Installing com.ti.ccstudio.debugserver.linux
My version is the latest CCS7.1.0.00016_linux-x64
What is wrong with the installer?
Are there better alternatives?
thanks in advance
I also experienced this hanging. On my system (Archlinux) I identified glibc-2.25 to be the cause of the problem. Downgrading to glibc-2.24 solved this issue.
Tested with CCS7.1.0.00016_linux-x64.tar.gz
Regards,
Robert
Some updates on this issue : ccs 7.4. solves glibc dependency.
Downgrading glibc can break lot of dependencies.
Another approach uses chroot, but it consumes > 6G
Some steps are missing in wiki, you have to enable multilib repo in /etc/pacman.conf (uncomment line) in order to install lib32-glibc
After, I couldn't have App Center and other embedded browser windows. To get it I modified Browser in Preferences -> Code Composer Studio to JavaFX Web kit.
Related
I am creating a Data pipeline where I fetch data from BigQuery either through Bigquery operator or google cloud library. But I am always getting an error. Following is the dag for big query operator:
from airflow import DAG
from datetime import datetime, timedelta
from airflow.contrib.operators.bigquery_operator import BigQueryOperator
from airflow.contrib.operators.bigquery_check_operator import BigQueryCheckOperator
from read_val_send1 import read,validating_hit,track_google_analytics_event,add_gcp_connection
default_args = {
"owner" : "Airflow",
"depends_on_past": False,
"start_date" : datetime(2021,5,9),
"email": ["airflow#airflow.com"],
"email_on_failure": False,
"email_on_retry": False,
"retries": 0,
"retry_delay": timedelta(seconds = 5)
}
dag = DAG("Automp", default_args = default_args, schedule_interval = "#daily", catchup = False)
activateGCP = PythonOperator(
task_id='add_gcp_connection_python',
python_callable=add_gcp_connection,
provide_context=True, dag = dag
)
BQ_CONN_ID = "my_gcp_conn"
BQ_PROJECT = 'pii-test'
BQ_DATASET = 'some_Dataset'
t1 = BigQueryCheckOperator(
task_id='bq_check',
sql='''
#standardSQL
Select * from table''',
use_legacy_sql=False,
bigquery_conn_id=BQ_CONN_ID,
dag=dag
)
activateGCP >> t1
Error
I have attached the error image
Broken DAG: [/usr/local/airflow/dags/Automp.py] No module named 'httplib2'
I am not able to install python packages in airflow as well with required.txt file. Following is compose file:
version: '2.1'
services:
redis:
image: 'redis:5.0.5'
# command: redis-server --requirepass redispass
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
# Uncomment these lines to persist data on the local filesystem.
# - PGDATA=/var/lib/postgresql/data/pgdata
# volumes:
# - ./pgdata:/var/lib/postgresql/data/pgdata
webserver:
image: puckel/docker-airflow:1.10.9
restart: always
depends_on:
- postgres
- redis
environment:
- LOAD_EX=n
- FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
- EXECUTOR=Celery
# - POSTGRES_USER=airflow
# - POSTGRES_PASSWORD=airflow
# - POSTGRES_DB=airflow
# - REDIS_PASSWORD=redispass
volumes:
- ./dags:/usr/local/airflow/dags
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
ports:
- "8080:8080"
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3
flower:
image: puckel/docker-airflow:1.10.9
restart: always
depends_on:
- redis
environment:
- EXECUTOR=Celery
# - REDIS_PASSWORD=redispass
ports:
- "5555:5555"
command: flower
scheduler:
image: puckel/docker-airflow:1.10.9
restart: always
depends_on:
- webserver
volumes:
- ./dags:/usr/local/airflow/dags
- ./requirements.txt:/requirements.txt
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
environment:
- LOAD_EX=n
- FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
- EXECUTOR=Celery
# - POSTGRES_USER=airflow
# - POSTGRES_PASSWORD=airflow
# - POSTGRES_DB=airflow
# - REDIS_PASSWORD=redispass
command: scheduler
worker:
image: puckel/docker-airflow:1.10.9
restart: always
depends_on:
- scheduler
volumes:
- ./dags:/usr/local/airflow/dags
- ./requirements.txt:/requirements.txt
# Uncomment to include custom plugins
# - ./plugins:/usr/local/airflow/plugins
environment:
- FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
- EXECUTOR=Celery
# - POSTGRES_USER=airflow
# - POSTGRES_PASSWORD=airflow
# - POSTGRES_DB=airflow
# - REDIS_PASSWORD=redispass
command: worker
My folder structure looks like this:
Folder Structure
The image that you are using does not include the httplib2 package, which is perhaps used by the imports coming from the read_val_send1 directory.
What you can do is adding the following line on your ./requirements.txt.
httplib2==0.19.1
The puckel's docker-airflow setup has an entrypoint.sh that supports pip install -r requirements.txt. So this must be sufficient.
In case something goes wrong you can always use Docker logs or Docker interactive execute bash to see what is going wrong.
I also recommend using the latest docker-compose for Airflow to have a smoother workflow.
I am building my network with 5 orderers, 1 org and 2 peers. Also 1 cli and 1 ca.
I scaled from 1 orderer to 5 implementing Raft. This is why I want to extend my network and do deeper tests on what happens with multiple peers.
The docker are running but I get some errors regarding TLS inside my orderer containers:
TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=192.168.144.4:43496
I don't understand where is the problem, because I setted up everything to implement Raft, from the crypto material to the docker compose file.
Here is the crypto-config template:
OrdererOrgs:
- Name: Orderer
Domain: APPLICATION_NAME.com
EnableNodeOUs: true
Specs:
- Hostname: orderer
- Hostname: orderer2
- Hostname: orderer3
- Hostname: orderer4
- Hostname: orderer5
PeerOrgs:
- Name: ORG_NAME
Domain: ORG_NAME.APPLICATION_NAME.com
EnableNodeOUs: true
Template: # Number of peers
Count: 2
Users:
Count: 1
Here is the configtx template:
Organizations:
- &OrdererOrg
Name: OrdererOrg
ID: OrdererMSP
MSPDir: crypto-config/ordererOrganizations/APPLICATION_NAME.com/msp
Policies:
Readers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Writers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Admins:
Type: Signature
Rule: "OR('OrdererMSP.admin')"
- &ORG_NAME
Name: MSP_NAME
ID: MSP_NAME
MSPDir: crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/msp
Policies:
Readers:
Type: Signature
Rule: "OR('MSP_NAME.admin', 'MSP_NAME.peer', 'MSP_NAME.client')"
Writers:
Type: Signature
Rule: "OR('MSP_NAME.admin', 'MSP_NAME.client')"
Admins:
Type: Signature
Rule: "OR('MSP_NAME.admin')"
AnchorPeers:
- Host: peer0.ORG_NAME.APPLICATION_NAME
Port: 7051
- Host: peer1.ORG_NAME.APPLICATION_NAME
Port: 8051
Capabilities:
Channel: &ChannelCapabilities
V1_4_3: true
V1_3: false
V1_1: false
Orderer: &OrdererCapabilities
V1_4_2: true
V1_1: false
Application: &ApplicationCapabilities
V1_4_2: true
V1_3: false
V1_2: false
V1_1: false
Application: &ApplicationDefaults
Organizations:
- *ORG_NAME
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
Capabilities:
<<: *ApplicationCapabilities
Orderer: &OrdererDefaults
OrdererType: solo
Addresses:
- orderer.APPLICATION_NAME.com:7050
BatchTimeout: 500ms
BatchSize:
MaxMessageCount: 15
AbsoluteMaxBytes: 99 MB
PreferredMaxBytes: 512 kb
Kafka:
Brokers:
- 127.0.0.1:9092
Organizations:
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Writers"
Capabilities:
<<: *OrdererCapabilities
Channel: &ChannelDefaults
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
Capabilities:
<<: *ChannelCapabilities
Profiles:
OneOrgOrdererGenesis:
<<: *ChannelDefaults
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Consortiums:
SampleConsortium:
Organizations:
- *ORG_NAME
OneOrgChannel:
<<: *ChannelDefaults
Consortium: SampleConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *ORG_NAME
SampleMultiNodeEtcdRaft:
<<: *ChannelDefaults
Capabilities:
<<: *ChannelCapabilities
Orderer:
<<: *OrdererDefaults
OrdererType: etcdraft
EtcdRaft:
Consenters:
- Host: orderer.APPLICATION_NAME.com
Port: 7050
ClientTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer.APPLICATION_NAME.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer.APPLICATION_NAME.com/tls/server.crt
- Host: orderer2.APPLICATION_NAME.com
Port: 7050
ClientTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer2.APPLICATION_NAME.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer2.APPLICATION_NAME.com/tls/server.crt
- Host: orderer3.APPLICATION_NAME.com
Port: 7050
ClientTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer3.APPLICATION_NAME.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer3.APPLICATION_NAME.com/tls/server.crt
- Host: orderer4.APPLICATION_NAME.com
Port: 7050
ClientTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer4.APPLICATION_NAME.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer4.APPLICATION_NAME.com/tls/server.crt
- Host: orderer5.APPLICATION_NAME.com
Port: 7050
ClientTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer5.APPLICATION_NAME.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer5.APPLICATION_NAME.com/tls/server.crt
Addresses:
- orderer.APPLICATION_NAME.com:7050
- orderer2.APPLICATION_NAME.com:7050
- orderer3.APPLICATION_NAME.com:7050
- orderer4.APPLICATION_NAME.com:7050
- orderer5.APPLICATION_NAME.com:7050
Organizations:
- *OrdererOrg
Capabilities:
<<: *OrdererCapabilities
Application:
<<: *ApplicationDefaults
Organizations:
- <<: *OrdererOrg
Consortiums:
SampleConsortium:
Organizations:
- *ORG_NAME
And here is the docker compose:
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
networks:
basic:
services:
ca.ORG_NAME.com:
image: hyperledger/fabric-ca:IMAGETAG
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca.ORG_NAME.com
- FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.ORG_NAME.APPLICATION_NAME.com-cert.pem
- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/CERT_AUTH_PRIVATE_KEY
ports:
- "7054:7054"
command: sh -c 'fabric-ca-server start -b admin:adminpw'
restart: always
volumes:
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/ca/:/etc/hyperledger/fabric-ca-server-config
container_name: ca.ORG_NAME.com
networks:
- basic
cli:
container_name: cli
image: hyperledger/fabric-tools:IMAGETAG
tty: true
environment:
- GOPATH=/opt/gopath
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- FABRIC_LOGGING_SPEC=info
- CORE_PEER_ID=cli
- CORE_PEER_ADDRESS=peer0.ORG_NAME.APPLICATION_NAME.com:7051
- CORE_PEER_LOCALMSPID=MSP_NAME
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/users/Admin#ORG_NAME.APPLICATION_NAME.com/msp/
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/tls/ca.crt
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: /bin/bash
restart: always
volumes:
- /var/run/:/host/var/run/
- ./../chaincode/:/opt/gopath/src/github.com/
- ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
- ./config:/etc/hyperledger/configtx/
networks:
- basic
orderer.APPLICATION_NAME.com:
container_name: orderer.APPLICATION_NAME.com
image: hyperledger/fabric-orderer:IMAGETAG
environment:
- FABRIC_LOGGING_SPEC=info
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer/msp
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/orderer
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
- ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1
- ORDERER_KAFKA_VERBOSE=true
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
command: orderer
restart: always
ports:
- 7050:7050
volumes:
- ./config/:/etc/hyperledger/configtx
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer.APPLICATION_NAME.com/:/etc/hyperledger/msp/orderer
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer.APPLICATION_NAME.com/tls/:/var/hyperledger/orderer/tls
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer0ORG_NAME
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer1.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer1ORG_NAME
# - ./ledgers/orderer.APPLICATION_NAME.com/:/var/hyperledger/production/orderer/
networks:
- basic
orderer2.APPLICATION_NAME.com:
container_name: orderer2.APPLICATION_NAME.com
image: hyperledger/fabric-orderer:IMAGETAG
environment:
- FABRIC_LOGGING_SPEC=info
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer/msp
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/orderer
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
- ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1
- ORDERER_KAFKA_VERBOSE=true
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
command: orderer
restart: always
ports:
- 8050:7050
volumes:
- ./config/:/etc/hyperledger/configtx
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer2.APPLICATION_NAME.com/:/etc/hyperledger/msp/orderer
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer2.APPLICATION_NAME.com/tls/:/var/hyperledger/orderer/tls
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer0ORG_NAME
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer1.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer1ORG_NAME
# - ./ledgers/orderer.APPLICATION_NAME.com/:/var/hyperledger/production/orderer/
networks:
- basic
orderer3.APPLICATION_NAME.com:
container_name: orderer3.APPLICATION_NAME.com
image: hyperledger/fabric-orderer:IMAGETAG
environment:
- FABRIC_LOGGING_SPEC=info
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer/msp
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/orderer
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
- ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1
- ORDERER_KAFKA_VERBOSE=true
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
command: orderer
restart: always
ports:
- 9050:7050
volumes:
- ./config/:/etc/hyperledger/configtx
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer3.APPLICATION_NAME.com/:/etc/hyperledger/msp/orderer
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer3.APPLICATION_NAME.com/tls/:/var/hyperledger/orderer/tls
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer0ORG_NAME
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer1.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer1ORG_NAME
# - ./ledgers/orderer.APPLICATION_NAME.com/:/var/hyperledger/production/orderer/
networks:
- basic
orderer4.APPLICATION_NAME.com:
container_name: orderer4.APPLICATION_NAME.com
image: hyperledger/fabric-orderer:IMAGETAG
environment:
- FABRIC_LOGGING_SPEC=info
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer/msp
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/orderer
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
- ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1
- ORDERER_KAFKA_VERBOSE=true
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
command: orderer
restart: always
ports:
- 10050:7050
volumes:
- ./config/:/etc/hyperledger/configtx
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer4.APPLICATION_NAME.com/:/etc/hyperledger/msp/orderer
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer4.APPLICATION_NAME.com/tls/:/var/hyperledger/orderer/tls
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer0ORG_NAME
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer1.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer1ORG_NAME
# - ./ledgers/orderer.APPLICATION_NAME.com/:/var/hyperledger/production/orderer/
networks:
- basic
orderer5.APPLICATION_NAME.com:
container_name: orderer5.APPLICATION_NAME.com
image: hyperledger/fabric-orderer:IMAGETAG
environment:
- FABRIC_LOGGING_SPEC=info
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer/msp
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/orderer
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
- ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1
- ORDERER_KAFKA_VERBOSE=true
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
command: orderer
restart: always
ports:
- 11050:7050
volumes:
- ./config/:/etc/hyperledger/configtx
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer5.APPLICATION_NAME.com/:/etc/hyperledger/msp/orderer
- ./crypto-config/ordererOrganizations/APPLICATION_NAME.com/orderers/orderer5.APPLICATION_NAME.com/tls/:/var/hyperledger/orderer/tls
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer0ORG_NAME
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer1.ORG_NAME.APPLICATION_NAME.com/:/etc/hyperledger/msp/peer1ORG_NAME
# - ./ledgers/orderer.APPLICATION_NAME.com/:/var/hyperledger/production/orderer/
networks:
- basic
peer0.ORG_NAME.APPLICATION_NAME.com:
container_name: peer0.ORG_NAME.APPLICATION_NAME.com
image: hyperledger/fabric-peer:IMAGETAG
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer0.ORG_NAME.APPLICATION_NAME.com
- CORE_PEER_ADDRESS=peer0.ORG_NAME.APPLICATION_NAME.com:7051
- CORE_PEER_LISTENADDRESS=0.0.0.0:7051
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052
- FABRIC_LOGGING_SPEC=info
- CORE_CHAINCODE_LOGGING_LEVEL=info
- CORE_PEER_LOCALMSPID=MSP_NAME
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=COMPOSE_PROJECT_NAME_basic
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.ORG_NAME.APPLICATION_NAME.com:8051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.ORG_NAME.APPLICATION_NAME.com:7051
- CORE_CHAINCODE_EXECUTETIMEOUT="600s"
- CORE_PEER_GRPCOPTIONS_REQUEST_TIMEOUT="600s"
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: peer node start
restart: always
# command: peer node start --peer-chaincodedev=true
ports:
- 7051:7051
- 7053:7053
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/msp:/etc/hyperledger/msp/peer
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/users:/etc/hyperledger/msp/users
- ./config:/etc/hyperledger/configtx
# - ./ledgers/peer0.ORG_NAME.APPLICATION_NAME.com/:/var/hyperledger/production/
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer0.ORG_NAME.APPLICATION_NAME.com/tls:/etc/hyperledger/fabric/tls
depends_on:
- orderer.APPLICATION_NAME.com
networks:
- basic
peer1.ORG_NAME.APPLICATION_NAME.com:
container_name: peer1.ORG_NAME.APPLICATION_NAME.com
image: hyperledger/fabric-peer:IMAGETAG
working_dir: /opt/gopath/src/github.com/hyperledger/fabric
command: peer node start
restart: always
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer1.ORG_NAME.APPLICATION_NAME.com
- CORE_PEER_ADDRESS=peer1.ORG_NAME.APPLICATION_NAME.com:8051
- CORE_PEER_LISTENADDRESS=0.0.0.0:8051
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:8052
- FABRIC_LOGGING_SPEC=info
- CORE_CHAINCODE_LOGGING_LEVEL=info
- CORE_PEER_LOCALMSPID=MSP_NAME
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.ORG_NAME.APPLICATION_NAME.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.ORG_NAME.APPLICATION_NAME.com:8051
- CORE_CHAINCODE_EXECUTETIMEOUT="600s"
- CORE_PEER_GRPCOPTIONS_REQUEST_TIMEOUT="600s"
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer1.ORG_NAME.APPLICATION_NAME.com/msp:/etc/hyperledger/msp/peer
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/users:/etc/hyperledger/msp/users
- ./config:/etc/hyperledger/configtx
# - ./ledgers/peer1.ORG_NAME.APPLICATION_NAME.com/:/var/hyperledger/production/
- ./crypto-config/peerOrganizations/ORG_NAME.APPLICATION_NAME.com/peers/peer1.ORG_NAME.APPLICATION_NAME.com/tls:/etc/hyperledger/fabric/tls
depends_on:
- orderer.APPLICATION_NAME.com
ports:
- 8051:8051
networks:
- basic
I know the docker compose is not written very well, I replacated same commands and things but at this point I would like to just let the network work and be running, next refactor and reformat code.
To run the network, I first run the generation script where the key parts are:
cryptogen generate --config=./crypto-config.yaml
configtxgen -profile SampleMultiNodeEtcdRaft -channelID $CHANNEL_NAME -outputBlock
./config/genesis.block
configtxgen -profile OneOrgChannel -outputCreateChannelTx ./config/channel.tx -channelID $CHANNEL_NAME
configtxgen -profile OneOrgChannel -outputAnchorPeersUpdate ./config/${MSP_NAME}anchors.tx -channelID $CHANNEL_NAME -asOrg $MSP_NAME
Next I run my network with docker compose. I get no error, everything goes up, but if I see the logs for the orderer I get the error I said. Of course if I also instantiate the cli and try to create the channel I get an error, for this reason I would like to fix this before going further.
Thanks in advance.
Just a very short log from orderer:
2019-11-27 08:47:24.985 UTC [orderer.consensus.etcdraft] poll -> INFO 240 1 received MsgPreVoteResp from 1 at term 1 channel=beerchannel node=1
2019-11-27 08:47:24.985 UTC [orderer.consensus.etcdraft] campaign -> INFO 241 1 [logterm: 1, index: 5] sent MsgPreVote request to 2 at term 1 channel=beerchannel node=1
2019-11-27 08:47:24.985 UTC [orderer.consensus.etcdraft] campaign -> INFO 242 1 [logterm: 1, index: 5] sent MsgPreVote request to 3 at term 1 channel=beerchannel node=1
2019-11-27 08:47:24.985 UTC [orderer.consensus.etcdraft] campaign -> INFO 243 1 [logterm: 1, index: 5] sent MsgPreVote request to 4 at term 1 channel=beerchannel node=1
2019-11-27 08:47:24.985 UTC [orderer.consensus.etcdraft] campaign -> INFO 244 1 [logterm: 1, index: 5] sent MsgPreVote request to 5 at term 1 channel=beerchannel node=1
2019-11-27 08:47:25.095 UTC [core.comm] ServerHandshake -> ERRO 245 TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=192.168.144.6:42974
2019-11-27 08:47:28.898 UTC [core.comm] ServerHandshake -> ERRO 246 TLS handshake failed with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=192.168.144.7:58672
2019-11-27 08:47:30.484 UTC [orderer.consensus.etcdraft] Step -> INFO 247 1 is starting a new election at term 1 channel=beerchannel node=1
2019-11-27 08:47:30.485 UTC [orderer.consensus.etcdraft] becomePreCandidate -> INFO 248 1 became pre-candidate at term 1 channel=beerchannel node=1
2019-11-27 08:47:30.485 UTC [orderer.consensus.etcdraft] poll -> INFO 249 1 received MsgPreVoteResp from 1 at term 1 channel=beerchannel node=1
This repeats multiple times then the docker stops
You are missing CORE_PEER_TLS_ENABLED=true for both of your peers.
I met this issue before, and fixed it successfully, i just tell you my solution, first you need to check everywhere protocol you wang to call the peer or the orderer which has opened the tls, the rigth protocol should be grpcs not the grpc, then you need to check the tlscert you was using to call the peer or the orderer if it is right, normally they are under the msp/tlscerts folder.
I am working on a software project and I am using Elasticsearch to support my search functionality. I have a server that I use to test with and I am using docker compose to create my cluster. Whenever I use my apps search bar (hosted via Apache on the same server as ES), I can never get the responses back due to CORS restrictions (I am getting around this using a Chrome extension, but I don't want users to have to install this to search).
I have tried enabled the proper http settings in the elasticsearch.yml file, but that doesn't seem to have done anything. I am using the Elasticsearch javascript module to make requests.
docker-compose:
version: '3.6'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.0
container_name: elasticsearch
environment:
- node.name=es01
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
nproc: 65535
memlock:
soft: -1
hard: -1
cap_add:
- ALL
privileged: true
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
volumes:
- esdata1:/usr/share/elasticsearch/data
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9200:9200
- 9300:9300
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.0
container_name: elasticsearch2
environment:
- node.name=es02
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch"
ulimits:
nproc: 65535
memlock:
soft: -1
hard: -1
cap_add:
- ALL
privileged: true
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
volumes:
- esdata2:/usr/share/elasticsearch/data
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
elasticsearch3:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.0
container_name: elasticsearch3
environment:
- node.name=es03
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch"
ulimits:
nproc: 65535
memlock:
soft: -1
hard: -1
cap_add:
- ALL
privileged: true
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
volumes:
- esdata3:/usr/share/elasticsearch/data
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.5.0
container_name: kibana
environment:
SERVER_NAME: localhost
ELASTICSEARCH_URL: http://elasticsearch:9200/
ports:
- 5601:5601
ulimits:
nproc: 65535
memlock:
soft: -1
hard: -1
cap_add:
- ALL
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
volumes:
esdata1:
esdata2:
esdata3:
elasticsearch.yml:
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With,X-Auth-Token,Content-Type, Content-Length, Authorization"
how I connect to ES (in javascript):
var elasticsearch = require('elasticsearch');
var client = new elasticsearch.Client({
host: 'myServersIP:9200'
});
So when I go to my servers webpage (www.mydomain.com) I get my application, everything looks good. When I try to search, I get the COR issue and can't get any results back. I think this might be because I am connecting to my client via "myServersIP:9200" and not some proxied subdomain, but I am not sure. Any ideas on what I could be doing wrong/how to fix this issue?
Try the one under C:\ProgramData\Elastic\Elasticsearch\config (windows case)
Edit it and add the CORS cofiguration (responsibly) as the "*" is quite dangerous
Hope this will help you
my idea cannot open menu bar ; how can I fix it?
The log is :
2018-11-29 17:26:31,193 [ 37873] ERROR - Templates.impl.DefaultTemplate - IntelliJ IDEA 14.1.7 Build #IU-141.3058.30
2018-11-29 17:26:31,193 [ 37873] ERROR - Templates.impl.DefaultTemplate - JDK: 1.8.0_181
2018-11-29 17:26:31,193 [ 37873] ERROR - Templates.impl.DefaultTemplate - VM: Java HotSpot(TM) 64-Bit Server VM
2018-11-29 17:26:31,193 [ 37873] ERROR - Templates.impl.DefaultTemplate - Vendor: Oracle Corporation
2018-11-29 17:26:31,193 [ 37873] ERROR - Templates.impl.DefaultTemplate - OS: Mac OS X
2018-11-29 17:26:31,193 [ 37873] ERROR - Templates.impl.DefaultTemplate - Last Action:
2018-11-29 17:26:31,193 [ 37873] ERROR - Templates.impl.DefaultTemplate - Entry fileTemplates//j2ee/valueResourceFile.xml.html not found in /Applications/IntelliJ%20IDEA%2014.app/Contents/plugins/android/lib/resources_en.jar
java.io.FileNotFoundException: Entry fileTemplates//j2ee/valueResourceFile.xml.html not found in /Applications/IntelliJ%20IDEA%2014.app/Contents/plugins/android/lib/resources_en.jar
at com.intellij.util.io.URLUtil.openJarStream(URLUtil.java:98)
at com.intellij.util.io.URLUtil.openStream(URLUtil.java:59)
at com.intellij.ide.fileTemplates.impl.UrlUtil.loadText(UrlUtil.java:45)
I'm under nginx + passenger + rails 3.2.1 and when i try to start my app i get
cannot load such file -- rubygems/path_support
the output of gem environment is
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.23
- RUBY VERSION: 1.9.3 (2012-11-10 patchlevel 327) [i686-linux]
- INSTALLATION DIRECTORY: /root/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /root/.rbenv/versions/1.9.3-p327/bin/ruby
- EXECUTABLE DIRECTORY: /root/.rbenv/versions/1.9.3-p327/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /root/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1
- /root/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
and in my nginx.conf i have
user root;
http {
passenger_root /root/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/passenger-3.0.19;
passenger_ruby /root/.rbenv/versions/1.9.3-p327/bin/ruby;
passenger_default_user root;
passenger_default_group root;
....
what else can i check?
Thank you
thanks a lot ! the code in your config file saved my life:
passenger_default_user root;
passenger_default_group root;
I met the same error with your and solved with your config file , the detailed answer is here: https://stackoverflow.com/a/15777738/445908