Project

General

Profile

Actions

Bug #20671

open

Format error in APT settings technique

Added by Stefan Schmitt almost 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Techniques
Target version:
-
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
52
Name check:
To do
Fix check:
To do
Regression:

Description

Problem with Proxyserver on Debian 10+11 (Buster + Bullseye)
When executing a rudder agent run with agent 7.0.0-debian10

Directive: Package sources and settings (APT) - Technique Version 3.1 shows an error:

Error-Output

error: No matched line to edit fields of for pattern '#+Acquire::http::Proxy\s+.*' in '/etc/apt/apt.conf.d/99rudder'
error: Errors encountered when actuating fields_edit promise '#+Acquire::http::Proxy\s+.*'
error: No matched line to edit fields of for pattern '#+Acquire::ftp::Proxy\s+.*' in '/etc/apt/apt.conf.d/99rudder'
error: Errors encountered when actuating fields_edit promise '#+Acquire::ftp::Proxy\s+.*'
error: No matched line to edit fields of for pattern 'Acquire::http::Proxy\s+.*' in '/etc/apt/apt.conf.d/99rudder'
error: Errors encountered when actuating fields_edit promise 'Acquire::http::Proxy\s+.*'
error: No matched line to edit fields of for pattern 'Acquire::ftp::Proxy\s+.*' in '/etc/apt/apt.conf.d/99rudder'
error: Errors encountered when actuating fields_edit promise 'Acquire::ftp::Proxy\s+.*'

Problem + Resolve:

Technique results in file /etc/apt/apt.conf.d/99rudder with content:
// ### File managed by Rudder, edit with care ###
Acquire::http::Proxy "http://192.168.0.1:3142";
Acquire::ftp::Proxy "";

Should be written in curly braces instead:
// ### File managed by Rudder, edit with care ###
Acquire::http { Proxy "http://192.168.0.1:3142"; }
Acquire::ftp { Proxy ""; }

Actions #1

Updated by Stefan Schmitt almost 3 years ago

technique 3.2 does not fix the problem

Actions #2

Updated by Alexis Mousset almost 3 years ago

  • Subject changed from Error to Format error in APT settings technique
  • Category changed from System techniques to Techniques
  • Severity changed from Minor - inconvenience | misleading | easy workaround to Major - prevents use of part of Rudder | no simple workaround
  • Priority changed from 32 to 52
Actions

Also available in: Atom PDF