You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v2.3.0(zip package downloaded directly in releases)
problems encountered
According to the installation instructions, you can use ssh to run anki-sync-server. Once ssh is closed, anki-sync-server cannot run. How to keep anki-sync-server running when ssh is disconnected?
try it yourself
Ankisyncd.conf file save location: /home/www/service/src/ankisyncd.conf
I tried to write a Systemd daemon myself, but it didn't work after restarting Systemd.
Run the code python3 -m ankisyncd in the /home/www/service/src/ directory, and execute python3 -m ./src/ankisyncd in the /home/www/service directory, it will not run,Error code: /usr/bin/python3: Relative module names not supported
My current solution
Install screen: sudo apt-get install screen
run screen -S anki
cd /home/www/service/src/ ,run python3 -m ankisyncd
Looks like for python we need to import subprocess, if anyone who knows how to do can guide us how to do so or if there are any other solutions to running it detached so that I can exit out of ssh without keeping it open for the sync server
system message
operating system
python version
anki-sync-server version
problems encountered
try it yourself
My current solution
sudo apt-get install screen
screen -S anki
cd /home/www/service/src/
,runpython3 -m ankisyncd
system code
[Unit]
Description=anki
After=network.target
[Service]
Type=simple
User=$USER
Restart=on-abnormal
RestartSec=5s
ExecStart=/usr/bin/python3 -m ankisyncd
WorkingDirectory=/home/www/service/src
[Install]
WantedBy=multi-user.targe
The text was updated successfully, but these errors were encountered: