Re: [PLUG] rsync not working backuppc4

2019-11-24 Thread Ben Koenig
So you've set up a passwordless login for a user (im assuming username
"eagle") and that works.

But when you try doing it with backuppc it fails with the /nonexistent
error. What this probably means is that backuppc is configured to perform
backups as a user that you have not set up for passwordless login.

Keep in mind that ssh keys are per user. this means that if I setup
passwordless login  (e.g. 'bkoenig') then it will only work for 'bkoenig'.
If i try to log in as someone else (such as ssh ekoe...@remote.host ) it
will fail because said keys are not visible to ekoenig. It sounds like you
have set up passwordless login for root, but not for the user backuppc
uses, and that particular user doesn't actually have a home directory, this
throwing the error you saw when attempting to create a folder.

Does BackupPC4 have a GUI configuration area or something that lets you
tell it to use a specific user? This is a common theme throughout FreeNAS,
you can set different services to run as different users, isolating the
processes and allowing it to run with permissions on a per-service basis.


On Sun, Nov 24, 2019 at 8:19 PM  wrote:

> I followed instructions to allow passwordless rsync, but I still can't
> back CentOS 7 up.
>
> I do a terminal on my FreeNAS 11.2 U7 web interface:
>
> # iocage console backuppc
>
> And I'm root in the jail for BackupPC4.
>
> I can manually ssh to eagle without a password.
>
> What I cannot figure out is why the web interface for backuppc4 won't back
> anything up. I think it is an authentication issue, but why
> we have a nonexistent backuppc user is beyond me.
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] FreeNAS and BackupPC4...

2019-11-24 Thread michael
2019-11-24 23:39:53 BackupPC_backupDelete: removing #0 2019-11-24 23:39:53 
BackupPC_backupDelete: No prior backup for merge 2019-11-24 23:39:53 
BackupPC_refCountUpdate: host eagle.roch.robinson-west.com 
(http://backuppc.roch.robinson-west.com/bpc/backuppc.pl?host=eagle.roch.robinson-west.com)
 got 0 errors (took 0 secs) 2019-11-24 23:41:37 full backup started for 
directory / 2019-11-24 23:41:41 Got fatal error during xfer (No files dumped 
for share /) I have manually verified that I have ssh passwordless entry to my 
CentOS 7 host working from my FreeNAS box.
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] BackupPC on FreeNAS 11.2 U7...

2019-11-24 Thread Ben Koenig
you haven't given a whole lot of information about how you are setting up
your users, so I can't really answer your question

What user is initiating the backup on centos? which user is saving the data
on FreeNAS? What is the rsync command being deployed to initiate the file
transfer?
Also, you say that you just changed /nonexistent to /root, but where? Did
you make this change on FreeNAS, through which interface? Or was it on
CentOS?

I can tell that you are running an rsync based backup application, but
other than than i know pretty much nothing about your setup. The error
message you gave was pretty straightforward, but without knowing which
applications you have configured where, I don't know what the root cause of
that error is.



On Sun, Nov 24, 2019 at 7:10 PM  wrote:

