This commit is contained in:
wsq 2024-08-30 00:24:48 +08:00
parent 4f1302ed8c
commit 577cbe1139
282 changed files with 9737 additions and 1874 deletions

21
aira/config/LICENSE Executable file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018-2021 P3TERX <https://p3terx.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

413
aira/config/aria2.conf Executable file

File diff suppressed because one or more lines are too long

BIN
aira/config/dht.dat Executable file

Binary file not shown.

BIN
aira/config/dht6.dat Executable file

Binary file not shown.

76
aira/config/script.conf Executable file
View File

@ -0,0 +1,76 @@
#
# https://github.com/P3TERX/aria2.conf
# File namescript.conf
# Description: Aria2 additional function script configuration file
# Version: 2021.07.04
#
## 文件上传设置(upload.sh) ##
# 网盘名称(RCLONE 配置时填写的 name)
drive-name=OneDrive
# 网盘目录(上传目标目录,网盘中的文件夹路径)。注释或留空为网盘根目录,末尾不要有斜杠。
#drive-dir=/DRIVEX/Download
# 上传日志保存路径。注释或留空为不保存。
#upload-log=/config/upload.log
## 文件移动设置(move.sh) ##
# 移动目标目录
dest-dir=/downloads/completed
# 移动日志保存路径。注释或留空为不保存。
#move-log=/config/move.log
## 文件删除设置(delete.sh) ##
# 删除正在下载任务后删除文件
delete-on-removed=true
# 下载错误时删除文件
delete-on-error=true
# 删除正在下载任务后且任务信息无法读取时删除文件(第三方度盘工具)
delete-on-unknown=true
## 文件清理设置(全局) ##
# 删除 .aria2 文件
delete-dot-aria2=true
# 删除 .torrent 文件。可选normal | enhanced | true | false
# normal: 删除相关任务的种子文件,但可能无法删除通过 RPC 方式(比如 WebUI、Bot)上传的种子文件(文件名无法确定)。
# enhanced在下载目录中查找非正在下载和暂停任务以外的其它种子文件并删除(非实时)。开启 强制保存(force-save) 后此项无效。
# true优先使用 normal 模式,在种子文件名无法确定的情况下使用 enhanced 模式。
# false不删除种子文件
# 注意:通过 RPC 自定义临时下载目录的任务可能不会保存种子文件,与此功能无关。
delete-dot-torrent=true
# 删除空目录
delete-empty-dir=true
## 文件过滤设置(全局) ##
# 仅 BT 多文件下载时有效,用于过滤无用文件。
# 排除小文件。低于此大小的文件将在下载完成后被删除。
#min-size=10M
# 保留文件类型。其它文件类型将在下载完成后被删除。
#include-file=mp4|mkv|rmvb|mov|avi
# 排除文件类型。排除的文件类型将在下载完成后被删除。
#exclude-file=html|url|lnk|txt|jpg|png
# 保留文件(正则表达式)。其它文件类型将在下载完成后被删除。
#include-file-regex=
# 排除文件(正则表达式)。排除的文件类型将在下载完成后被删除。
# 示例为排除比特彗星的 padding file
#exclude-file-regex="(.*/)_+(padding)(_*)(file)(.*)(_+)"

47
aira/config/script/clean.sh Executable file
View File

@ -0,0 +1,47 @@
#!/usr/bin/env bash
#
# https://github.com/P3TERX/aria2.conf
# File nameclean.sh
# Description: Remove redundant files after Aria2 download is complete
# Version: 3.0
#
# Copyright (c) 2018-2021 P3TERX <https://p3terx.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
CHECK_CORE_FILE() {
CORE_FILE="$(dirname $0)/core"
if [[ -f "${CORE_FILE}" ]]; then
. "${CORE_FILE}"
else
echo "!!! core file does not exist !!!"
exit 1
fi
}
CHECK_CORE_FILE "$@"
CHECK_PARAMETER "$@"
CHECK_FILE_NUM
CHECK_SCRIPT_CONF
GET_TASK_INFO
GET_DOWNLOAD_DIR
CONVERSION_PATH
CLEAN_UP
exit 0

248
aira/config/script/core Executable file
View File

