Suwayomi-Server Proxmox LXC script

Suwayomi is a free and open source manga reader server that runs extensions built for Mihon (Tachiyomi).

To create a new Proxmox VE Suwayomi-Server LXC, run the command below in the Proxmox VE Shell.
To Update Suwayomi-Server, run the command below (or type update) in the LXC Console.

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/suwayomiserver.sh)"
  • This application is conflicting with Kaspersky products. You need to disable Kaspersky in order to use this application.

Default settings

CPU: 1vCPU
RAM: 1GB
HDD: 4GB
Default Interface: IP:4567

Seems to be an error in you script:
/bin/jexec (jexec) in auto mode
⠧update-alternatives: using /usr/lib/jvm/temurin-21-jdk-amd64/lib/jspawnhelper to provide /usr/bin/jspawnhelper (jspawnhelper) in auto mode
Processing triggers for man-db (2.11.2-2) …
⠙Processing triggers for libc-bin (2.36-9+deb12u10) …
:check_mark: Installed Temurin JDK 21
⠸Selecting previously unselected package suwayomi-server.
(Reading database … 22742 files and directories currently installed.)
Preparing to unpack /tmp/tmp.YamBlyAyc6 …
Unpacking suwayomi-server (2.0.1727-1) …
⠹dpkg: dependency problems prevent configuration of suwayomi-server:
suwayomi-server depends on openjdk-21-jre; however:
Package openjdk-21-jre is not installed.

dpkg: error processing package suwayomi-server (–install):
dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1) …
Errors were encountered while processing:
suwayomi-server

[ERROR] in line 26: exit code 0: while executing command $STD dpkg -i “$temp_file”
curl: (22) The requested URL returned error: 400
/dev/fd/63: line 74: SPINNER_PID: unbound variable
root@pve:~#

Script is not working at the moment. Need to wait for a new Suwayomi release.

Script is working again.

due to kotlin error in stable release…
i want to user suwayomi-server-preview instead of stable release.. which part of script do i have to change?

Try something like this maybe

source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os

msg_info "Installing Dependencies"
$STD apt-get install -y libc++-dev
msg_ok "Installed Dependencies"

JAVA_VERSION=21 setup_java

fetch_and_deploy_gh_release "Suwayomi-server" "Suwayomi/Suwayomi-Server-preview" "prebuild" "latest" "/opt/Suwayomi-server" "Suwayomi-Server-*-linux-x64.tar.gz"

msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/Suwayomi-server.service
[Unit]
Description=Suwayomi-server Service
After=network.target

[Service]
User=root
Type=simple
ExecStart=/usr/bin/java -jar /opt/Suwayomi-server/bin/Suwayomi-Server.jar
TimeoutStopSec=20
Restart=always

[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now Suwayomi-server
msg_ok "Created Service"

motd_ssh
customize

msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"