> November 24, 2019 8:52 PM, "Ben Koenig"  wrote:
>
> > SSH keys are *usually* stored in $HOME/.ssh, and the error you are seeing
> > clearly indicates that this folder cannot be created. Since it cannot
> > create the folder, it cannot store your public key, and therefore cannot
> > authenticate via key pair. I'm fairly new to FreeNAS, but on my box
> > /nonexistent/ literally does not exist.
> >
> > My understanding is that this is a keyword used for users that run
> without
> > home directories. Which user are you attempting to use on the FreeNAS
> end?
> > Whatever user it being used to read/write files on your NAS box appears
> to
> > be configured to run without a $HOME folder, and will be unable to store
> a
> > public key for authentication.
> >
> > This is is just a guess but if the BackupPC app runs as a given user, you
> > may need to add a home folder for that user. Then you will be able to
> > transfer your public key to it.
> > -Ben
> >
> > On Sun, Nov 24, 2019 at 6:12 PM  wrote:
> >
> >> This is the rsync child about to exec /usr/local/bin/rsync_bpc
> >> Could not create directory '/nonexistent/.ssh'.
> >> Host key verification failed.
> >> rsync_bpc: connection unexpectedly closed (0 bytes received so far)
> >> [Receiver]
> >> Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0
> filesTotal,
> >> 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 2 inode
> >> rsync error: error in rsync protocol data stream (code 12) at io.c(226)
> >> [Receiver=3.1.2.1]
> >> rsync_bpc exited with fatal status 12 (3072) (rsync error: error in
> rsync
> >> protocol data stream (code 12) at io.c(226) [Receiver=3.1.2.1])
> >> Xfer PIDs are now
> >> Got fatal error during xfer (No files dumped for share /)
> >> Backup aborted (No files dumped for share /)
> >>
> >> November 24, 2019 7:59 PM, mich...@robinson-west.com wrote:
> >>
> >>
> https://www.ixsystems.com/community/threads/quickstart-guide-for-backuppc-4-in-a-jail-on-freenas.740
> >>
> >> My question is, do I need to import the ssh key for root user on my
> CentOS
> >> 7 box so I can rsync back up the entire system?
> >> I'm trying to trigger a backup from my FreeNAS box using BackupPC4 in a
> >> jail.
> >> ___
> >> PLUG mailing list
> >> PLUG@pdxlinux.org
> >> http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> > ___
> > PLUG mailing list
> > PLUG@pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
>
> Not certain if I did the right thing, but I changed /nonexistent to
> /root.  Maybe I should change that to /home/backuppc and set the ownership
> to backuppc:backuppc and move the .ssh folder over there.  Why by default
> is the home directory set to /nonexistent in the first place?
>
>  -- Michael Robinson
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] rsync not working backuppc4

2019-11-24 Thread michael
I followed instructions to allow passwordless rsync, but I still can't back 
CentOS 7 up.

I do a terminal on my FreeNAS 11.2 U7 web interface:

# iocage console backuppc

And I'm root in the jail for BackupPC4.

I can manually ssh to eagle without a password.

What I cannot figure out is why the web interface for backuppc4 won't back 
anything up. I think it is an authentication issue, but why
we have a nonexistent backuppc user is beyond me.
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] BackupPC on FreeNAS 11.2 U7...

2019-11-24 Thread michael
November 24, 2019 8:52 PM, "Ben Koenig"  wrote:

> SSH keys are *usually* stored in $HOME/.ssh, and the error you are seeing
> clearly indicates that this folder cannot be created. Since it cannot
> create the folder, it cannot store your public key, and therefore cannot
> authenticate via key pair. I'm fairly new to FreeNAS, but on my box
> /nonexistent/ literally does not exist.
> 
> My understanding is that this is a keyword used for users that run without
> home directories. Which user are you attempting to use on the FreeNAS end?
> Whatever user it being used to read/write files on your NAS box appears to
> be configured to run without a $HOME folder, and will be unable to store a
> public key for authentication.
> 
> This is is just a guess but if the BackupPC app runs as a given user, you
> may need to add a home folder for that user. Then you will be able to
> transfer your public key to it.
> -Ben
> 
> On Sun, Nov 24, 2019 at 6:12 PM  wrote:
> 
>> This is the rsync child about to exec /usr/local/bin/rsync_bpc
>> Could not create directory '/nonexistent/.ssh'.
>> Host key verification failed.
>> rsync_bpc: connection unexpectedly closed (0 bytes received so far)
>> [Receiver]
>> Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal,
>> 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 2 inode
>> rsync error: error in rsync protocol data stream (code 12) at io.c(226)
>> [Receiver=3.1.2.1]
>> rsync_bpc exited with fatal status 12 (3072) (rsync error: error in rsync
>> protocol data stream (code 12) at io.c(226) [Receiver=3.1.2.1])
>> Xfer PIDs are now
>> Got fatal error during xfer (No files dumped for share /)
>> Backup aborted (No files dumped for share /)
>> 
>> November 24, 2019 7:59 PM, mich...@robinson-west.com wrote:
>> 
>> https://www.ixsystems.com/community/threads/quickstart-guide-for-backuppc-4-in-a-jail-on-freenas.740
>> 
>> My question is, do I need to import the ssh key for root user on my CentOS
>> 7 box so I can rsync back up the entire system?
>> I'm trying to trigger a backup from my FreeNAS box using BackupPC4 in a
>> jail.
>> ___
>> PLUG mailing list
>> PLUG@pdxlinux.org
>> http://lists.pdxlinux.org/mailman/listinfo/plug
> 
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug

