- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
使用我们自己的 Gitlab 实例,当尝试在我们的运行器中使用 postgres 服务时,我们得到错误 background worker "logical replication launcher"exited with exit code 1
。还没有在互联网上找到任何有用的东西。知道发生了什么事吗?
版本:
gitlab-ci.yml
中相关部分:
image: golang:1.12
services:
- postgres
variables:
POSTGRES_USER: postgres
POSTGRES_DB: xproject_test
POSTGRES_PASSWORD: postgres
失败日志:
Running with gitlab-runner 12.5.0 (577f813d)
on xproject sEZeszwx
Using Docker executor with image xproject-ci ...
Starting service postgres:latest ...
Pulling docker image postgres:latest ...
Using docker image sha256:9eb7b0ce936d2eac8150df3de7496067d56bf4c1957404525fd60c3640dfd450 for postgres:latest ...
Waiting for services to be up and running...
*** WARNING: Service runner-sEZeszwx-project-18-concurrent-0-postgres-0 probably didn't start properly.
Health check error:
service "runner-sEZeszwx-project-18-concurrent-0-postgres-0-wait-for-service" timeout
Health check container logs:
Service container logs:
2019-11-20T10:16:23.805738908Z The files belonging to this database system will be owned by user "postgres".
2019-11-20T10:16:23.805807212Z This user must also own the server process.
2019-11-20T10:16:23.805818432Z
2019-11-20T10:16:23.806094094Z The database cluster will be initialized with locale "en_US.utf8".
2019-11-20T10:16:23.806120707Z The default database encoding has accordingly been set to "UTF8".
2019-11-20T10:16:23.806208494Z The default text search configuration will be set to "english".
2019-11-20T10:16:23.806264704Z
2019-11-20T10:16:23.806282587Z Data page checksums are disabled.
2019-11-20T10:16:23.806586302Z
2019-11-20T10:16:23.806931287Z fixing permissions on existing directory /var/lib/postgresql/data ... ok
2019-11-20T10:16:23.807763042Z creating subdirectories ... ok
2019-11-20T10:16:23.808045789Z selecting dynamic shared memory implementation ... posix
2019-11-20T10:16:23.835644353Z selecting default max_connections ... 100
2019-11-20T10:16:23.866604734Z selecting default shared_buffers ... 128MB
2019-11-20T10:16:23.928432088Z selecting default time zone ... Etc/UTC
2019-11-20T10:16:23.929447992Z creating configuration files ... ok
2019-11-20T10:16:24.122662589Z running bootstrap script ... ok
2019-11-20T10:16:24.706975030Z performing post-bootstrap initialization ... ok
2019-11-20T10:16:24.819117668Z initdb: warning: enabling "trust" authentication for local connections
2019-11-20T10:16:24.819150100Z You can change this by editing pg_hba.conf or using the option -A, or
2019-11-20T10:16:24.819157763Z --auth-local and --auth-host, the next time you run initdb.
2019-11-20T10:16:24.819272849Z syncing data to disk ... ok
2019-11-20T10:16:24.819313390Z
2019-11-20T10:16:24.819328954Z
2019-11-20T10:16:24.819340787Z Success. You can now start the database server using:
2019-11-20T10:16:24.819349374Z
2019-11-20T10:16:24.819357407Z pg_ctl -D /var/lib/postgresql/data -l logfile start
2019-11-20T10:16:24.819365840Z
2019-11-20T10:16:24.857656160Z waiting for server to start....2019-11-20 10:16:24.857 UTC [46] LOG: starting PostgreSQL 12.1 (Debian 12.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2019-11-20T10:16:24.860371378Z 2019-11-20 10:16:24.860 UTC [46] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2019-11-20T10:16:24.886271885Z 2019-11-20 10:16:24.886 UTC [47] LOG: database system was shut down at 2019-11-20 10:16:24 UTC
2019-11-20T10:16:24.892844968Z 2019-11-20 10:16:24.892 UTC [46] LOG: database system is ready to accept connections
2019-11-20T10:16:24.943542403Z done
2019-11-20T10:16:24.943591286Z server started
2019-11-20T10:16:25.084670051Z CREATE DATABASE
2019-11-20T10:16:25.086153670Z
2019-11-20T10:16:25.086604000Z
2019-11-20T10:16:25.086694058Z /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
2019-11-20T10:16:25.086711933Z
2019-11-20T10:16:25.088473308Z 2019-11-20 10:16:25.088 UTC [46] LOG: received fast shutdown request
2019-11-20T10:16:25.090893184Z waiting for server to shut down....2019-11-20 10:16:25.090 UTC [46] LOG: aborting any active transactions
2019-11-20T10:16:25.092499368Z 2019-11-20 10:16:25.092 UTC [46] LOG: background worker "logical replication launcher" (PID 53) exited with exit code 1
2019-11-20T10:16:25.093942785Z 2019-11-20 10:16:25.093 UTC [48] LOG: shutting down
2019-11-20T10:16:25.112341160Z 2019-11-20 10:16:25.112 UTC [46] LOG: database system is shut down
2019-11-20T10:16:25.189351710Z done
2019-11-20T10:16:25.189393803Z server stopped
2019-11-20T10:16:25.189929555Z
2019-11-20T10:16:25.189967760Z PostgreSQL init process complete; ready for start up.
2019-11-20T10:16:25.189982340Z
2019-11-20T10:16:25.214046388Z 2019-11-20 10:16:25.213 UTC [1] LOG: starting PostgreSQL 12.1 (Debian 12.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2019-11-20T10:16:25.214092434Z 2019-11-20 10:16:25.213 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2019-11-20T10:16:25.214172706Z 2019-11-20 10:16:25.214 UTC [1] LOG: listening on IPv6 address "::", port 5432
2019-11-20T10:16:25.219769380Z 2019-11-20 10:16:25.219 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2019-11-20T10:16:25.241614800Z 2019-11-20 10:16:25.241 UTC [64] LOG: database system was shut down at 2019-11-20 10:16:25 UTC
2019-11-20T10:16:25.248887712Z 2019-11-20 10:16:25.248 UTC [1] LOG: database system is ready to accept connections
*********
最佳答案
首先,您的数据库容器已准备好接受连接,正如您从日志中看到的那样
2019-11-20T10:16:25.248887712Z 2019-11-20 10:16:25.248 UTC [1] LOG: database system is ready to accept connections
这是官方 Postgres 图像的预期行为 如果您查看 entrypoint在 Postgres 中,它执行两项任务。
*.sql
文件,运行任何可执行的 *.sh
脚本,并获取任何不可执行的 *.sh
在该目录中找到的脚本,以便在从此目录 /docker-entrypoint-initdb.d
do you know why I get that shutdown request?
# stop postgresql server after done setting up user and running scripts
docker_temp_server_stop() {
PGUSER="${PGUSER:-postgres}" \
pg_ctl -D "$PGDATA" -m fast -w stop
}
然后完成之后
.
.
echo 'PostgreSQL init process complete; ready for start up.'
.
.
exec "$@"
关于PostgreSQL:后台 worker "logical replication launcher"已退出,退出代码为 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58952919/
和这个一样,但还是没弄明白。尝试了所有解决方案.... Maven error: Could not find or load main class org.codehaus.plexus.class
我想知道是否可以为 Android 开发 App Launcher 应用程序。我指的是不同供应商推出的应用程序启动器,即 Microsoft App Launcher、Google App Launc
我正在尝试运行以下示例单元测试用例 class ExampleUnitTest { @Test fun addition_is_Correct() { assertEq
我已经在 Git Bash(64 位)上使用 Maven 几个月了,突然它停止工作,并且现在在任何 Maven 命令上生成此错误: myuser@mypc MINGW64 ~ (master *) $
在我们的项目中,我们使用 IBM J9 Java VM 和旧版本的 Equinox OSGi 框架 (org.eclipse.osgi_3.6.1.R36x_v20100806.jar)。是否可以将此
我正在尝试在 Ubuntu 14.04 64 位中安装 spark 客户端 IM,但它会抛出错误 Could not find or load main class com.install4j.run
我已经通过 CLi 在 Linux Mint 上安装了最新的 maven-3.2.5安装详情如下: export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
我已在 Windows 7 上安装了最新的 maven-3.0.4: 安装详情如下: 安装路径: C:\apache-maven-3.0.4 环境变量是: M2_HOME C:\apache-mav
这个问题在这里已经有了答案: Maven error: Could not find or load main class org.codehaus.plexus.classworlds.launc
我正在使用 Windows 10,并且我已按照说明中的说明设置了路径 设置 M2_HOME (E:\softwares\apache-maven-3.3.9) 设置 M2 (%M2_HOME%\bin
我已经安装了 maven 2。当我在应用程序根目录中使用 mvn clean 或 mvn install 时,它工作正常。 但是当我尝试在 bash 脚本中使用 maven install 时,出现了
我知道这个问题已经在几个问题中讨论过,但没有答案解决我的具体问题。 我已经安装了 Git bash 和 Maven,我正在尝试使用 Git bash 执行 Maven。它因上述错误而中止。 我的系统环
manifest 中 launcher activity 的 launchMode 是否被忽略?android 文档说默认 launchMode 是“标准”,但如果这将应用于应用程序的主要 Activ
进程文件: launcher or launcher.exe 进程名称: Webshots Launcher 进程类别:存在安全风险的进程 英文描述: launcher.exe is an
我是 Python 和 Pygame 的新手,现在我正在尝试用一些简单的代码打开一个测试窗口: import pygame, sys from pygame.locals import * pygam
我们正在使用 eclipse 的共享安装(RAD 7.0,在 Citrix 下)。我们需要允许每个开发人员提供 eclipse.ini 的本地副本。 “--launcher.ini”命令行开关应该允许
我一直在尝试在运行的 Eclipse session 中从命令行打开文件。基于documentation ,我应该可以做到 eclipse --launcher.openFile myfilename
我们正在使用 eclipse 的共享安装(RAD 7.0,在 Citrix 下)。我们需要允许每个开发人员提供 eclipse.ini 的本地副本。 “--launcher.ini”命令行开关应该允许
我正在尝试为 Minecraft 制作自定义启动器。我只是想让它从我自己的服务器下载主 jar 文件,没有别的。我反编译了一个文件(Launcher.java)并将下载网址从“https://s3.a
我正在开发一个可以读取汽车数据的应用程序。 当用户第一次打开它时,他必须选择他驾驶的汽车(这是在 MainActivity 中)。 我想做的是,用户在打开应用程序时不能总是选择他的车。 App应在用户
我是一名优秀的程序员,十分优秀!