@ -0,0 +1,248 @@
#
# https://github.com/P3TERX/aria2.conf
# File namecore
# Description: Aria2 additional function script core file
# Version: 3.3
#
# Copyright (c) 2018-2021 P3TERX <https://p3terx.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
TASK_GID=$1
FILE_NUM=$2
FILE_PATH=$3
ARIA2_CONF_DIR="/config"
ARIA2_CONF="${ARIA2_CONF_DIR}/aria2.conf"
ARIA2_SESSION="${ARIA2_CONF_DIR}/aria2.session"
SCRIPT_CONF="${ARIA2_CONF_DIR}/script.conf"
RED_FONT_PREFIX="\033[31m"
LIGHT_GREEN_FONT_PREFIX="\033[1;32m"
YELLOW_FONT_PREFIX="\033[1;33m"
LIGHT_PURPLE_FONT_PREFIX="\033[1;35m"
FONT_COLOR_SUFFIX="\033[0m"
INFO="[${LIGHT_GREEN_FONT_PREFIX}INFO${FONT_COLOR_SUFFIX}]"
ERROR="[${RED_FONT_PREFIX}ERROR${FONT_COLOR_SUFFIX}]"
WARRING="[${YELLOW_FONT_PREFIX}WARRING${FONT_COLOR_SUFFIX}]"
DATE_TIME() {
date +"%m/%d %H:%M:%S"
}
CHECK_PARAMETER() {
[[ $# -eq 0 ]] && {
echo && echo -e "${ERROR} This script can only be used by passing parameters through Aria2."
exit 1
}
}
CHECK_FILE_NUM() {
[[ ${FILE_NUM} -eq 0 ]] && {
echo && echo -e "$(DATE_TIME) ${WARRING} Number of files is zero, maybe a Magnet Link."
exit 0
}
}
CHECK_SCRIPT_CONF() {
if [[ -f "${SCRIPT_CONF}" ]]; then
LOAD_SCRIPT_CONF
else
echo && echo "!!! '${SCRIPT_CONF}' does not exist !!!"
exit 1
fi
}
LOAD_SCRIPT_CONF() {
DRIVE_NAME="$(grep ^drive-name "${SCRIPT_CONF}" | cut -d= -f2-)"
DRIVE_DIR="$(grep ^drive-dir "${SCRIPT_CONF}" | cut -d= -f2-)"
UPLOAD_LOG_PATH="$(grep ^upload-log "${SCRIPT_CONF}" | cut -d= -f2-)"
DEST_DIR="$(grep ^dest-dir "${SCRIPT_CONF}" | cut -d= -f2-)"
MOVE_LOG_PATH="$(grep ^move-log "${SCRIPT_CONF}" | cut -d= -f2-)"
DELETE_ON_REMOVED="$(grep ^delete-on-removed "${SCRIPT_CONF}" | cut -d= -f2-)"
DELETE_ON_ERROR="$(grep ^delete-on-error "${SCRIPT_CONF}" | cut -d= -f2-)"
DELETE_ON_UNKNOWN="$(grep ^delete-on-unknown "${SCRIPT_CONF}" | cut -d= -f2-)"
DELETE_DOT_ARIA2="$(grep ^delete-dot-aria2 "${SCRIPT_CONF}" | cut -d= -f2-)"
DELETE_DOT_TORRENT="$(grep ^delete-dot-torrent "${SCRIPT_CONF}" | cut -d= -f2-)"
DELETE_EMPTY_DIR="$(grep ^delete-empty-dir "${SCRIPT_CONF}" | cut -d= -f2-)"
MIN_SIZE="$(grep ^min-size "${SCRIPT_CONF}" | cut -d= -f2-)"
INCLUDE_FILE="$(grep ^include-file "${SCRIPT_CONF}" | cut -d= -f2-)"
EXCLUDE_FILE="$(grep ^exclude-file "${SCRIPT_CONF}" | cut -d= -f2-)"
INCLUDE_FILE_REGEX="$(grep ^include-file-regex "${SCRIPT_CONF}" | cut -d= -f2-)"
EXCLUDE_FILE_REGEX="$(grep ^exclude-file-regex "${SCRIPT_CONF}" | cut -d= -f2-)"
}
READ_ARIA2_CONF() {
if [ ! -f "${ARIA2_CONF}" ]; then
echo -e "$(DATE_TIME) ${ERROR} '${ARIA2_CONF}' does not exist."
exit 1
else
ARIA2_DOWNLOAD_DIR=$(grep ^dir "${ARIA2_CONF}" | cut -d= -f2-)
RPC_PORT=$(grep ^rpc-listen-port "${ARIA2_CONF}" | cut -d= -f2-)
RPC_SECRET=$(grep ^rpc-secret "${ARIA2_CONF}" | cut -d= -f2-)
SAVE_SESSION_INTERVAL=$(grep ^save-session-interval "${ARIA2_CONF}" | cut -d= -f2-)
[[ ${ARIA2_DOWNLOAD_DIR} && ${RPC_PORT} && ${SAVE_SESSION_INTERVAL} ]] || {
echo -e "$(DATE_TIME) ${ERROR} Aria2 configuration file incomplete."
exit 1
}
RPC_ADDRESS="localhost:${RPC_PORT}/jsonrpc"
fi
}
RPC_TASK_INFO() {
if [[ "${RPC_SECRET}" ]]; then
RPC_PAYLOAD='{"jsonrpc":"2.0","method":"aria2.tellStatus","id":"P3TERX","params":["token:'${RPC_SECRET}'","'${TASK_GID}'"]}'
else
RPC_PAYLOAD='{"jsonrpc":"2.0","method":"aria2.tellStatus","id":"P3TERX","params":["'${TASK_GID}'"]}'
fi
curl "${RPC_ADDRESS}" -fsSd "${RPC_PAYLOAD}" || curl "https://${RPC_ADDRESS}" -kfsSd "${RPC_PAYLOAD}"
}
GET_TASK_INFO() {
READ_ARIA2_CONF
RPC_RESULT="$(RPC_TASK_INFO)"
}
GET_DOWNLOAD_DIR() {
[[ -z ${RPC_RESULT} ]] && {
echo -e "$(DATE_TIME) ${ERROR} Aria2 RPC interface error!"
exit 1
}
DOWNLOAD_DIR=$(echo "${RPC_RESULT}" | jq -r '.result.dir')
[[ -z "${DOWNLOAD_DIR}" || "${DOWNLOAD_DIR}" = "null" ]] && {
echo ${RPC_RESULT} | jq '.result'
echo -e "$(DATE_TIME) ${ERROR} Failed to get download directory!"
exit 1
}
}
GET_TASK_STATUS() {
TASK_STATUS=$(echo "${RPC_RESULT}" | jq -r '.result.status')
[[ -z "${TASK_STATUS}" || "${TASK_STATUS}" = "null" ]] && {
echo "${RPC_RESULT}" | jq '.result'
echo -e "$(DATE_TIME) ${ERROR} Failed to get task status!"
exit 1
}
}
GET_INFO_HASH() {
INFO_HASH=$(echo "${RPC_RESULT}" | jq -r '.result.infoHash')
if [[ -z "${INFO_HASH}" ]]; then
echo "${RPC_RESULT}" | jq '.result'
echo -e "$(DATE_TIME) ${ERROR} Failed to get Info Hash!"
exit 1
elif [[ "${INFO_HASH}" = "null" ]]; then
return 1
else
TORRENT_FILE="${DOWNLOAD_DIR}/${INFO_HASH}.torrent"
fi
}
CONVERSION_PATH() {
RELATIVE_PATH="${FILE_PATH#"${DOWNLOAD_DIR}/"}"
TASK_FILE_NAME="${RELATIVE_PATH%%/*}"
TASK_PATH="${DOWNLOAD_DIR}/${TASK_FILE_NAME}"
DEST_PATH_SUFFIX="${TASK_PATH#"${ARIA2_DOWNLOAD_DIR}"}"
}
OUTPUT_LOG() {
echo -e "${LOG}"
[[ "${LOG_PATH}" && -e "${LOG_PATH%/*}" ]] && echo -e "${LOG}" | sed "s,\x1B\[[0-9;]*m,,g" >>"${LOG_PATH}"
}
CHECK_DOT_ARIA2() {
if [ -f "${FILE_PATH}.aria2" ]; then
DOT_ARIA2_FILE="${FILE_PATH}.aria2"
elif [ -f "${TASK_PATH}.aria2" ]; then
DOT_ARIA2_FILE="${TASK_PATH}.aria2"
else
DOT_ARIA2_FILE='null'
echo -e "$(DATE_TIME) ${INFO} .aria2 file does not exist."
return 1
fi
}
DELETE_DOT_ARIA2() {
if [[ "${DELETE_DOT_ARIA2}" = "true" ]] && CHECK_DOT_ARIA2; then
echo -e "$(DATE_TIME) ${INFO} Deleting .aria2 file ..."
rm -vf "${DOT_ARIA2_FILE}"
fi
}
DELETE_TORRENT_FILES() {
sleep $(($SAVE_SESSION_INTERVAL + 1))
TORRENT_FILES=$(ls "${DOWNLOAD_DIR}" | grep '.*.torrent')
if [[ -f "${ARIA2_SESSION}" && -n "${TORRENT_FILES}" ]]; then
for TORRENT_FILE in "${TORRENT_FILES}"; do
if [[ -n "${TORRENT_FILE}" && -z $(cat "${ARIA2_SESSION}" | grep -i "${TORRENT_FILE%.*}") ]]; then
echo -e "$(DATE_TIME) ${INFO} Deleting .torrent file (enhanced) ..."
rm -vf ${DOWNLOAD_DIR}/${TORRENT_FILE}
fi
done
else
[[ ! -f "${ARIA2_SESSION}" ]] &&
echo -e "$(DATE_TIME) ${ERROR} '${ARIA2_SESSION}' does not exist." ||
echo -e "$(DATE_TIME) ${WARRING} .torrent file does not exist."
fi
}
DELETE_DOT_TORRENT() {
if GET_INFO_HASH; then
if [[ "${DELETE_DOT_TORRENT}" = "true" || "${DELETE_DOT_TORRENT}" = "normal" ]] && [[ -f "${TORRENT_FILE}" ]]; then
echo -e "$(DATE_TIME) ${INFO} Deleting .torrent file ..."
rm -vf ${TORRENT_FILE}
elif [[ "${DELETE_DOT_TORRENT}" = "true" || "${DELETE_DOT_TORRENT}" = "enhanced" ]]; then
DELETE_TORRENT_FILES
elif [[ "${DELETE_DOT_TORRENT}" = "normal" ]]; then
echo -e "$(DATE_TIME) ${WARRING} .torrent file may exist but cannot be found. Recommended to enable enhanced mode."
else
echo -e "$(DATE_TIME) ${INFO} Delete .torrent file function is disabled."
fi
else
echo -e "$(DATE_TIME) ${INFO} General download task, skipped delete .torrent file."
fi
}
DELETE_EMPTY_DIR() {
if [[ "${DELETE_EMPTY_DIR}" = "true" ]]; then
echo -e "$(DATE_TIME) ${INFO} Deleting empty directory ..."
if [[ "${DOWNLOAD_DIR}" =~ "${ARIA2_DOWNLOAD_DIR}" ]]; then
find "${ARIA2_DOWNLOAD_DIR}" ! -path "${ARIA2_DOWNLOAD_DIR}" -depth -type d -empty -exec rm -vrf {} \;
else
find "${DOWNLOAD_DIR}" -depth -type d -empty -exec rm -vrf {} \;
fi
fi
}
DELETE_EXCLUDE_FILE() {
if [[ ${FILE_NUM} -gt 1 ]] && [[ -n ${MIN_SIZE} || -n ${INCLUDE_FILE} || -n ${EXCLUDE_FILE} || -n ${EXCLUDE_FILE_REGEX} || -n ${INCLUDE_FILE_REGEX} ]]; then
echo -e "${INFO} Deleting excluded files ..."
[[ -n ${MIN_SIZE} ]] && find "${TASK_PATH}" -type f -size -${MIN_SIZE} -print0 | xargs -0 rm -vf
[[ -n ${EXCLUDE_FILE} ]] && find "${TASK_PATH}" -type f -regextype posix-extended -iregex ".*\.(${EXCLUDE_FILE})" -print0 | xargs -0 rm -vf
[[ -n ${INCLUDE_FILE} ]] && find "${TASK_PATH}" -type f -regextype posix-extended ! -iregex ".*\.(${INCLUDE_FILE})" -print0 | xargs -0 rm -vf
[[ -n ${EXCLUDE_FILE_REGEX} ]] && find "${TASK_PATH}" -type f -regextype posix-extended -iregex "${EXCLUDE_FILE_REGEX}" -print0 | xargs -0 rm -vf
[[ -n ${INCLUDE_FILE_REGEX} ]] && find "${TASK_PATH}" -type f -regextype posix-extended ! -iregex "${INCLUDE_FILE_REGEX}" -print0 | xargs -0 rm -vf
fi
}
CLEAN_UP() {
DELETE_DOT_ARIA2
DELETE_DOT_TORRENT
DELETE_EXCLUDE_FILE
DELETE_EMPTY_DIR
}

96
aira/config/script/delete.sh Executable file
View File

@ -0,0 +1,96 @@
#!/usr/bin/env bash
#
# https://github.com/P3TERX/aria2.conf
# File namedelete.sh
# Description: Delete files after Aria2 download error or task removed
# Version: 3.0
#
# Copyright (c) 2018-2021 P3TERX <https://p3terx.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
CHECK_CORE_FILE() {
CORE_FILE="$(dirname $0)/core"
if [[ -f "${CORE_FILE}" ]]; then
. "${CORE_FILE}"
else
echo "!!! core file does not exist !!!"
exit 1
fi
}
CHECK_RPC_CONECTION() {
READ_ARIA2_CONF
if [[ "${RPC_SECRET}" ]]; then
RPC_PAYLOAD='{"jsonrpc":"2.0","method":"aria2.getVersion","id":"P3TERX","params":["token:'${RPC_SECRET}'"]}'
else
RPC_PAYLOAD='{"jsonrpc":"2.0","method":"aria2.getVersion","id":"P3TERX"}'
fi
(curl "${RPC_ADDRESS}" -fsSd "${RPC_PAYLOAD}" || curl "https://${RPC_ADDRESS}" -kfsSd "${RPC_PAYLOAD}") >/dev/null
}
DELETE_ON_STOP() {
if [[ "${TASK_STATUS}" = "error" && "${DELETE_ON_ERROR}" = "true" ]] || [[ "${TASK_STATUS}" = "removed" && "${DELETE_ON_REMOVED}" = "true" ]]; then
if [[ -f "${TASK_PATH}.aria2" ]]; then
echo -e "$(DATE_TIME) ${INFO} Download task ${TASK_STATUS}, deleting files..."
rm -vrf "${TASK_PATH}.aria2" "${TASK_PATH}"
else
[[ -e "${TASK_PATH}" ]] &&
echo -e "$(DATE_TIME) ${WARRING} Skip delete. Download completed files: ${TASK_PATH}" ||
echo -e "$(DATE_TIME) ${WARRING} Skip delete. File does not exist: ${TASK_PATH}"
fi
else
echo -e "$(DATE_TIME) ${WARRING} Skip delete. Task status invalid: ${TASK_STATUS}"
fi
}
DELETE_ON_UNKNOWN() {
if [[ -f "${FILE_PATH}.aria2" ]]; then
echo -e "$(DATE_TIME) ${INFO} Download task force removed, deleting files..."
rm -vrf "${FILE_PATH}.aria2" "${FILE_PATH}"
else
[[ -e "${FILE_PATH}" ]] &&
echo -e "$(DATE_TIME) ${WARRING} Skip delete. Download completed files: ${FILE_PATH}" ||
echo -e "$(DATE_TIME) ${WARRING} Skip delete. File does not exist: ${FILE_PATH}"
fi
}
DELETE_FILE() {
if GET_TASK_INFO; then
GET_DOWNLOAD_DIR
GET_TASK_STATUS
CONVERSION_PATH
DELETE_ON_STOP
DELETE_DOT_TORRENT
DELETE_EMPTY_DIR
elif CHECK_RPC_CONECTION && [[ "${DELETE_ON_UNKNOWN}" = "true" && ${FILE_NUM} -eq 1 ]]; then
DELETE_ON_UNKNOWN
else
echo -e "$(DATE_TIME) ${ERROR} Aria2 RPC interface error!"
exit 1
fi
}
CHECK_CORE_FILE "$@"
CHECK_PARAMETER "$@"
CHECK_FILE_NUM
CHECK_SCRIPT_CONF
DELETE_FILE
exit 0

154
aira/config/script/tracker.sh Executable file
View File

@ -0,0 +1,154 @@
#!/usr/bin/env bash
#
# https://github.com/P3TERX/aria2.conf
# File nametracker.sh
# Description: Get BT trackers and add to Aria2
# Version: 3.1
#
# Copyright (c) 2018-2021 P3TERX <https://p3terx.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# BT tracker is provided by the following project.
# https://github.com/XIU2/TrackersListCollection
#
RED_FONT_PREFIX="\033[31m"
GREEN_FONT_PREFIX="\033[32m"
YELLOW_FONT_PREFIX="\033[1;33m"
LIGHT_PURPLE_FONT_PREFIX="\033[1;35m"
FONT_COLOR_SUFFIX="\033[0m"
INFO="[${GREEN_FONT_PREFIX}INFO${FONT_COLOR_SUFFIX}]"
ERROR="[${RED_FONT_PREFIX}ERROR${FONT_COLOR_SUFFIX}]"
ARIA2_CONF=${1:-aria2.conf}
DOWNLOADER="curl -fsSL --connect-timeout 3 --max-time 3 --retry 2"
NL=$'\n'
DATE_TIME() {
date +"%m/%d %H:%M:%S"
}
GET_TRACKERS() {
if [[ -z "${CUSTOM_TRACKER_URL}" ]]; then
echo && echo -e "$(DATE_TIME) ${INFO} Get BT trackers..."
TRACKER=$(
${DOWNLOADER} https://trackerslist.com/all_aria2.txt ||
${DOWNLOADER} https://cdn.statically.io/gh/XIU2/TrackersListCollection/master/all_aria2.txt ||
${DOWNLOADER} https://trackers.p3terx.com/all_aria2.txt
)
else
echo && echo -e "$(DATE_TIME) ${INFO} Get BT trackers from url(s):${CUSTOM_TRACKER_URL} ..."
URLS=$(echo ${CUSTOM_TRACKER_URL} | tr "," "$NL")
for URL in $URLS; do
TRACKER+="$(${DOWNLOADER} ${URL} | tr "," "\n")$NL"
done
TRACKER="$(echo "$TRACKER" | awk NF | sort -u | sed 'H;1h;$!d;x;y/\n/,/' )"
fi
[[ -z "${TRACKER}" ]] && {
echo
echo -e "$(DATE_TIME) ${ERROR} Unable to get trackers, network failure or invalid links." && exit 1
}
}
ECHO_TRACKERS() {
echo -e "
--------------------[BitTorrent Trackers]--------------------
${TRACKER}
--------------------[BitTorrent Trackers]--------------------
"
}
ADD_TRACKERS() {
echo -e "$(DATE_TIME) ${INFO} Adding BT trackers to Aria2 configuration file ${LIGHT_PURPLE_FONT_PREFIX}${ARIA2_CONF}${FONT_COLOR_SUFFIX} ..." && echo
if [ ! -f ${ARIA2_CONF} ]; then
echo -e "$(DATE_TIME) ${ERROR} '${ARIA2_CONF}' does not exist."
exit 1
else
[ -z $(grep "bt-tracker=" ${ARIA2_CONF}) ] && echo "bt-tracker=" >>${ARIA2_CONF}
sed -i "s@^\(bt-tracker=\).*@\1${TRACKER}@" ${ARIA2_CONF} && echo -e "$(DATE_TIME) ${INFO} BT trackers successfully added to Aria2 configuration file !"
fi
}
ADD_TRACKERS_RPC() {
if [[ "${RPC_SECRET}" ]]; then
RPC_PAYLOAD='{"jsonrpc":"2.0","method":"aria2.changeGlobalOption","id":"P3TERX","params":["token:'${RPC_SECRET}'",{"bt-tracker":"'${TRACKER}'"}]}'
else
RPC_PAYLOAD='{"jsonrpc":"2.0","method":"aria2.changeGlobalOption","id":"P3TERX","params":[{"bt-tracker":"'${TRACKER}'"}]}'
fi
curl "${RPC_ADDRESS}" -fsSd "${RPC_PAYLOAD}" || curl "https://${RPC_ADDRESS}" -kfsSd "${RPC_PAYLOAD}"
}
ADD_TRACKERS_RPC_STATUS() {
RPC_RESULT=$(ADD_TRACKERS_RPC)
[[ $(echo ${RPC_RESULT} | grep OK) ]] &&
echo -e "$(DATE_TIME) ${INFO} BT trackers successfully added to Aria2 !" ||
echo -e "$(DATE_TIME) ${ERROR} Network failure or Aria2 RPC interface error!"
}
ADD_TRACKERS_REMOTE_RPC() {
echo -e "$(DATE_TIME) ${INFO} Adding BT trackers to remote Aria2: ${LIGHT_PURPLE_FONT_PREFIX}${RPC_ADDRESS%/*}${FONT_COLOR_SUFFIX} ..." && echo
ADD_TRACKERS_RPC_STATUS
}
ADD_TRACKERS_LOCAL_RPC() {
if [ ! -f ${ARIA2_CONF} ]; then
echo -e "$(DATE_TIME) ${ERROR} '${ARIA2_CONF}' does not exist."
exit 1
else
RPC_PORT=$(grep ^rpc-listen-port ${ARIA2_CONF} | cut -d= -f2-)
RPC_SECRET=$(grep ^rpc-secret ${ARIA2_CONF} | cut -d= -f2-)
[[ ${RPC_PORT} ]] || {
echo -e "$(DATE_TIME) ${ERROR} Aria2 configuration file incomplete."
exit 1
}
RPC_ADDRESS="localhost:${RPC_PORT}/jsonrpc"
echo -e "$(DATE_TIME) ${INFO} Adding BT trackers to Aria2 ..." && echo
ADD_TRACKERS_RPC_STATUS
fi
}
[ $(command -v curl) ] || {
echo -e "$(DATE_TIME) ${ERROR} curl is not installed."
exit 1
}
if [ "$1" = "cat" ]; then
GET_TRACKERS
ECHO_TRACKERS
elif [ "$1" = "RPC" ]; then
RPC_ADDRESS="$2/jsonrpc"
RPC_SECRET="$3"
GET_TRACKERS
ECHO_TRACKERS
ADD_TRACKERS_REMOTE_RPC
elif [ "$2" = "RPC" ]; then
GET_TRACKERS
ECHO_TRACKERS
ADD_TRACKERS
echo
ADD_TRACKERS_LOCAL_RPC
else
GET_TRACKERS
ECHO_TRACKERS
ADD_TRACKERS
fi
exit 0

43
aira/docker-compose.yaml Executable file
View File

@ -0,0 +1,43 @@
---
services:
aira:
container_name: aria
image: p3terx/aria2-pro
environment:
- PUID=65534
- PGID=65534
- UMASK_SET=022
- RPC_SECRET=123456
- RPC_PORT=6800
- LISTEN_PORT=6888
- DISK_CACHE=64M
- IPV6_MODE=false
- UPDATE_TRACKERS=true
- CUSTOM_TRACKER_URL=
- TZ=Asia/Shanghai
volumes:
- ./config:/config
- /mnt/disk1/downloads:/downloads
# network_mode: bridge
ports:
- "16800:6800"
- "16888:6888"
- "16888:6888/udp"
restart: always
logging:
driver: json-file
options:
max-size: 1m
AriaNg:
container_name: ariang
image: p3terx/ariang
command: --port 6880
# network_mode: bridge
ports:
- "4014:6880"
restart: always
logging:
driver: json-file
options:
max-size: 1m

56
autobangumi/config/config.json Executable file
View File

@ -0,0 +1,56 @@
{
"program": {
"rss_time": 900,
"rename_time": 60,
"webui_port": 7892
},
"downloader": {
"type": "qbittorrent",
"host": "http://host.docker.internal:4009/",
"username": "wsq",
"password": "563826",
"path": "/downloads",
"ssl": false
},
"rss_parser": {
"enable": true,
"filter": [
"720",
"\\d+-\\d"
],
"language": "zh"
},
"bangumi_manage": {
"enable": true,
"eps_complete": false,
"rename_method": "pn",
"group_tag": false,
"remove_bad_torrent": false
},
"log": {
"debug_enable": false
},
"proxy": {
"enable": true,
"type": "http",
"host": "host.docker.internal",
"port": 7890,
"username": "",
"password": ""
},
"notification": {
"enable": false,
"type": "telegram",
"token": "",
"chat_id": ""
},
"experimental_openai": {
"enable": false,
"api_key": "",
"api_base": "https://api.openai.com/v1",
"api_type": "openai",
"api_version": "2023-05-15",
"model": "gpt-3.5-turbo",
"deployment_id": ""
}
}

View File

@ -0,0 +1,5 @@
{
"mikan": "https://mikanani.me/RSS/Search?searchstr=%s",
"nyaa": "https://nyaa.si/?page=rss&q=%s&c=0_0&f=0",
"dmhy": "http://dmhy.org/topics/rss/rss.xml?keyword=%s"
}

View File

@ -0,0 +1 @@
3.1.14

BIN
autobangumi/data/data.db Executable file

Binary file not shown.

18
autobangumi/data/log.txt Executable file
View File

@ -0,0 +1,18 @@
[2024-08-30 00:02:49] INFO: Started server process [7]
[2024-08-30 00:02:49] INFO: Waiting for application startup.
[2024-08-30 00:02:49] INFO:
[2024-08-30 00:02:49] INFO: _ ____ _
[2024-08-30 00:02:49] INFO: /\ | | | _ \ (_)
[2024-08-30 00:02:49] INFO: / \ _ _| |_ ___ | |_) | __ _ _ __ __ _ _ _ _ __ ___ _
[2024-08-30 00:02:49] INFO: / /\ \| | | | __/ _ \| _ < / _` | '_ \ / _` | | | | '_ ` _ \| |
[2024-08-30 00:02:49] INFO: / ____ \ |_| | || (_) | |_) | (_| | | | | (_| | |_| | | | | | | |
[2024-08-30 00:02:49] INFO: /_/ \_\__,_|\__\___/|____/ \__,_|_| |_|\__, |\__,_|_| |_| |_|_|
[2024-08-30 00:02:49] INFO: __/ |
[2024-08-30 00:02:49] INFO: |___/
[2024-08-30 00:02:49] INFO: Version 3.1.14 Author: EstrellaXD Twitter: https://twitter.com/Estrella_Pan
[2024-08-30 00:02:49] INFO: GitHub: https://github.com/EstrellaXD/Auto_Bangumi/
[2024-08-30 00:02:49] INFO: Starting AutoBangumi...
[2024-08-30 00:02:49] INFO: Config loaded
[2024-08-30 00:02:50] INFO: Program running.
[2024-08-30 00:02:50] INFO: Application startup complete.
[2024-08-30 00:02:50] INFO: Uvicorn running on http://0.0.0.0:7892 (Press CTRL+C to quit)

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 KiB

22
autobangumi/docker-compose.yaml Executable file
View File

@ -0,0 +1,22 @@
---
services:
autobangumi:
image: "ghcr.io/estrellaxd/auto_bangumi:latest"
container_name: autobangumi
volumes:
- ./config:/app/config
- ./data:/app/data
environment:
- TZ=Asia/Shanghai
- PGID=$(id -g)
- PUID=$(id -u)
- UMASK=022
ports:
- "4013:7892"
restart: always
dns:
- 223.5.5.5
extra_hosts:
- "host.docker.internal:host-gateway"

View File

@ -1,7 +1,7 @@
---
services:
chromium:
image: lscr.io/linuxserver/chromium:latest
image: linuxserver/chromium
container_name: chromium
security_opt:
- seccomp:unconfined #optional
@ -9,14 +9,16 @@ services:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- HTTP_PROXY=http://192.168.187.59:7890
- HTTPS_PROXY=https://192.168.187.59:7890
- HTTP_PROXY=http://host.docker.internal:7890
- HTTPS_PROXY=https://host.docker.internal:7890
# # - ALL_PROXY=socks5://192.168.187.59:7891
volumes:
- /path/to/config:/config
# - /home/wsq/clash:/clash
- /mnt/disk1/downloads:/config/Downloads
ports:
- 4040:3000
- 4041:3001
shm_size: "1gb"
restart: always
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"

Binary file not shown.

View File

@ -7,7 +7,7 @@
icon: /icons/cpu.png
widget:
type: glances
url: http://192.168.187.59:4011
url: http://host.docker.internal:4011
metric: cpu
version: 4
@ -16,7 +16,7 @@
icon: /icons/nvme.png
widget:
type: glances
url: http://192.168.187.59:4011
url: http://host.docker.internal:4011
metric: disk:nvme0n1
version: 4
@ -25,25 +25,17 @@
icon: /icons/storage.png
widget:
type: glances
url: http://192.168.187.59:4011
url: http://host.docker.internal:4011
metric: disk:sda
version: 4
- 面板r:
- 内存:
icon: /icons/memory.png
widget:
type: glances
url: http://192.168.187.59:4011
url: http://host.docker.internal:4011
metric: memory
version: 4
@ -52,7 +44,7 @@
# icon: /icons/wlan.png
# widget:
# type: glances
# url: http://192.168.187.59:4011
# url: http://host.docker.internal:4011
# metric: network:eth0
# version: 4
@ -60,7 +52,7 @@
icon: /icons/lan.png
widget:
type: glances
url: http://192.168.187.59:4011
url: http://host.docker.internal:4011
metric: network:eth0
version: 4
@ -69,7 +61,7 @@
icon: /icons/storage.png
widget:
type: glances
url: http://192.168.187.59:4011
url: http://host.docker.internal:4011
metric: disk:sdb
version: 4
@ -85,27 +77,27 @@
timezone: Asia/Shanghai
- NAS管理:
- Debian:
- MyNas:
icon: /icons/debian.png
href: https://192.168.187.59:9090
href: https://haoru.xyz:9090
# description: Cockpit Web后台管理
siteMonitor: https://192.168.187.59:9090
siteMonitor: https://haoru.xyz:9090
widget:
type: glances
url: http://192.168.187.59:4011
url: http://host.docker.internal:4011
metric: info
version: 4
- Portainer:
icon: /icons/portainer.png
href: http://192.168.187.59:4001
href: http://haoru.xyz:4001
description: Docker管理。
siteMonitor: http://192.168.187.59:4001
siteMonitor: http://host.docker.internal:4001
server: manage-docker
container: portainer
widget:
type: portainer
url: http://192.168.187.59:4001
url: http://host.docker.internal:4001
env: 2
key: ptr_ecOg/YjwG340TBXI1u6eOez8ujkTahLhYp3U9t7l0rM=
@ -113,7 +105,7 @@
icon: /icons/list.png
widget:
type: glances
url: http://192.168.187.59:4011
url: http://host.docker.internal:4011
metric: process
version: 4
@ -121,27 +113,27 @@
- 多媒体:
- Immich:
icon: /icons/immich.png
href: http://192.168.187.59:4002
href: http://haoru.xyz:4002
description: 图片管理。
siteMonitor: http://192.168.187.59:4002
siteMonitor: http://host.docker.internal:4002
server: manage-docker
container: immich_server
widget:
type: immich
url: http://192.168.187.59:4002
url: http://host.docker.internal:4002
key: sRKi3SW6gAyApTD6S9oVCKVGi82nPaRCPD61p7E1B8
- Jellyfin:
icon: /icons/jellyfin.png
href: http://192.168.187.59:4003
href: http://haoru.xyz:4003
description: 影音播放。
siteMonitor: http://192.168.187.59:4003
siteMonitor: http://host.docker.internal:4003
server: manage-docker
container: jellyfin
widget:
type: jellyfin
url: http://192.168.187.59:4003
url: http://host.docker.internal:4003
key: 9be8360675104bc5a6bebe790f67a67b
enableBlocks: true # optional, defaults to false
enableNowPlaying: true # optional, defaults to true
@ -150,35 +142,20 @@
expandOneStreamToTwoRows: false # optional, defaults to true
version: 1
- 文档管理:
- Gitea:
icon: /icons/gitea.png
href: http://192.168.187.59:4008
href: http://haoru.xyz:4008
description: 代码管理服务。
siteMonitor: http://192.168.187.59:4008
siteMonitor: http://host.docker.internal:4008
server: manage-docker
container: gitea
# widget:
# type: customapi
# url: http://192.168.187.59:4008/api/v1
# headers: "token a1eb9dfbefe37b32e7442e98cf9e976eebf24db4"
# mappings:
# - field: key # needs to be YAML string or object
# label: Field 1
# format: text # optional - defaults to text
# http://192.168.187.59:4008/api/v1/users/wsq/activities/feed?access_token=a1eb9dfbefe37b32e7442e98cf9e976eebf24db4
- BookBrowser:
icon: /icons/book.png
href: http://192.168.187.59:4004
href: http://haoru.xyz:4004
description: 书籍漫画浏览。
siteMonitor: http://192.168.187.59:4004
siteMonitor: http://host.docker.internal:4004
server: manage-docker
container: bookbrowser
@ -186,38 +163,55 @@
- 下载服务:
- Qbittorrent:
icon: /icons/qbittorrent.png
href: http://192.168.187.59:4009
description: 下载器。
siteMonitor: http://192.168.187.59:4009
href: http://haoru.xyz:4009
description: 磁力下载器。
siteMonitor: http://host.docker.internal:4009
server: manage-docker
container: qbittorrent
widget:
type: qbittorrent
url: http://192.168.187.59:4009
url: http://host.docker.internal:4009
username: wsq
password: 563826
- 系统工具:
- File Browser:
icon: /icons/filebrowser.png
href: http://192.168.187.59:4010
description: Web版文件浏览器
siteMonitor: http://192.168.187.59:4010
- AutoBangumi:
icon: /icons/autobangumi.png
href: http://haoru.xyz:4013
description: 新番订阅。
siteMonitor: http://host.docker.internal:4013
server: manage-docker
container: filebrowser
container: autobangumi
- Aira:
icon: /icons/aira.png
href: http://haoru.xyz:4014
description: 下载器。
siteMonitor: http://host.docker.internal:4014
server: manage-docker
container: autobangumi
- 系统工具:
- Chromium:
icon: /icons/chromium.png
href: https://192.168.187.59:4041
href: https://haoru.xyz:4041
description: Web版Chromium浏览器。
siteMonitor: https://192.168.187.59:4041
siteMonitor: https://haoru.xyz:4041
server: manage-docker
container: chromium
- File Browser:
icon: /icons/filebrowser.png
href: http://haoru.xyz:4010
description: Web版文件浏览器
siteMonitor: http://host.docker.internal:4010
server: manage-docker
container: filebrowser
- Glances:
icon: /icons/glances.png
href: http://192.168.187.59:4011
href: http://haoru.xyz:4011
description: Web版系统资源监测
siteMonitor: http://192.168.187.59:4011
siteMonitor: http://host.docker.internal:4011

View File

@ -12,3 +12,5 @@ services:
- /mnt/disk1:/volume_1:ro
- /mnt/disk2:/volume_2:ro
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"

BIN
homepage/icons/aira.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
homepage/icons/autobangumi.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
stderr log/postgresql-2024-08-28_164045.log
stderr log/postgresql-2024-08-29_160247.log

Binary file not shown.

View File

@ -10,3 +10,10 @@
2024-08-28 16:40:45.967 UTC [29] LOG: invalid record length at 0/446C6640: wanted 24, got 0
2024-08-28 16:40:45.967 UTC [29] LOG: redo done at 0/446C6608 system usage: CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.00 s
2024-08-28 16:40:46.017 UTC [1] LOG: database system is ready to accept connections
2024-08-28 17:46:31.538 UTC [1] LOG: received fast shutdown request
2024-08-28 17:46:31.543 UTC [1] LOG: aborting any active transactions
2024-08-28 17:46:31.546 UTC [57] FATAL: terminating connection due to administrator command
2024-08-28 17:46:31.550 UTC [56] FATAL: terminating connection due to administrator command
2024-08-28 17:46:31.570 UTC [1] LOG: background worker "logical replication launcher" (PID 46) exited with exit code 1
2024-08-28 17:46:31.571 UTC [41] LOG: shutting down
2024-08-28 17:46:31.673 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,15 @@
2024-08-28 17:47:03.689 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-28 17:47:03.690 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-28 17:47:03.690 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-28 17:47:03.697 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-28 17:47:03.708 UTC [29] LOG: database system was shut down at 2024-08-28 17:46:31 UTC
[2024-08-28T17:47:03Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-28T17:47:03Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-28 17:47:03.747 UTC [1] LOG: database system is ready to accept connections
2024-08-28 17:51:39.484 UTC [1] LOG: received fast shutdown request
2024-08-28 17:51:39.487 UTC [1] LOG: aborting any active transactions
2024-08-28 17:51:39.489 UTC [57] FATAL: terminating connection due to administrator command
2024-08-28 17:51:39.490 UTC [56] FATAL: terminating connection due to administrator command
2024-08-28 17:51:39.499 UTC [1] LOG: background worker "logical replication launcher" (PID 46) exited with exit code 1
2024-08-28 17:51:39.501 UTC [41] LOG: shutting down
2024-08-28 17:51:39.556 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,15 @@
2024-08-28 17:55:05.263 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-28 17:55:05.268 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-28 17:55:05.268 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-28 17:55:05.282 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-28 17:55:05.298 UTC [28] LOG: database system was shut down at 2024-08-28 17:51:39 UTC
[2024-08-28T17:55:05Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-28T17:55:05Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-28 17:55:05.331 UTC [1] LOG: database system is ready to accept connections
2024-08-28 17:57:22.771 UTC [1] LOG: received fast shutdown request
2024-08-28 17:57:22.774 UTC [1] LOG: aborting any active transactions
2024-08-28 17:57:22.779 UTC [56] FATAL: terminating connection due to administrator command
2024-08-28 17:57:22.787 UTC [1] LOG: background worker "logical replication launcher" (PID 45) exited with exit code 1
2024-08-28 17:57:22.788 UTC [57] FATAL: terminating connection due to administrator command
2024-08-28 17:57:22.794 UTC [34] LOG: shutting down
2024-08-28 17:57:22.864 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,15 @@
2024-08-28 17:57:53.916 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-28 17:57:53.919 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-28 17:57:53.919 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-28 17:57:53.935 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-28 17:57:53.951 UTC [28] LOG: database system was shut down at 2024-08-28 17:57:22 UTC
[2024-08-28T17:57:53Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-28T17:57:53Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-28 17:57:54.005 UTC [1] LOG: database system is ready to accept connections
2024-08-28 18:00:06.978 UTC [1] LOG: received fast shutdown request
2024-08-28 18:00:06.981 UTC [1] LOG: aborting any active transactions
2024-08-28 18:00:06.987 UTC [55] FATAL: terminating connection due to administrator command
2024-08-28 18:00:06.988 UTC [56] FATAL: terminating connection due to administrator command
2024-08-28 18:00:06.994 UTC [1] LOG: background worker "logical replication launcher" (PID 39) exited with exit code 1
2024-08-28 18:00:07.003 UTC [34] LOG: shutting down
2024-08-28 18:00:07.054 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,15 @@
2024-08-28 18:12:37.049 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-28 18:12:37.050 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-28 18:12:37.050 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-28 18:12:37.063 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-28 18:12:37.086 UTC [29] LOG: database system was shut down at 2024-08-28 18:00:07 UTC
[2024-08-28T18:12:37Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-28T18:12:37Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-28 18:12:37.167 UTC [1] LOG: database system is ready to accept connections
2024-08-28 18:15:39.109 UTC [1] LOG: received fast shutdown request
2024-08-28 18:15:39.119 UTC [1] LOG: aborting any active transactions
2024-08-28 18:15:39.122 UTC [58] FATAL: terminating connection due to administrator command
2024-08-28 18:15:39.123 UTC [57] FATAL: terminating connection due to administrator command
2024-08-28 18:15:39.140 UTC [1] LOG: background worker "logical replication launcher" (PID 46) exited with exit code 1
2024-08-28 18:15:39.140 UTC [41] LOG: shutting down
2024-08-28 18:15:39.199 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,8 @@
2024-08-28 18:16:12.241 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-28 18:16:12.242 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-28 18:16:12.242 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-28 18:16:12.253 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-28 18:16:12.269 UTC [29] LOG: database system was shut down at 2024-08-28 18:15:39 UTC
[2024-08-28T18:16:12Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-28T18:16:12Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-28 18:16:12.353 UTC [1] LOG: database system is ready to accept connections

View File

@ -0,0 +1,7 @@
2024-08-29 08:02:02.204 UTC [1] LOG: received fast shutdown request
2024-08-29 08:02:02.208 UTC [1] LOG: aborting any active transactions
2024-08-29 08:02:02.211 UTC [58] FATAL: terminating connection due to administrator command
2024-08-29 08:02:02.214 UTC [57] FATAL: terminating connection due to administrator command
2024-08-29 08:02:02.222 UTC [1] LOG: background worker "logical replication launcher" (PID 46) exited with exit code 1
2024-08-29 08:02:02.225 UTC [41] LOG: shutting down
2024-08-29 08:02:02.283 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,16 @@
2024-08-29 08:02:40.876 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 08:02:40.877 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 08:02:40.877 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 08:02:40.884 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 08:02:40.896 UTC [27] LOG: database system was shut down at 2024-08-29 08:02:02 UTC
[2024-08-29T08:02:40Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T08:02:40Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 08:02:40.938 UTC [1] LOG: database system is ready to accept connections
2024-08-29 08:55:46.479 UTC [1] LOG: received fast shutdown request
2024-08-29 08:55:46.481 UTC [1] LOG: aborting any active transactions
2024-08-29 08:55:46.482 UTC [54] FATAL: terminating connection due to administrator command
2024-08-29 08:55:46.482 UTC [55] FATAL: terminating connection due to administrator command
2024-08-29 08:55:46.484 UTC [226] FATAL: terminating connection due to administrator command
2024-08-29 08:55:46.486 UTC [1] LOG: background worker "logical replication launcher" (PID 44) exited with exit code 1
2024-08-29 08:55:46.493 UTC [39] LOG: shutting down
2024-08-29 08:55:46.540 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,15 @@
2024-08-29 08:56:41.702 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 08:56:41.703 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 08:56:41.703 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 08:56:41.709 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 08:56:41.724 UTC [29] LOG: database system was shut down at 2024-08-29 08:55:46 UTC
[2024-08-29T08:56:41Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T08:56:41Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 08:56:41.785 UTC [1] LOG: database system is ready to accept connections
2024-08-29 09:01:55.510 UTC [1] LOG: received fast shutdown request
2024-08-29 09:01:55.514 UTC [1] LOG: aborting any active transactions
2024-08-29 09:01:55.515 UTC [57] FATAL: terminating connection due to administrator command
2024-08-29 09:01:55.516 UTC [58] FATAL: terminating connection due to administrator command
2024-08-29 09:01:55.525 UTC [1] LOG: background worker "logical replication launcher" (PID 46) exited with exit code 1
2024-08-29 09:01:55.530 UTC [35] LOG: shutting down
2024-08-29 09:01:55.570 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,15 @@
2024-08-29 09:02:29.713 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 09:02:29.713 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 09:02:29.713 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 09:02:29.728 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 09:02:29.738 UTC [28] LOG: database system was shut down at 2024-08-29 09:01:55 UTC
[2024-08-29T09:02:29Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T09:02:29Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 09:02:29.787 UTC [1] LOG: database system is ready to accept connections
2024-08-29 09:14:31.611 UTC [1] LOG: received fast shutdown request
2024-08-29 09:14:31.614 UTC [1] LOG: aborting any active transactions
2024-08-29 09:14:31.616 UTC [57] FATAL: terminating connection due to administrator command
2024-08-29 09:14:31.618 UTC [56] FATAL: terminating connection due to administrator command
2024-08-29 09:14:31.631 UTC [1] LOG: background worker "logical replication launcher" (PID 45) exited with exit code 1
2024-08-29 09:14:31.631 UTC [40] LOG: shutting down
2024-08-29 09:14:31.692 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,15 @@
2024-08-29 09:15:35.323 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 09:15:35.324 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 09:15:35.324 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 09:15:35.336 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 09:15:35.357 UTC [29] LOG: database system was shut down at 2024-08-29 09:14:31 UTC
[2024-08-29T09:15:35Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T09:15:35Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 09:15:35.394 UTC [1] LOG: database system is ready to accept connections
2024-08-29 09:19:31.583 UTC [1] LOG: received fast shutdown request
2024-08-29 09:19:31.585 UTC [1] LOG: aborting any active transactions
2024-08-29 09:19:31.587 UTC [59] FATAL: terminating connection due to administrator command
2024-08-29 09:19:31.588 UTC [58] FATAL: terminating connection due to administrator command
2024-08-29 09:19:31.592 UTC [1] LOG: background worker "logical replication launcher" (PID 45) exited with exit code 1
2024-08-29 09:19:31.599 UTC [35] LOG: shutting down
2024-08-29 09:19:31.634 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,13 @@
2024-08-29 09:20:33.772 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 09:20:33.813 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 09:20:33.813 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 09:20:33.824 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 09:20:33.881 UTC [27] LOG: database system was shut down at 2024-08-29 09:19:31 UTC
[2024-08-29T09:20:33Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T09:20:33Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 09:20:33.946 UTC [1] LOG: database system is ready to accept connections
2024-08-29 10:07:28.167 UTC [1] LOG: received fast shutdown request
2024-08-29 10:07:28.188 UTC [1] LOG: aborting any active transactions
2024-08-29 10:07:28.193 UTC [1] LOG: background worker "logical replication launcher" (PID 44) exited with exit code 1
2024-08-29 10:07:28.196 UTC [39] LOG: shutting down
2024-08-29 10:07:28.226 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,17 @@
2024-08-29 10:08:37.654 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 10:08:37.655 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 10:08:37.655 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 10:08:37.661 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 10:08:37.674 UTC [28] LOG: database system was shut down at 2024-08-29 10:07:28 UTC
[2024-08-29T10:08:37Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T10:08:37Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 10:08:37.779 UTC [1] LOG: database system is ready to accept connections
2024-08-29 10:08:51.772 UTC [1] LOG: received fast shutdown request
2024-08-29 10:08:51.775 UTC [1] LOG: aborting any active transactions
2024-08-29 10:08:51.777 UTC [55] FATAL: terminating connection due to administrator command
2024-08-29 10:08:51.778 UTC [1] LOG: background worker "logical replication launcher" (PID 45) exited with exit code 1
2024-08-29 10:08:51.779 UTC [56] FATAL: terminating connection due to administrator command
2024-08-29 10:08:51.780 UTC [59] FATAL: terminating connection due to administrator command
2024-08-29 10:08:51.783 UTC [57] FATAL: terminating connection due to administrator command
2024-08-29 10:08:51.789 UTC [40] LOG: shutting down
2024-08-29 10:08:51.839 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,14 @@
2024-08-29 10:09:54.203 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 10:09:54.204 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 10:09:54.204 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 10:09:54.212 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 10:09:54.230 UTC [28] LOG: database system was shut down at 2024-08-29 10:08:51 UTC
[2024-08-29T10:09:54Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T10:09:54Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 10:09:54.264 UTC [1] LOG: database system is ready to accept connections
2024-08-29 10:19:29.131 UTC [1] LOG: received fast shutdown request
2024-08-29 10:19:29.136 UTC [1] LOG: aborting any active transactions
2024-08-29 10:19:29.137 UTC [55] FATAL: terminating connection due to administrator command
2024-08-29 10:19:29.137 UTC [56] FATAL: terminating connection due to administrator command
2024-08-29 10:19:29.151 UTC [1] LOG: background worker "logical replication launcher" (PID 39) exited with exit code 1
2024-08-29 10:19:29.154 UTC [32] LOG: shutting down

View File

@ -0,0 +1,15 @@
2024-08-29 10:20:06.196 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 10:20:06.197 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 10:20:06.197 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 10:20:06.204 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 10:20:06.276 UTC [28] LOG: database system was shut down at 2024-08-29 10:19:29 UTC
[2024-08-29T10:20:06Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T10:20:06Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 10:20:06.321 UTC [1] LOG: database system is ready to accept connections
2024-08-29 10:28:47.151 UTC [1] LOG: received fast shutdown request
2024-08-29 10:28:47.156 UTC [1] LOG: aborting any active transactions
2024-08-29 10:28:47.158 UTC [58] FATAL: terminating connection due to administrator command
2024-08-29 10:28:47.158 UTC [57] FATAL: terminating connection due to administrator command
2024-08-29 10:28:47.175 UTC [1] LOG: background worker "logical replication launcher" (PID 45) exited with exit code 1
2024-08-29 10:28:47.175 UTC [40] LOG: shutting down
2024-08-29 10:28:47.212 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,15 @@
2024-08-29 10:30:13.140 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 10:30:13.155 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 10:30:13.155 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 10:30:13.163 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 10:30:13.181 UTC [29] LOG: database system was shut down at 2024-08-29 10:28:47 UTC
[2024-08-29T10:30:13Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T10:30:13Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 10:30:13.242 UTC [1] LOG: database system is ready to accept connections
2024-08-29 10:36:02.540 UTC [1] LOG: received fast shutdown request
2024-08-29 10:36:02.543 UTC [1] LOG: aborting any active transactions
2024-08-29 10:36:02.545 UTC [57] FATAL: terminating connection due to administrator command
2024-08-29 10:36:02.547 UTC [56] FATAL: terminating connection due to administrator command
2024-08-29 10:36:02.565 UTC [1] LOG: background worker "logical replication launcher" (PID 46) exited with exit code 1
2024-08-29 10:36:02.571 UTC [41] LOG: shutting down
2024-08-29 10:36:02.624 UTC [1] LOG: database system is shut down

View File

@ -0,0 +1,13 @@
2024-08-29 10:36:34.351 UTC [1] LOG: starting PostgreSQL 14.10 (Debian 14.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-08-29 10:36:34.352 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-08-29 10:36:34.352 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-08-29 10:36:34.376 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-08-29 10:36:34.386 UTC [28] LOG: database system was shut down at 2024-08-29 10:36:02 UTC
[2024-08-29T10:36:34Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17575".
[2024-08-29T10:36:34Z INFO service::utils::clean] Find directory "pg_vectors/indexes/17331".
2024-08-29 10:36:34.430 UTC [1] LOG: database system is ready to accept connections
2024-08-29 16:02:09.107 UTC [1] LOG: received fast shutdown request
2024-08-29 16:02:09.110 UTC [1] LOG: aborting any active transactions
2024-08-29 16:02:09.115 UTC [1] LOG: background worker "logical replication launcher" (PID 45) exited with exit code 1
2024-08-29 16:02:09.121 UTC [40] LOG: shutting down
2024-08-29 16:02:09.176 UTC [1] LOG: database system is shut down

Some files were not shown because too many files have changed in this diff Show More