Not certain if I did the right thing, but I changed /nonexistent to /root.  
Maybe I should change that to /home/backuppc and set the ownership to 
backuppc:backuppc and move the .ssh folder over there.  Why by default is the 
home directory set to /nonexistent in the first place?

 -- Michael Robinson
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] RSYNC and backuppc4...

2019-11-24 Thread michael
Got fatal error during xfer (No files dumped for share /) I want to back up the 
whole entire Linux system using backuppc4 running on my FreeNAS 11.2 U7 server.

I can ssh to eagle.roch.robinson-west.com as root without a password from the 
backuppc4 jail no problem.

I'm missing something, but what?
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] BackupPC on FreeNAS 11.2 U7...

2019-11-24 Thread Ben Koenig
SSH keys are *usually* stored in $HOME/.ssh, and the error you are seeing
clearly indicates that this folder cannot be created. Since it cannot
create the folder, it cannot store your public key, and therefore cannot
authenticate via key pair. I'm fairly new to FreeNAS, but on my box
/nonexistent/ literally does not exist.

 My understanding is that this is a keyword used for users that run without
home directories. Which user are you attempting to use on the FreeNAS end?
Whatever user it being used to read/write files on your NAS box appears to
be configured to run without a $HOME folder, and will be unable to store a
public key for authentication.

This is is just a guess but if the BackupPC app runs as a given user, you
may need to add a home folder for that user. Then you will be able to
transfer your public key to it.
-Ben

On Sun, Nov 24, 2019 at 6:12 PM  wrote:

> This is the rsync child about to exec /usr/local/bin/rsync_bpc
> Could not create directory '/nonexistent/.ssh'.
> Host key verification failed.
> rsync_bpc: connection unexpectedly closed (0 bytes received so far)
> [Receiver]
> Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal,
> 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 2 inode
> rsync error: error in rsync protocol data stream (code 12) at io.c(226)
> [Receiver=3.1.2.1]
> rsync_bpc exited with fatal status 12 (3072) (rsync error: error in rsync
> protocol data stream (code 12) at io.c(226) [Receiver=3.1.2.1])
> Xfer PIDs are now
> Got fatal error during xfer (No files dumped for share /)
> Backup aborted (No files dumped for share /)
>
> November 24, 2019 7:59 PM, mich...@robinson-west.com wrote:
>
> >
> https://www.ixsystems.com/community/threads/quickstart-guide-for-backuppc-4-in-a-jail-on-freenas.740
>
> My question is, do I need to import the ssh key for root user on my CentOS
> 7 box so I can rsync back up the entire system?
> I'm trying to trigger a backup from my FreeNAS box using BackupPC4 in a
> jail.
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] BackupPC on FreeNAS 11.2 U7...

2019-11-24 Thread michael
https://www.ixsystems.com/community/threads/quickstart-guide-for-backuppc-4-in-a-jail-on-freenas.74080/

Following the latter link, I can't get rsync of my CentOS 7 host working...  Do 
I need to do something in the backuppc4 web interface to set the user and 
password to rsync as?  Is that going to be root and root's password?

November 24, 2019 6:07 PM, mich...@robinson-west.com wrote:

> Updated to the lates 11.2 update tonight and decided to install BackupPC. 
> When I go to manage, it
> just puts me in an Apache served help file on backuppc.
> 
> Has anyone here used BackupPC on FreeNAS that could help me set it up for 
> backing up a CentOS 7,
> Mac OSX Catalina, and some Windows systems?
> ___
> PLUG mailing list
> PLUG@pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] BackupPC on FreeNAS 11.2 U7...

2019-11-24 Thread michael
Updated to the lates 11.2 update tonight and decided to install BackupPC. When 
I go to manage, it just puts me in an Apache served help file on backuppc.

Has anyone here used BackupPC on FreeNAS that could help me set it up for 
backing up a CentOS 7, Mac OSX Catalina, and some Windows systems?
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Unmanaged gigabit switches: does brand matter?

2019-11-24 Thread Rich Shepard

On Sun, 24 Nov 2019, King Beowulf wrote:


