小编dee*_*eez的帖子

!镜像git存储库后出现[远程拒绝]错误

我正在关注此文档:https: //help.github.com/articles/duplicating-a-repository/

git clone --mirror https://github.com/exampleuser/repository-to-mirror.git

cd repository-to-mirror.git

git push --mirror https://github.com/exampleuser/mirrored
Run Code Online (Sandbox Code Playgroud)

输出显示存储库是作为镜像推送的,但由于某种原因我也遇到了这些错误:

 ! [remote rejected] refs/pull/1/head -> refs/pull/1/head (deny updating a hidden ref)
 ! [remote rejected] refs/pull/1/merge -> refs/pull/1/merge (deny updating a hidden ref)
Run Code Online (Sandbox Code Playgroud)

这些错误是什么?我可以假设存储库已镜像吗?

git repository mirror

22
推荐指数
4
解决办法
9234
查看次数

我可以使用 terraform 在 aws 中注册域名吗?

我在文档中没有找到任何有用的东西。这可以用 terraform 以某种方式完成吗?

registrar amazon-web-services terraform

12
推荐指数
1
解决办法
7971
查看次数

从 elasticsearch 查询创建 Kibana URL

我想根据过去 15 分钟更改的主机名自动生成 kibana URL。这是我正在使用的弹性搜索查询:

{'query': {'bool': {'minimum_should_match': 1, 'should': [{'match': {'beat.hostname.raw': 'xxxxxxx'}}, {'match': {'beat.hostname.raw': 'yyyyyyy'}}], 'must': [{'range': {'@timestamp': {'gte': 'now-15m'}}}]}}}
Run Code Online (Sandbox Code Playgroud)

如何为 kibana 创建可解析的 URL 以进行此搜索?

谢谢,

url elasticsearch kibana

6
推荐指数
1
解决办法
2595
查看次数

使用SRV记录时puppetserver ca命令无法连接到https://puppet:8140解决方案

我在我的木偶架构中使用 SRV 解决方案。当尝试设置新的 puppet master 和 CA 并查看我的证书时,我收到此错误:

puppetserver ca list --all
Fatal error when running action 'list'
  Error: Failed connecting to https://puppet:8140/puppet-ca/v1/certificate_statuses/any_key
  Root cause: Failed to open TCP connection to puppet:8140 (getaddrinfo: No address associated with hostname)
Run Code Online (Sandbox Code Playgroud)

我的 puppet.conf 文件具有以下配置:

   use_srv_records = true
   srv_domain = mypuppetrecord.com
Run Code Online (Sandbox Code Playgroud)

我缺少什么?

ca puppet srv

5
推荐指数
1
解决办法
9954
查看次数

使用brew安装特定版本的Helm

我试过:

\n
~ \xe2\x9d\xaf brew install helm@3.4.2                                                                                                        at 11:05:02\n==> Searching for similarly named formulae...\nError: No similarly named formulae found.\nError: No available formula or cask with the name "helm@3.4.2".\n==> Searching for a previously deleted formula (in the last month)...\nError: No previously deleted formula found.\n==> Searching taps on GitHub...\nError: No formulae found in taps.\n
Run Code Online (Sandbox Code Playgroud)\n

还尝试按照几个在线指南的建议从特定的提交哈希进行安装,但收到此错误:

\n
/usr/local/Homebrew/Library/Homebrew/formulary.rb:227:in `load_file': Invalid usage: Installation of helm from a GitHub commit URL is unsupported! 'brew extract helm' to stable tap on GitHub instead. (UsageError)\n
Run Code Online (Sandbox Code Playgroud)\n …

homebrew kubernetes-helm

5
推荐指数
1
解决办法
1万
查看次数

minikube 错误 - scp:/usr/local/bin/localkube:设备上没有剩余空间

我正在尝试根据手册安装 minikube。首先我遇到了这个错误,所以我将 minikube 降级到版本 0.25.2。现在我面临这个错误:

mac:~ username$ minikube start --vm-driver=xhyve --loglevel=0
Starting local Kubernetes v1.9.4 cluster...
Starting VM...
Getting VM IP address...
Kubernetes version downgrade is not supported. Using version: v1.10.0
Moving files into cluster...
E0504 19:09:14.812623   10018 start.go:234] Error updating cluster:  Error running scp command: sudo scp -t /usr/local/bin output: scp: /usr/local/bin/localkube: No space left on device
: Process exited with status 1
Run Code Online (Sandbox Code Playgroud)

我的根目录有 100GB 可用空间,我缺少什么?

kubernetes minikube

3
推荐指数
1
解决办法
3471
查看次数

字符串和字典的Python字符串插值在同一行

我有一个字典和一个转换为字符串的日期时间对象.如何在同一行中打印日期时间字符串和字典中的几个项目?

例如:

dictionary = {"_source": {"host": "host", "type": "type"}}
datetime = '25-08-2017 10:26:11'
Run Code Online (Sandbox Code Playgroud)

这就是我要打印的内容:

print("%s %(host)s %(type)s" % (datetime,dictionary["_source"]))
Run Code Online (Sandbox Code Playgroud)

在datetime字符串上获取错误:

TypeError: format requires a mapping
Run Code Online (Sandbox Code Playgroud)

谢谢!

python dictionary string-interpolation

2
推荐指数
1
解决办法
1545
查看次数

Elasticsearch查询-按@timestamp和其他字段排序?

我可以搜索elasticsearch(2.3版),并且可以在搜索查询中按多个字段排序吗?现在,我按@timestamp排序,我也想按主机名排序。

谢谢,

elasticsearch

0
推荐指数
2
解决办法
6258
查看次数