Re: [Dorset] Network keeps dropping on System Containing Raspberry Pis

2021-04-17 Thread Terry Coles
On Saturday, 17 April 2021 12:58:23 BST Hamish McIntyre-Bhatty wrote:
> Anything in dmesg or syslog?

Nothing useful.  I rebooted twice this morning; each time after making a 
change to the Python code.  (A reboot is the safest way of ensuring everything 
starts off the same as at powerup.)

At 0817 I can see the usb0 interface connecting to the assigned (static) IP 
address in syslog, but not anything about the second reboot a few minutes 
later after I had realised that a typo was preventing the Python code from 
running.  The next time it occurs is at 0919 when the power cycle took effect.

I did nothing between the reboot that locked the system and the power cycle 
(other than panic a bit of course).
 
> I have had issues like this with Pis before, but there should be a fix
> in the latest kernel for this - maybe try installing updates or use
> rpi-update for new kernel if it persists? My issue was with more
> standard RJ45 networking, but may still apply.

I ran apt update / upgrade just before the system was physically deployed 
about two weeks ago.

I remember getting into some trouble some time ago when using rpi-update.  
Here is what RaspberryPi.org say:

'rpi-update is a command line application that will update your Raspberry Pi 
OS kernel and VideoCore firmware to the latest pre-release versions. WARNING: 
Pre-release versions of software are not guaranteed to work. You should not 
use rpi-update on any system unless recommended to do so by a Raspberry Pi 
engineer'

That would definitely be a last resort.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Network keeps dropping on System Containing Raspberry Pis

2021-04-17 Thread Hamish McIntyre-Bhatty

Anything in dmesg or syslog?

I have had issues like this with Pis before, but there should be a fix 
in the latest kernel for this - maybe try installing updates or use 
rpi-update for new kernel if it persists? My issue was with more 
standard RJ45 networking, but may still apply.


Hamish

On 17/04/2021 10:54, Terry Coles wrote:

Hi,

Our re-engineered Minster Music and Bells system has now been redeployed and
has been working in anger (sort-of) since Monday when WMT re-opened to the
public.  There were one or two teething problems which I was able fix by
logging in to the system remotely.

However, I've been experiencing a recurrent issue with network access.  For
the third time this morning I found that I was unable to log into one or other
of the two Pis in the system and connectivity was only restored after a power
cycle.  Apart from being inconvenient, this is concerning because I'd like to
be able to shut the system down before removing the power.  Also, since I am
still not visiting the WMT due to my wife's vulnerability to COVID I have to
phone in and ask the duty manager to do it.

The network architecture is a bit unusual in that we didn't want the expense
of an extra Network Switch and USB/Ethernet Adaptor.  To solve the former I
configured one Pi as a Router and to solve the latter I used USB Networking,
which the Pi supports.  Here is a quick and dirty diagram:

 WMT  Music  Bells
  Network---Pi---Pi

   ^^  ^
   ||  |
AccessedAccessedAccessed
 via via  via
VPN  Ethernet   USB0

USB Networking was described to me at:

https://www.raspberrypi.org/forums/viewtopic.php?
f=36=295221=1785228#p1781380

(There is something in the Raspberry Pi docs, but since the Raspberry Pi
Foundation redesigned their website, I can't find it.)

Can anyone suggest a reason for these dropouts?



OpenPGP_signature
Description: OpenPGP digital signature
-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Network keeps dropping on System Containing Raspberry Pis

2021-04-17 Thread Terry Coles
Hi,

Our re-engineered Minster Music and Bells system has now been redeployed and 
has been working in anger (sort-of) since Monday when WMT re-opened to the 
public.  There were one or two teething problems which I was able fix by 
logging in to the system remotely.

However, I've been experiencing a recurrent issue with network access.  For 
the third time this morning I found that I was unable to log into one or other 
of the two Pis in the system and connectivity was only restored after a power 
cycle.  Apart from being inconvenient, this is concerning because I'd like to 
be able to shut the system down before removing the power.  Also, since I am 
still not visiting the WMT due to my wife's vulnerability to COVID I have to 
phone in and ask the duty manager to do it.

The network architecture is a bit unusual in that we didn't want the expense 
of an extra Network Switch and USB/Ethernet Adaptor.  To solve the former I 
configured one Pi as a Router and to solve the latter I used USB Networking, 
which the Pi supports.  Here is a quick and dirty diagram:

WMT  Music  Bells
 Network---Pi---Pi

  ^^  ^
  ||  |
AccessedAccessedAccessed
via via  via
   VPN  Ethernet   USB0

USB Networking was described to me at:

https://www.raspberrypi.org/forums/viewtopic.php?
f=36=295221=1785228#p1781380

(There is something in the Raspberry Pi docs, but since the Raspberry Pi 
Foundation redesigned their website, I can't find it.)

Can anyone suggest a reason for these dropouts?  

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Sharing files & directories in Mint 19.2 & 20.1

2021-04-17 Thread Terry Coles
Clive,

I only just spotted this; it had somehow got marked as 'read' in my email 
client.

On Wednesday, 14 April 2021 18:05:27 BST CA Wills wrote:
> Now have the new main PC (NUC B10) working, we are able to print to
> printers (Laser connected on PC by USB, Colour printer via the network
> (Router Ethernet) and all looks well from the PC.
> On the old PC we had Samba installed as that was very early on in my
> Linux days and Terry very kindly came over and installed it.

It was a bit more complicate back then and I had to hand craft your smb.conf 
file to get it to work.

Since then I've reinstalled Kubuntu on this machine several time and I can't 
remember the last time I had to tweak the config.  For me, samba now 'just 
works.  Of course I'm not using Mint.

> Tried to share my laptop 'Documents' folder so that I can get to
> the_laptop_ files from the new PC.  On laptop notice comes up saying
> Samba is not installed.
> Also noticed I can't now print on the Laser even when the PC is 'ON'. 
> With the old PC as long as it was 'ON' I could print OK.

I'm not sure that I can help with this.

> As all our equipment is Linux do I need to have Samba to share equipment
> and files, or is there another Linux way? A long while ago someone said
> you only need Samba if you connect to Windows machines.

It is true that you don't need Samba if you are only accessing Linux computers 
(which isn't quite what you said).  Most NAS Boxes use smb by default (usually 
by running Samba on them, so although you may be able to enable NFS on yours 
you may find it easier to stick to Samba.

Sorry I can't offer any real suggestions to solve your problem.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk