Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: amaddclient error

  1. #1
    Join Date
    Oct 2012
    Location
    USA
    Posts
    21

    Question amaddclient error

    First off, I'm new to Amanda so please forgive my ignorance. I've spent the last week working through things via the web but now I think I need some real help...

    Setup:
    Server is Ubuntu 12.04.1 LTS (64-bit). Amanda version is [URL="http://www.zmanda.com/downloads/community/Amanda/3.3.2/Ubuntu-12.04/amanda-backup-server_3.3.2-1Ubuntu1204_amd64.deb"]3.3.2[/URL].

    Issue:
    Logged in as amandabackup, I ran the following command to add a Windows server:
    Code:
    amaddclient --config WindowsBU --client amanda-client2.homenet.local --diskdev \"c:users/rsickler/downloads\"  --dumptype windows-unc-simple
    The error was:
    Code:
    amaddclient --config WindowsBU --client amanda-client2.homenet.local --diskdev \"c:users/rsickler/downloads\"  --dumptype windows-unc-simple
    Logging to /var/log/amanda/amaddclient.20121019112700.debug
    ERROR: Cannot open /etc/amanda/template.d/dumptypes file : No such file or directory
    So, I checked to make sure the /etc/amanda/template.d/dumptypes file existed. It didn't so I created it. I ran the command again and got some crazy (longer) string thrown back at me:

    Code:
    amaddclient --config WindowsBU --client amanda-client2.homenet.local --diskdev \"c:users/rsickler/downloads\"  --dumptype windows-unc-simple
    Logging to /var/log/amanda/amaddclient.20121019113335.debug
    /etc/amanda/WindowsBU/disklist updated
    updating /var/lib/amanda/.amandahosts on h1p-backup1.homenet.local
    Attempting to update /var/lib/amanda/.amandahosts on amanda-client2.homenet.local
    ssh: connect to host amanda-client2.homenet.local port 22: Connection refused
    WARNING: scp from amanda-client2.homenet.local not successful.
    Check amanda-client2.homenet.local:/var/lib/amanda/.amandahosts file.
    If entry 'h1p-backup1.homenet.local amandabackup' is not present,
    append the entry to the file manually.
    Creating amanda-client.conf for amanda-client2.homenet.local
    Creating  /etc/amanda/WindowsBU on amanda-client2.homenet.local
    ssh: connect to host amanda-client2.homenet.local port 22: Connection refused
    WARNING: Cannot create /etc/amanda/WindowsBU on amanda-client2.homenet.local
    Please copy /var/lib/amanda/amanda-client.conf-amanda-client2.homenet.local to amanda-client2.homenet.local manually
    File /var/lib/amanda/example/xinetd.amandaclient contains the latest Amanda client daemon configuration.
    Please merge it to /etc/xinetd.d/amandaclient.
    Here comes the ignorance.... I have no clue what all that means! I'm also wondering how up to date the info is in the wiki. Ive been heavily working from the following pages:

    1. [URL="http://amanda.zmanda.com/quick-backup-setup.html"]The 15-Minute Backup Solution[/URL]
    2. [URL="http://wiki.zmanda.com/index.php/GSWA/Build_a_Basic_Configuration"]GSWA/Build a Basic Configuration[/URL]
    3. [URL="http://wiki.zmanda.com/man/amanda.conf.5.html"]amanda.conf[/URL]
    4. [URL="http://wiki.zmanda.com/index.php/Zmanda_Windows_Client"]Zmanda Windows Client[/URL]

    Any help would be great and, again, please forgive my ignorance.

  2. #2
    Join Date
    Aug 2012
    Posts
    81

    Default

    Quote Originally Posted by homenet View Post

    The error was:
    Code:
    amaddclient --config WindowsBU --client amanda-client2.homenet.local --diskdev \"c:users/rsickler/downloads\"  --dumptype windows-unc-simple
    Logging to /var/log/amanda/amaddclient.20121019112700.debug
    ERROR: Cannot open /etc/amanda/template.d/dumptypes file : No such file or directory
    Don't need \", just put --diskdev c:/users/rsickler/downloads

    So, I checked to make sure the /etc/amanda/template.d/dumptypes file existed. It didn't so I created it. I ran the command again and got some crazy (longer) string thrown back at me:
    The dumptypes file should be created by the Amadna Server Installer, if the installation was success. You can't create it manually.
    If your client is a windows machine, you need to install ZWC on your client and add a ZWC dumptype definition in the dumptypes file.

    Following "The 15-Minute Backup Solution" step by step re-install the Amanda Server carefully, and install ZWC on your windows clients. You would survive.

  3. #3
    Join Date
    Oct 2012
    Location
    USA
    Posts
    21

    Default

    Quote Originally Posted by xHan View Post
    Don't need \", just put --diskdev c:/users/rsickler/downloads
    I used \ to escape the quote (evidently it's a special character from what I've read). For future reference, are you saying quotes are not special characters? I thought they were used to deal with whitespace like blanks (spaces) and whatnot. I know I don't have any spaces in that path but I didn't know it would hurt either. I figured I'd always use them for consistencey.


    Quote Originally Posted by xHan View Post
    The dumptypes file should be created by the Amadna Server Installer, if the installation was success. You can't create it manually.
    I used the following process to install Amanda Server:
    Code:
    wget http://www.zmanda.com/downloads/community/Amanda/3.3.2/Ubuntu-12.04/amanda-backup-server_3.3.2-1Ubuntu1204_amd64.deb
    sudo dpkg -i amanda-backup-server_3.3.2-1Ubuntu1204_amd64.deb
    sudo apt-get -f install
    Installing the deb file did throw an error but it was nagging about dependencies which should've been taken care of via the apt-get -f command after that. If I installed it incorrectly, by all means, please tell me and I'll start from scratch and do it all over again.


    Quote Originally Posted by xHan View Post
    If your client is a windows machine, you need to install ZWC on your client and add a ZWC dumptype definition in the dumptypes file.
    I installed it the [URL="http://cdn.zmanda.com/downloads/community/Amanda/3.3.2/Windows/ZWC-Community-3.3-64bit.zip"]package[/URL] I pulled from the site. It gave no errors. After that, I created a folder on the Amanda server (/etc/amanda/WindowsBU) and dropped amanda.conf in it. Below is that conf.

    Code:
    org "HomeNet"
    infofile "/amanda/state/curinfo"
    logdir "/amanda/state/log"
    indexdir "/amanda/state/index"
    dumpuser "amandabackup"
    inparallel 4 # Maximum dumpers that will run in parallel (max 63)
    
    tpchanger "chg-disk:/amanda/vtapes"
    labelstr "MyData[0-9][0-9]"
    autolabel "MyData%%" EMPTY VOLUME_ERROR
    tapecycle 4
    dumpcycle 3 days
    amrecover_changer "changer"
    usetimestamps yes
    
    tapetype "NFSSHARE"
    define tapetype NFSSHARE {
      length 100 mbytes
      filemark 4 kbytes
    }
    
    define dumptype global {
        comment "Global definitions"
        # This is quite useful for setting global parameters, so you don't have
        # to type them everywhere.  All dumptype definitions in this sample file
        # do include these definitions, either directly or indirectly.
        # There's nothing special about the name `global'; if you create any
        # dumptype that does not contain the word `global' or the name of any
        # other dumptype that contains it, these definitions won't apply.
        # Note that these definitions may be overridden in other
        # dumptypes, if the redefinitions appear *after* the `global'
        # dumptype name.
        # You may want to use this for globally enabling or disabling
        # indexing, recording, etc.  Some examples:
        index yes
        # record no
        auth "bsdtcp"
        program "DUMP"
        compress client fast
        maxdumps 1
    }
    
    define dumptype windows-unc-compressed {
        global      # inherit the parameters in dumptype 'global'
    }
    
    define dumptype windows-unc-simple {
        global      # inherit the parameters in dumptype 'global'
        compress none
    }
    
    holdingdisk hd1 {
        directory "/amanda/holding"
        use 50 mbytes
        chunksize 1 mbyte
    }
    Quote Originally Posted by xHan View Post
    Following "The 15-Minute Backup Solution" step by step re-install the Amanda Server carefully, and install ZWC on your windows clients. You would survive.
    I was doing that until I started getting errors (that's why I was asking if the wiki was up to date.) with a few commands that are no longer supported and/or were just giving errors. After that, I started using the GSWA guide.

  4. #4
    Join Date
    Aug 2012
    Posts
    81

    Default

    Quote Originally Posted by homenet View Post
    I used \ to escape the quote (evidently it's a special character from what I've read). For future reference, are you saying quotes are not special characters? I thought they were used to deal with whitespace like blanks (spaces) and whatnot. I know I don't have any spaces in that path but I didn't know it would hurt either. I figured I'd always use them for consistencey.
    The quotes mark at here is not necessary.



    I used the following process to install Amanda Server:
    Code:
    wget http://www.zmanda.com/downloads/community/Amanda/3.3.2/Ubuntu-12.04/amanda-backup-server_3.3.2-1Ubuntu1204_amd64.deb
    sudo dpkg -i amanda-backup-server_3.3.2-1Ubuntu1204_amd64.deb
    sudo apt-get -f install
    Installing the deb file did throw an error but it was nagging about dependencies which should've been taken care of via the apt-get -f command after that. If I installed it incorrectly, by all means, please tell me and I'll start from scratch and do it all over again.
    Can you upload your var/log/amanda/install.log and /var/log/amanda/install.err ?

    Try re-install it if possible.



    I created a folder on the Amanda server (/etc/amanda/WindowsBU) and dropped amanda.conf in it. Below is that conf.
    The amaddclient should take care of this.
    Last edited by xHan; October 19th, 2012 at 10:39 AM.

  5. #5
    Join Date
    Oct 2012
    Location
    USA
    Posts
    21

    Default

    Quote Originally Posted by xHan View Post
    Can you upload your var/log/amanda/install.log and /var/log/amanda/install.err?
    See below. By the way, there was no install.err.
    Code:
    Oct 17 2012 16:14:17: Preparing to install: Amanda Server 3.3.2
    Oct 17 2012 16:14:17: Checking for user: amandabackup
    Oct 17 2012 16:14:17: Adding amandabackup.
    Oct 17 2012 16:14:17: Created amandabackup with blank password.
    Oct 17 2012 16:14:17: passwd: passwd: password expiry information changed.
    Oct 17 2012 16:14:17: NOTE: Set a password and unlock the amandabackup account before
     running Amanda.
    Oct 17 2012 16:14:17:  The superuser can unlock the account by running:
    
     # passwd -u amandabackup
    
    Oct 17 2012 16:14:17: Verify amandabackup's primary group = disk
    Oct 17 2012 16:14:17: Verify amandabackup is a member of tape.
    Oct 17 2012 16:14:17: amandabackup is not a member of supplemental group tape.
    Oct 17 2012 16:14:17: groupadd: groupadd: group 'tape' already exists
    Oct 17 2012 16:14:17: Adding amandabackup to tape
    Oct 17 2012 16:14:17: Verify amandabackup's shell is /bin/bash.
    Oct 17 2012 16:14:17: homedir /var/lib/amanda does not exist.
    Oct 17 2012 16:14:17: Creating /var/lib/amanda
    Oct 17 2012 16:14:17: Creating /var/log/amanda.
    Oct 17 2012 16:14:17: Preinstall done.
    Oct 17 2012 16:14:30: Installed xinetd config for amandaserver.
    Oct 17 2012 16:14:30: Reloading xinetd configuration...
    Oct 17 2012 16:14:30: Creating /etc/amandates.
    Oct 17 2012 16:14:30: Ensuring correct permissions for '/etc/amandates'.
    Oct 17 2012 16:14:30: Creating '/var/lib/amanda/.gnupg'
    Oct 17 2012 16:14:30: Ensuring correct permissions for '/var/lib/amanda/.gnupg'.
    Oct 17 2012 16:14:30: Creating /var/lib/amanda/.amandahosts
    Oct 17 2012 16:14:30: Checking '/var/lib/amanda/.amandahosts' for 'root amindexd amidxtaped' entrie$
    Oct 17 2012 16:14:30: Searching .amandahosts for ^localhost[[:blank:]]\+root[[:blank:]]\+amindexd[[$
    Oct 17 2012 16:14:30: Appending 'localhost root amindexd amidxtaped' to amandahosts
    Oct 17 2012 16:14:30: Searching .amandahosts for ^localhost.localdomain[[:blank:]]\+root[[:blank:]]$
    Oct 17 2012 16:14:30: Appending 'localhost.localdomain root amindexd amidxtaped' to amandahosts
    Oct 17 2012 16:14:30: Checking '/var/lib/amanda/.amandahosts' for 'amandabackup amdump' entries.
    Oct 17 2012 16:14:30: Searching .amandahosts for ^localhost[[:blank:]]\+amandabackup[[:blank:]]\+am$
    Oct 17 2012 16:14:30: Appending 'localhost amandabackup amdump' to amandahosts
    Oct 17 2012 16:14:30: Searching .amandahosts for ^localhost.localdomain[[:blank:]]\+amandabackup[[:$
    Oct 17 2012 16:14:30: Appending 'localhost.localdomain amandabackup amdump' to amandahosts
    Oct 17 2012 16:14:30: Ensuring correct permissions on .amandahosts
    Oct 17 2012 16:14:30: Creating directory '/var/lib/amanda/.ssh'.
    Oct 17 2012 16:14:30: Creating ssh RSA key in '/var/lib/amanda/.ssh/id_rsa_amdump'
    Oct 17 2012 16:14:30: Setting ownership and permissions for '/var/lib/amanda/.ssh' and '/var/lib/am$
    Oct 17 2012 16:14:30: Creating ssh RSA key in '/var/lib/amanda/.ssh/id_rsa_amrecover'
    Oct 17 2012 16:14:30: Setting ownership and permissions for '/var/lib/amanda/.ssh' and '/var/lib/am$
    Oct 17 2012 16:14:30: Checking for '/var/lib/amanda/.profile'.
    Oct 17 2012 16:14:30: Checking for /usr/sbin in path statement.
    Oct 17 2012 16:14:30: Setting ownership and permissions for '/var/lib/amanda/.profile'
    Oct 17 2012 16:14:30: Checking '/etc/amanda/amanda-client.conf' file.
    Oct 17 2012 16:14:30: Installing amanda-client.conf.
    Oct 17 2012 16:14:30: Checking '/var/lib/amanda/.am_passphrase' file.
    Oct 17 2012 16:14:30: Create '/var/lib/amanda/.am_passphrase' file.
    Oct 17 2012 16:14:30: Checking for '/tmp/amanda' dir.
    Oct 17 2012 16:14:30: Create '/tmp/amanda' dir.
    Oct 17 2012 16:14:30: Amanda server installation complete.

    Quote Originally Posted by xHan View Post
    Try re-install it if possible.
    Using what method/guide? Again, I'm very new to Amanda.

  6. #6
    Join Date
    Aug 2012
    Posts
    81

    Default

    I guess you didn't do the "Configuring the Backup Server" part , right?
    Pleas take a look the chapter 6.1 of the Amanda_Community_Setup_15_minutes.pdf

  7. #7
    Join Date
    Oct 2012
    Location
    USA
    Posts
    21

    Default

    Quote Originally Posted by xHan View Post
    I guess you didn't do the "Configuring the Backup Server" part , right?
    Pleas take a look the chapter 6.1 of the Amanda_Community_Setup_15_minutes.pdf
    Yeah, I'm going through the install steps now. I also don't fully understand the postfix (mail setup) question I get during setup. Any insight or best practices on that? Any good example I can follow for that?

  8. #8
    Join Date
    Aug 2012
    Posts
    81

    Default

    You can set up your email client later on, and always can modify the email option in amanda.conf. There are many tutorials about how to set up an email client in Linux, just google it.

  9. #9
    Join Date
    Oct 2012
    Location
    USA
    Posts
    21

    Default

    Well, I got it set up again and I can get a backup of another Ubuntu server without issue. However, the backup of a Windows 2008 R2 server fails. I think I still have something wrong with my config.

    My report:

    Code:
    Hostname: h1p-backup1
    Org     : DailySet1
    Config  : DailySet1
    Date    : October 20, 2012
    
    These dumps were to tape DailySet1-1.
    The next tape Amanda expects to use is: 1 new tape.
    The next new tape already labelled is: DailySet1-2.
    FAILURE DUMP SUMMARY:
      amanda-client2.homenet.local "C:/Users/rsickler" lev 0  FAILED [amanda-client2.homenet.local:  Server validation Failed. Please register server with client.]
    
    
    
    STATISTICS:
                              Total       Full      Incr.   Level:#
                            --------   --------   --------  --------
    Estimate Time (hrs:min)     0:00
    Run Time (hrs:min)          0:00
    Dump Time (hrs:min)         0:00       0:00       0:00
    Output Size (meg)           24.5       24.5        0.0
    Original Size (meg)         31.6       31.6        0.0
    Avg Compressed Size (%)     77.5       77.5        --
    DLEs Dumped                    1          1          0
    Avg Dump Rate (k/s)      19259.8    19259.8        --
    
    Tape Time (hrs:min)         0:00       0:00       0:00
    Tape Size (meg)             24.5       24.5        0.0
    Tape Used (%)                0.5        0.5        0.0
    DLEs Taped                     1          1          0
    Parts Taped                    1          1          0
    Avg Tp Write Rate (k/s)  25057.0    25057.0        --
    
    USAGE BY TAPE:
      Label               Time         Size      %  DLEs Parts
      DailySet1-1         0:00           0G    0.5     1     1
    
    NOTES:
      planner: Adding new disk amanda-client1.homenet.local:/home/homenet.
      planner: Adding new disk amanda-client2.homenet.local:"C:/Users/rsickler".
      taper: Slot 1 with label DailySet1-1 is usable
      taper: tape DailySet1-1 kb 25057 fm 1 [OK]
    
    
    DUMP SUMMARY:
                                                                    DUMPER STATS               TAPER STATS
    HOSTNAME                     DISK                L ORIG-GB  OUT-GB  COMP%  MMM:SS    KB/s MMM:SS    KB/s
    -------------------------------------------------- -------------------------------------- --------------
    amanda-client1.homenet.local /home/homenet       0       0       0   77.5    0:01 19247.3   0:01 25057.0
    amanda-client2.homenet.local "C:/Users/rsickler"                              FAILED
    
    (brought to you by Amanda version 3.3.2)

  10. #10
    Join Date
    Aug 2012
    Posts
    81

    Default

    When you set up your zwc Windows client, try "run as administrator".

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •