streamsets在编译时的那些坑
1 问题描述
commandLine 'docker', 'manifest', 'inspect', 'alpine'
> Configure project :
docker manifest inspect is only supported when experimental cli features are enabled
Found go 1.10.1 in /usr/local/sbin/go, use it.
FAILURE: Build failed with an exception.
* Where:
Build file '/home/xiaoxu/chinadaas-datacollector/datacollector-edge/build.gradle' line: 229
* What went wrong:
A problem occurred evaluating root project 'datacollector-edge'.
> Process 'command 'docker'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
docker manifest inspect is only supported when experimental cli features are enabled
* What went wrong:
Execution failed for task ':resolveBuildDependencies'.
> Exception in resolution, message is:
Cannot recognized package: golang.org/x/sys/unix
Resolution stack is:
+- github.com/streamsets/datacollector-edge
+- github.com/shirou/gopsutil#c23bcca55e77b8389d84b09db8c5ac2b472070ef
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.or
2 解决方法
请升级为最新版的docker
参考地址:https://blog.csdn.net/nimoyaoww/article/details/79155489
https://jingyan.baidu.com/article/0aa223756cf6e388cc0d6412.html
最佳解决方法:
https://github.com/docker/cli/issues/947
@imdurgadas thanks for the report. As the message says "docker manifest is only supported whenexperimental cli features are enabled", it's on the If you update your
|
3 问题描述
Since bower is a user command, there is no need to execute it with superuser permissions
4 问题解答
解决方法有两种:
1,根据错误提示在bower命令后面加--allow-root ,例如 bower install --allow-root
2,增加一个配置文件使得运行bower时候为root权限,~/.bowerrc
内容如下
{"allow_root": true }
5 问题描述
ccess 'https://github.com/FortAwesome/Font-Awesome.git/': Peer reports incompatible or unsupported protocol version.
Additional error details:
fatal: unable to access 'https://github.com/FortAwesome/Font-Awesome.git/': Peer reports incompatible or unsupported protocol version.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
6 问题解答
更新一下组件
yum update nss curl
7 docker TLS handshake timeout
17:29:37.438 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
17:29:37.438 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
17:29:37.438 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
17:29:37.438 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
17:29:37.438 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
17:29:01.453 [null] [org.gradle.internal.progress.DefaultBuildOperationExecutor]
> Configure project :
17:29:43.961 [ERROR] [system.err] Get https://registry-1.docker.io/v2/library/alpine/manifests/latest: net/http: TLS handshake timeout
17:29:43.963 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
17:29:43.963 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'docker'' finished with exit value 1 (state: FAILED)
17:29:43.963 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Apply script build.gradle to root project 'datacollector-edge''
17:29:43.963 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 47.94 secs
17:29:43.963 [DEBUG] [org.gradle.model.internal.registry.DefaultModelRegistry] Project : - Registering model element 'tasks.buildLinuxAmd64' (hidden = false)
8 add DOCKER_OPTS
https://blog.csdn.net/u010629326/article/details/74937412DOCKER_OPTS="–insecure-registry $DOCKER_OPTS --insecure-registry registry.mirrors.aliyuncs.com"
9 angular编译项目时缺少依赖
bower angular-xeditable#~0.1.9 progress received 0.7MB of 4.0MB downloaded, 16%
bower angular-xeditable#~0.1.9 progress received 0.7MB of 4.0MB downloaded, 17%
bower angular#>=1.2.0 <1.5.0
ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular.git", exit code of #128 fatal: unable to access 'https://github.com/angular/bower-angular.git/': GnuTLS recv error (-9): A TLS packet with unexpected length was received.
Additional error details:
fatal: unable to access 'https://github.com/angular/bower-angular.git/': GnuTLS recv error (-9): A TLS packet with unexpected length was received.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
bower angular-xeditable#~0.1.9 progress received 4.0MB of 4.0MB downloaded, 100%
bower angular-xeditable#~0.1.9 extract archive.tar.gz
bower angular-xeditable#~0.1.9 resolved https://github.com/vitalets/angular-xeditable.git#0.1.12
bower angular#>=1.2.0 <1.5.0 not-cached https://github.com/angular/bower-angular.git#>=1.2.0 <1.5.0
bower angular#>=1.2.0 <1.5.0 resolve https://github.com/angular/bower-angular.git#>=1.2.0 <1.5.0
bower moment#2.9.0 ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/moment/moment.git", exit code of #128 fatal: unable to access 'https://github.com/moment/moment.git/': GnuTLS recv error (-54): Error in the pull function.
Additional error details:
fatal: unable to access 'https://github.com/moment/moment.git/': GnuTLS recv error (-54): Error in the pull function.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
bower angular-scenario#1.6.5 validate 1.6.5 against https://github.com/angular/bower-angular-scenario.git#1.6.5
bower angular#>=1.2.0 <1.5.0 cached https://github.com/angular/bower-angular.git#1.4.14
bower angular#>=1.2.0 <1.5.0 validate 1.4.14 against https://github.com/angular/bower-angular.git#>=1.2.0 <1.5.0
bower angular-scenario#1.6.5 ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular-scenario.git", exit code of #128 fatal: unable to access 'https://github.com/angular/bower-angular-scenario.git/': GnuTLS recv error (-9): A TLS packet with unexpected length was received.
Additional error details:
fatal: unable to access 'https://github.com/angular/bower-angular-scenario.git/': GnuTLS recv error (-9): A TLS packet with unexpected length was received.
10 按照提示去github上查找依赖并安装即可
https://github.com/angular-ui/ui-select 等下载安装即可
vdemeester commented Mar 15, 2018