Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BinCopyTo: command not found #1723

Closed
shellster opened this issue Feb 1, 2018 · 6 comments
Closed

BinCopyTo: command not found #1723

shellster opened this issue Feb 1, 2018 · 6 comments

Comments

@shellster
Copy link

shellster commented Feb 1, 2018

Relax-and-Recover (ReaR) Issue Template

Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):

  • rear version (/usr/sbin/rear -V): Relax-and-Recover 2.2-git.2688.3ad23a02.master.changed / 2017-12-19

  • OS version (cat /etc/rear/os.conf or lsb_release -a): Debian GNU/Linux 9.3 (stretch)

  • rear configuration files (cat /etc/rear/site.conf or cat /etc/rear/local.conf):

OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=cifs://<redacted ip>/<redacted folder>
BACKUP_OPTIONS="cred=/etc/rear/.cifs"
  • Are you using legacy BIOS or UEFI boot? Legacy

  • Brief description of the issue:
    Every time I run "rear mkbackup" it fails. When I look at the log this is the error:

/usr/share/rear/build/GNU/Linux/39_copy_binaries_libraries.sh: line 35: BinCopyTo: command not found
2018-02-01 13:31:53.595901730 ERROR: Could not copy binaries
==== Stack trace ====
Trace 0: /usr/sbin/rear:543 main
Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:15 WORKFLOW_mkbackup
Trace 2: /usr/share/rear/lib/framework-functions.sh:101 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:49 Source
Trace 4: /usr/share/rear/build/GNU/Linux/39_copy_binaries_libraries.sh:36 source
Trace 5: /usr/share/rear/lib/_input-output-functions.sh:251 StopIfError
Message: Could not copy binaries
== End stack trace ==
2018-02-01 13:31:53.620024402 Running exit tasks.
2018-02-01 13:31:53.628693199 Finished in 38 seconds
2018-02-01 13:31:53.634492385 Removing build area /tmp/rear.bYjK4ddPCxlVb9R
2018-02-01 13:31:54.013124197 End of program reached
  • Work-around, if any:
    I searched for "BinCopyTo" but I can't find any reference to it anywhere except in the file mentioned in the error message. I've pulled the latest version of rear from the Debian repo. I'm fairly linux savvy, so I'm happy to provide additional info or try things, if helpful.
@gozora
Copy link
Member

gozora commented Feb 2, 2018

Can you run rear -d -D mkbackup and attach here your log file from /var/log/rear/ directory?

V.

@shellster
Copy link
Author

I've attached the log, as requested. I've redacted the machine name and various IP addresses, but it is otherwise the complete log.

Thanks for responding.

rear-redacted.log

@gozora
Copy link
Member

gozora commented Feb 4, 2018

Hi @shellster,
There is something wrong with your installation of ReaR.
In the attached log it reads Relax-and-Recover 2.2-git.2688.3ad23a02.master.changed which is OK.
What is wrong however, are script prefix numbers which change in ReaR >= 2.0 from 2 to 3 digits.
E.g.
You have currently two versions of *copy_binaries_libraries.sh:

39_copy_binaries_libraries.sh
and
390_copy_binaries_libraries.sh

Looks like you've just extracted tar ball with ReaR 2.2 over ReaR < 2.0.
To fix this you should completely remove directory /usr/share/rear directory and extract tar ball (with ReaR 2.2) again.
After this, your strange error should disappear.

V.

@jsmeix
Copy link
Member

jsmeix commented Feb 6, 2018

FWIW:
The special BinCopyTo() function in the global lib/linux-functions.sh was replaced
by the specific copy_binaries() in build/GNU/Linux/390_copy_binaries_libraries.sh via
54f2c45

Of course a mix-up of old and new ReaR scripts fails in arbitrary ways.

@gozora
many thanks for the analysis what the root cause of this issue is.

@jsmeix
Copy link
Member

jsmeix commented Feb 6, 2018

@shellster

FYI:

How you could test the current ReaR GitHub master code
without get things messed up with an already installed ReaR
(e.g. as software package from a Linux distribution):

Basically "git clone" it into a separated directory and then
configure and run ReaR from within that directory like:

# git clone https://github.com/rear/rear.git

# mv rear rear.github.master

# cd rear.github.master

# vi etc/rear/local.conf

# usr/sbin/rear -D mkbackup

Note the relative paths "etc/rear/" and "usr/sbin/".

In general regarding getting ReaR software packages see
http://relax-and-recover.org/download/

In general regarding ReaR version upgrades see the section
"Version upgrades with Relax-and-Recover" at
https://en.opensuse.org/SDB:Disaster_Recovery

In general regarding debugging issues in ReaR see the section
"Debugging issues with Relax-and-Recover" at
https://en.opensuse.org/SDB:Disaster_Recovery

@shellster
Copy link
Author

Thank you guys for your help. Deleting all the copies and checking out the latest github version fixed that error. It's still failing on a completely new error, but at least it closes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants