Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Zoraxy update to 3.1.2 failed #25

Closed Answered by JcMinarro
Hindin81 asked this question in Q&A
Discussion options

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

You must be logged in to vote

@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

Comment options

From changelog:

2024年10月25日

Changed

  • Zoraxy LXC (Commit)
    • Switch built from source to a pre-compiled binary version.
    • Breaking Change
You must be logged in to vote
4 replies
Comment options

How migration to the new pre-compiled binary should be done?

Comment options

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

Comment options

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

Comment options

⚠️ the directory /opt/zoraxy/src contains the user config, do not remove it before you copy its data to a new folder

Comment options

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?

You must be logged in to vote
1 reply
Comment options

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.

Comment options

Edit: see #25 (comment)

You must be logged in to vote
1 reply
Comment options

⚠️ the directory /opt/zoraxy/src contains the user config, do not remove it before you copy its data to a new folder

Comment options

@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
You must be logged in to vote
1 reply
Comment options

updated my comment.

Answer selected by havardthom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
not a script issue This is not a script issue

AltStyle によって変換されたページ (->オリジナル) /