-
-
Notifications
You must be signed in to change notification settings - Fork 2k
-
Hello when you want to update Zoraxy to 3.1.2 then the following error message appears:
\rm: cannot remove '/opt/zoraxy/zoraxy': No such file or directory
[ERROR] in line 63: exit code 0: while executing command rm /opt/zoraxy/zoraxy
kind regards
Daniel
Beta Was this translation helpful? Give feedback.
All reactions
@dsiebel @havardthom Please, update the commands you are using in your comments because you are removing the directory /opt/zoraxy/ but it contains any previous data the user had.
Those are the steps I have followed to update Zoraxy LXC:
systemctl stop zoraxy.service
mv /opt/zoraxy/src /opt/data/
rm -r /opt/data/Makefile /opt/data/*.go /opt/data/go.mod /opt/zoraxy/go.sum /opt/zoraxy/start.sh /opt/zoraxy/
mv /opt/data /opt/zoraxy
sed -i 's/ExecStart=\/opt\/zoraxy\/src\/.\/zoraxy/ExecStart=\/opt\/zoraxy\/.\/zoraxy/g' /etc/systemd/system/zoraxy.service
sed -i 's/WorkingDirectory=\/opt\/zoraxy\/src\//WorkingDirectory=\/opt\/zoraxy\//g' /etc/systemd/system/zoraxy.service
systemctl daemon-reloa...Replies: 4 comments 7 replies
-
From changelog:
2024年10月25日
Changed
- Zoraxy LXC (Commit)
- Switch built from source to a pre-compiled binary version.
- Breaking Change
Beta Was this translation helpful? Give feedback.
All reactions
-
How migration to the new pre-compiled binary should be done?
Beta Was this translation helpful? Give feedback.
All reactions
-
Hey, there!
I was the one who did the original implementation, here's what I did to migrate my existing Zoraxy LXCs:
systemctl stop zoraxy.service
mv /opt/zoraxy/src /opt/data/
rm -r /opt/data/Makefile /opt/data/*.go /opt/data/go.mod /opt/zoraxy/go.sum /opt/zoraxy/start.sh /opt/zoraxy/
mv /opt/data /opt/zoraxy
sed -i 's/ExecStart=\/opt\/zoraxy\/src\/.\/zoraxy/ExecStart=\/opt\/zoraxy\/.\/zoraxy/g' /etc/systemd/system/zoraxy.service
sed -i 's/WorkingDirectory=\/opt\/zoraxy\/src\//WorkingDirectory=\/opt\/zoraxy\//g' /etc/systemd/system/zoraxy.service
systemctl daemon-reload
update
EDIT: adopting suggestions from @JcMinarro below
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 2
-
The update script will keep failing because the isn't any /opt/zoraxy/zoraxy files to be removed.
I will try to update later, but an extra step would be needed, at least touching the file touch /opt/zoraxy/zoraxy before update is run
Beta Was this translation helpful? Give feedback.
All reactions
-
/opt/zoraxy/src contains the user config, do not remove it before you copy its data to a new folder
Beta Was this translation helpful? Give feedback.
All reactions
-
Hello when you want to update Zoraxy to 3.1.2 then the following error message appears:
\rm: cannot remove '/opt/zoraxy/zoraxy': No such file or directory
[ERROR] in line 63: exit code 0: while executing command rm /opt/zoraxy/zoraxy
kind regards Daniel
I just tried it on one of my Zoraxy LXC and it worked just fine
_____
/__ / ____ _________ __ ____ __
/ / / __ \/ ___/ __ `/ |/_/ / / /
/ /__/ /_/ / / / /_/ /> </ /_/ /
/____/\____/_/ \__,_/_/|_|\__, /
/____/
✓ Updated Zoraxy
What did you run to update it?
Beta Was this translation helpful? Give feedback.
All reactions
-
When I use: touch /opt/zoraxy/zoraxy and then the command update, it says updated. But Zoraxy is still in Version 3.1.1 active and not the new one in 3.1.2.
Beta Was this translation helpful? Give feedback.
All reactions
-
Edit: see #25 (comment)
Beta Was this translation helpful? Give feedback.
All reactions
-
/opt/zoraxy/src contains the user config, do not remove it before you copy its data to a new folder
Beta Was this translation helpful? Give feedback.
All reactions
-
@dsiebel @havardthom Please, update the commands you are using in your comments because you are removing the directory /opt/zoraxy/ but it contains any previous data the user had.
Those are the steps I have followed to update Zoraxy LXC:
systemctl stop zoraxy.service
mv /opt/zoraxy/src /opt/data/
rm -r /opt/data/Makefile /opt/data/*.go /opt/data/go.mod /opt/zoraxy/go.sum /opt/zoraxy/start.sh /opt/zoraxy/
mv /opt/data /opt/zoraxy
sed -i 's/ExecStart=\/opt\/zoraxy\/src\/.\/zoraxy/ExecStart=\/opt\/zoraxy\/.\/zoraxy/g' /etc/systemd/system/zoraxy.service
sed -i 's/WorkingDirectory=\/opt\/zoraxy\/src\//WorkingDirectory=\/opt\/zoraxy\//g' /etc/systemd/system/zoraxy.service
systemctl daemon-reload
update
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 3
-
updated my comment.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1