Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Testpoint container for rpi4

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Testpoint container for rpi4


Chronological Thread 
  • From: Mark Feit <>
  • To: Luke Whitworth <>, "" <>
  • Subject: Re: [perfsonar-user] Testpoint container for rpi4
  • Date: Tue, 20 Jun 2023 14:29:16 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=internet2.edu; dmarc=pass action=none header.from=internet2.edu; dkim=pass header.d=internet2.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SwbQ8hBf+yaqnMIalcLvu26g7bFqwRXfslJd+2E2xmY=; b=CyzaUg+maXlV5xkaaDCZanNGeDcfKXWAhpB/APGRDmDixefzbeCgXSps9lPWjUsNF6C1ryAzsY439hlQvu1h2uN5z7+oL2G09pslg0ZOUmhw3yFxhaYz6plYN8tsi/NHsSmunNkoZKckYy35Dw45cTOSh2x298/FjF2AtVU1vnjB1xddlzzuX/qGIU9mlnyJrTOsNOm7mdV3rbHHGPQemKtDLEMhWbWIAenET+NpeWWxcpQpCwSXTy9xFbiZ+DtA2EFogdawg9X28OT2Sv4yV0TT56788+73G+fT/JNHXXhI85MYTuKeO2maaPxqpFWZadfAECs6l2tAmUDuw8yfrw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DVv7RjOWNMCuHX0C39UnS+YuM5sMzwVSWhLGHAePrP2pijFIduAtfHKhb5hh84+fT4OWeQO9+G37v6vzhycZFG1B97NQD4sTph6IRdNFoHgEjdKZTGDVhTFcadZFLVMsCE6LL6Q4gPwrl72yapgsmm8dM03cr2fmChccSvHCL2zDxANFMRKAgXZR66gKZpaIYLbWhjzrInOg5x4YWkMff+SU4UYNUZ9r/FOnc3sAxT4a3fqt3Q0Z48xnhEAuJzjD8/S4o49cxmjfGD+TltA4pIysdeX06HnBOFxXlwehu7laaiJKkGyvNBjNoqATFM0HNyljZ/49ScFTup+75snFQg==

Luke Whitworth writes:

 

Warning:  This is no doubt a huge mess, there’s probably much better ways to do this and running the container throws errors repeatedly such as:

 …

OSError: [Errno 9] Bad file descriptor 

FileNotFoundError: [Errno 2] No such file or directory

 

Those errors are indicative of syslog clients being unable to connect to the log socket.  The entry point script attempts (and fails) to start “rysylog” instead of “rsyslog” and that socket ends up not existing.

 

If I can offer a couple of suggestions:

 

  • Shell scripts should always have the -e switch in effect so they die immediately when something fails.  This error would have torpedoed the container before it got off the ground.  The trade-off is that you have to take explicit steps to make sure the shell doesn’t exit on failures you don’t care about.
  • Consider custom-configuring rsyslog so it sends log message to another server over the network.  That will cut down on disk write activity.

 

--Mark

 

 

 




Archive powered by MHonArc 2.6.24.

Top of Page