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

ERROR: The OUTPUT_URL scheme http requires the 'lftp' command, which is missing! #1003

Closed
dheeraj86mathur opened this issue Sep 20, 2016 · 4 comments

Comments

@dheeraj86mathur
Copy link

dheeraj86mathur commented Sep 20, 2016

Relax-and-Recover (rear) Issue Template

Please fill in the following items before submitting a new issue:

  • rear version (/usr/sbin/rear -V):
    rear-1.17.2-1

  • OS version (cat /etc/rear/os.conf or lsb_release -a): RHEL 6.7

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

    [root@host1 ~]# cat /etc/rear/local.conf
    # Default is to create Relax-and-Recover rescue media as ISO image
    # set OUTPUT to change that
    # set BACKUP to activate an automated (backup and) restore of your data
    # Possible configuration values can be found in /usr/share/rear/conf/default.conf
    #
    # This file (local.conf) is intended for manual configuration. For configuration
    # through packages and other automated means we recommend creating a new
    # file named site.conf next to this file and to leave the local.conf as it is.
    # Our packages will never ship with a site.conf.
    OUTPUT=ISO
    BACKUP=NETFS
    BACKUP_URL="http://abcd.partners/"
    OUTPUT_URL="http://abcd.partners/"
    NETFS_KEEP_OLD_BACKUP_COPY=y
    BACKUP_PROG_EXCLUDE=("${BACKUP_PROG_EXCLUDE[@]}" '/mnt' '/media' '/var/crash')
    [root@host1 ~]#
    
  • Brief description of the issue

I am trying to setup rear using http. I have already verified http server connectivity from the server with curl download. Let me know settings that are required for using Http for rear backup/iso upload to http server. Can anyone provide a sample local.conf for using http.

Is there any userid/password also need to setup on http server ? what settings will be required from http server side.

I got messages:
ERROR: The OUTPUT_URL scheme http requires the 'lftp' command, which is missing!

  • Work-around, if any

None so far.

@jsmeix
Copy link
Member

jsmeix commented Sep 20, 2016

That error message comes from
usr/share/rear/prep/default/04_check_output_scheme.sh
therein

    case $output_scheme in
       (fish|ftp|ftps|hftp|http|https|sftp)
          if [[ -z "$(type -p lftp)" ]]; then
             Error "The OUTPUT_URL scheme $output_scheme requires the 'lftp' command, which is missing!"
          fi ;;

I.e. "type -p lftp" results nothing on your system
which means you have to install the right RPM package
for your RHEL 6.7 system that provides the lftp program.
I don't know what RPM package that is on RHEL 6.7.
E.g. on my SLES12-SP2-RC1 system the RPM
package 'lftp' provides /usr/bin/lftp.

@jsmeix jsmeix closed this as completed Sep 20, 2016
@dheeraj86mathur
Copy link
Author

dheeraj86mathur commented Sep 20, 2016

I installed it and then reran, this i got error that put method not
supported ?.. What did miss . Do i need to specify any credentials
somewhere ??
Exact error message is :

mput: Operation not supported: 405 Method Not Allowed (PUT)

On Tuesday, 20 September 2016, Johannes Meixner notifications@github.com
wrote:

Closed #1003 #1003.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1003 (comment), or mute the
thread
https://github.com/notifications/unsubscribe-auth/AUV1U1uegNW9pyX4ioJUJJxbuBnmEfQXks5qr6ZjgaJpZM4KBROT
.

Sent from Gmail Mobile

@jsmeix
Copy link
Member

jsmeix commented Sep 21, 2016

The "mput: Operation not supported: 405 Method Not Allowed (PUT)"
error message comes not from rear but from lftp.

You need to find out why the PUT method is not allowed
on your FTP server.

I.e. check the config of your FTP server so that
on the client where rear runs (rear runs as root)
it works to upload files onto your FTP server.

In general see the section
"Debugging issues with Relax-and-Recover (rear)" in
https://en.opensuse.org/SDB:Disaster_Recovery

I.e. run "rear -d -D mkbackup" and inspect the rear log file
what exact lftp command rear runs and then try to run an
analogous lftp command manually as root on the client
where rear runs and adapt your FTP server config
until you can upload files this way onto your FTP server.

@jsmeix
Copy link
Member

jsmeix commented Sep 21, 2016

The "mput: Operation not supported: 405 Method Not Allowed (PUT)"
issue is #1005

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

2 participants