我正在尝试使用其文档中显示的示例来设置Traefik反向代理。当我尝试启动“whoami”服务时,出现以下错误:
Creating test_whoami_1 ...
ERROR: for test_whoami_1 dictionary update sequence element #0 has length 22; 2 is required
ERROR: for whoami dictionary update sequence element #0 has length 22; 2 is required
Traceback (most recent call last):
File "bin/docker-compose", line 6, in <module>
File "compose/cli/main.py", line 68, in main
File "compose/cli/main.py", line 121, in perform_command
File "compose/cli/main.py", line 952, in up
File "compose/project.py", line 455, in up
File "compose/parallel.py", line 70, in parallel_execute
ValueError: dictionary update sequence element …Run Code Online (Sandbox Code Playgroud) 我尝试使用带有以下代码的 Python JIRA 客户端:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from jira.client import JIRA
jira = JIRA(options={'server': 'http://server.atlassian.net'},
basic_auth=('email@example.com', 'pass'))
projects = jira.projects()
for v in projects:
print v
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Got recoverable error from GET https://server.atlassian.net/rest/api/2/serverInfo, will retry [1/3] in 17.5832343958s. Err: 401 Unauthorized
Run Code Online (Sandbox Code Playgroud)
使用 python 2.7 (virtualenv),使用pip install jira. 我尝试使用我的用户名和电子邮件,并且确定我的登录凭据是正确的(我可以使用我的浏览器使用相同的凭据登录而没有问题)。任何提示我做错了什么?
我正在尝试编写一个简单的 Ansible Playbook,请查看下面的片段。使用 Ansible 2.4.0.0、Ubuntu 17.04、Python 2.7.13。这是我第一次使用 Ansible 和 Playbooks,所以请不要太苛刻。我究竟做错了什么?
剧本.yml
---
- name: install packages
hosts: dbservers
become: yes
become_method: sudo
become_user: user
tasks:
- name: Update repositories cache and install "python-minimal" package
apt:
name: python-minimal
update_cache: yes
Run Code Online (Sandbox Code Playgroud)
主机文件
---
[dbservers]
db ansible_host=127.0.0.1 ansible_port=22 ansible_user=user ansible_ssh_pass=pass ansible_become_pass=pass ansible_become_user=user
Run Code Online (Sandbox Code Playgroud)
命令: ansible-playbook -i hosts playbook.yml -vvv
上面的命令返回以下错误:
The full traceback is:
File "/tmp/ansible_yozgsn/ansible_module_apt.py", line 287, in <module>
import apt
fatal: [db]: FAILED! => {
"changed": false,
"cmd": "apt-get update",
"failed": true, …Run Code Online (Sandbox Code Playgroud) 我在通过 Docker 注册表将n8n部署到 Heroku 时遇到问题,并且无法弄清楚我做错了什么。任何帮助将不胜感激。
手动配置 Postgres 版本 11:
heroku addons:create heroku-postgresql:hobby-dev --version=11 -a my-app
Run Code Online (Sandbox Code Playgroud)
Dockerfile:
FROM n8nio/n8n
Run Code Online (Sandbox Code Playgroud)
heroku.yml:
FROM n8nio/n8n
Run Code Online (Sandbox Code Playgroud)
日志通过heroku logs --tail:
setup:
#addons:
# - plan: heroku-postgresql:hobby-dev
# version: 11
# as: DATABASE
config:
SUBDOMAIN: "my-app"
DOMAIN_NAME: "herokuapp.com"
NODE_ENV: "production"
TZ: "Europe/Berlin"
GENERIC_TIMEZONE: "Europe/Berlin"
N8N_HOST: "${SUBDOMAIN}.${DOMAIN_NAME}"
N8N_PORT: "${PORT}" #each app in heroku gets randomly assigned IP on start
N8N_PROTOCOL: "https"
N8N_ENCRYPTION_KEY: "mysupersecretkey"
WEBHOOK_TUNNEL_URL: "https://${SUBDOMAIN}.${DOMAIN_NAME}/"
VUE_APP_URL_BASE_API: "https://${SUBDOMAIN}.${DOMAIN_NAME}/"
DB_TYPE: "postgresdb"
DB_POSTGRESDB_HOST: "dbhost"
DB_POSTGRESDB_DATABASE: "dbname"
DB_POSTGRESDB_PORT: 5432 …Run Code Online (Sandbox Code Playgroud) ansible ×1
docker ×1
heroku ×1
heroku-cli ×1
jira ×1
node.js ×1
python ×1
python-2.7 ×1
python-jira ×1
traefik ×1