I currently have a combination of TP-Link, Netgear, D-Link 10/100/1000
switches scattered about to route data to various rooms, all bought on
sale.



I do tend to prefer metal encased versions, however, as they seem a bit
more resilient to RF interference.


Ed,

I've had no issues in the past with switches (until the 4-port LinkSys
failed a month or so ago). Now I have two Netgears; that's all I need.


My corporate overlord bundles unmanaged Milan/Transition switches for our
laboratory equipment and I have not seen any of those fail in 10+ yrs,
some of which are in fairly dirty and/or hot manufacturing environments.


Well, my house is not air conditioned nor pristinely cleaned but I think I'm
good with the low-end stuff.

Thanks,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Unmanaged gigabit switches: does brand matter?

2019-11-24 Thread King Beowulf
On 11/23/19 8:27 AM, Rich Shepard wrote:
> While my old LinkSys (non-gigabit) switch worked for years it recently
> died.
> I'm now using a Netgear GS116 gigabit switch and I want a backup unmanaged
> 16-port gigabit switch.
> 
> I find them available from Cisco, Netgear, TrendNet, TP-Link, and D-Link.
> Where reviews are provided (Newegg and Amazon) they range from 1 to 5
> stars;
> the lower rankings seem to be due to poor customer support when a switch
> (or
> some ports) fail. Prices also range quite broadly (not considering that
> some
> offer PoE or PoE+ and others don't.)
> 
> Are any of the brands preferred, or to be avoided?
> 

Rich

I currently have a combination of TP-Link, Netgear, D-Link 10/100/1000
switches scattered about to route data to various rooms, all bought on
sale. As mentioned already on this thread, there are not a lot of
differences as the tech, firmaware and chipsets are mature for
unmananged devices.  I can stream 4K on the Roku, while transferring
gigabytes among the various boxes here, without any noticeable hick-up.

I do tend to prefer metal encased versions, however, as they seem a bit
more resilient to RF interference.

My corporate overlord bundles unmanaged Milan/Transition switches for
our laboratory equipment and I have not seen any of those fail in 10+
yrs, some of which are in fairly dirty and/or hot manufacturing
environments.

-Ed



signature.asc
Description: OpenPGP digital signature
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Unmanaged gigabit switches: does brand matte

2019-11-24 Thread Rich Shepard

On Sun, 24 Nov 2019, Mike C. wrote:


The only other thing to add here is that for your home network requirements
of an "unmanaged switch" pretty much any used gig switch you find at Free
Geek and/or Goodwill will suffice.



When they die, just donate them to FG to recycle.


Mike,

Excellent advice.

Regards,

Rich
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Constant disk activity

2019-11-24 Thread John Jason Jordan
On Fri, 22 Nov 2019 16:59:25 -0800
John Jason Jordan  dijo:

>Ever since my recent dist-upgrade from Xubuntu 16.04 to 18.04 I have
>been having continual disk activity. Every 30 seconds or so the drive
>light comes on and stays on solid for about five seconds. The disk
>activity is so intense that other operations are hindered, even mouse
>movement is jerky.

I also have an error message that I have been trying to fix:

Error: no symbol table
Press any key to continue

My research indicates that this is a grub error, and the Ubuntu forums
include numerous posts about it occurring after a dist-upgrade from
16.04 to 18.04. I haven't done any of the suggested fixes yet because
they are kind of scary, and the error is fairly benign - do nothing
and the system goes ahead and boots normally anyway. However, just now I
looked at /var/log/boot and, lo and behold, there are probably a
hundred or more identical messages:

[K[ [0;31m*[0;1;31m*[0m] A start job is running for dev-sda2.device (10s / 1min 
30s)

So apparently the JBD2 process started during boot. Why it targets
only /home and not / or the three other drives that I have; and how one
might get it to run only every half hour or so, are questions that I
have not yet come up with answers for.
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Unmanaged gigabit switches: does brand matte

2019-11-24 Thread Mike C.
The only other thing to add here is that for your home network requirements
of an "unmanaged switch" pretty much any used gig switch you find at Free
Geek and/or Goodwill will suffice.

I recently saw a whole slew of Netgear gig switches that someone donated.
If you're paying pennies on the $, you can buy a couple for what you buy 1
new. 

When they die, just donate them to FG to recycle.

- Mike
___
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug