Fix cron warnings for tom #150

Open
opened 2024-08-30 13:30:32 +02:00 by oysteikt · 3 comments
Owner

Mmmyes, python2 electric bogaloo

email sample
/etc/cron.daily/pvv-salt:
[ERROR   ] An exception occurred in this state: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call
    **cdata['kwargs'])
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present
    __salt__['user.ch{0}'.format(key)](name, val)
  File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname
    return _update_gecos(name, 'fullname', fullname, root=root)
  File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos
    __salt__['cmd.run'](cmd, python_shell=False)
  File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run
    proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__
    self.process = subprocess.Popen(args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 23: ordinal not in range(128)

[ERROR   ] An exception occurred in this state: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call
    **cdata['kwargs'])
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present
    __salt__['user.ch{0}'.format(key)](name, val)
  File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname
    return _update_gecos(name, 'fullname', fullname, root=root)
  File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos
    __salt__['cmd.run'](cmd, python_shell=False)
  File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run
    proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__
    self.process = subprocess.Popen(args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 8: ordinal not in range(128)

[ERROR   ] An exception occurred in this state: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call
    **cdata['kwargs'])
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present
    __salt__['user.ch{0}'.format(key)](name, val)
  File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname
    return _update_gecos(name, 'fullname', fullname, root=root)
  File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos
    __salt__['cmd.run'](cmd, python_shell=False)
  File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run
    proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__
    self.process = subprocess.Popen(args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 19: ordinal not in range(128)

[ERROR   ] Command 'apt-get' failed with return code: 100
[ERROR   ] stdout: Ign:1 http://repo.saltstack.com/apt/debian/9/amd64/latest stretch InRelease
Ign:2 http://security.debian.org/debian-security stretch/updates InRelease
Err:3 http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release
  404  Not Found [IP: 3.164.240.58 80]
Ign:4 http://ftp.debian.org/debian stretch-backports InRelease
Err:5 http://security.debian.org/debian-security stretch/updates Release
  404  Not Found [IP: 199.232.42.132 80]
Err:6 http://ftp.debian.org/debian stretch-backports Release
  404  Not Found [IP: 199.232.42.132 80]
Ign:7 http://ftp.no.debian.org/debian stretch InRelease
Ign:8 http://ftp.no.debian.org/debian stretch-updates InRelease
Err:9 http://ftp.no.debian.org/debian stretch Release
  404  Not Found [IP: 129.240.118.47 80]
Err:10 http://ftp.no.debian.org/debian stretch-updates Release
  404  Not Found [IP: 129.240.118.47 80]
Reading package lists...
[ERROR   ] stderr: E: The repository 'http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release' does no longer have a Release file.
E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file.
E: The repository 'http://ftp.debian.org/debian stretch-backports Release' does no longer have a Release file.
E: The repository 'http://ftp.no.debian.org/debian stretch Release' does no longer have a Release file.
E: The repository 'http://ftp.no.debian.org/debian stretch-updates Release' does no longer have a Release file.
[ERROR   ] retcode: 100
[ERROR   ] An error was encountered while installing package(s): E: The repository 'http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release' does no longer have a Release file.
E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file.
E: The repository 'http://ftp.debian.org/debian stretch-backports Release' does no longer have a Release file.
E: The repository 'http://ftp.no.debian.org/debian stretch Release' does no longer have a Release file.
E: The repository 'http://ftp.no.debian.org/debian stretch-updates Release' does no longer have a Release file.
[ERROR   ] The following packages failed to install/update: php-xsl
The following packages were already installed: php-fpdf, php-recode, php-cgi, php-curl, php-xml, libapache2-mod-php, php-sqlite3, php-mysql, php-cli, php-json, php-pgsql, php-imagick, php-gd, php-xmlrpc
local:
----------
          ID: pvvuser_<REDACTED>
    Function: user.present
        Name: <REDACTED>
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present
                  __salt__['user.ch{0}'.format(key)](name, val)
                File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname
                  return _update_gecos(name, 'fullname', fullname, root=root)
                File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos
                  __salt__['cmd.run'](cmd, python_shell=False)
                File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run
                  **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run
                  proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__
                  self.process = subprocess.Popen(args, **kwargs)
                File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
                  errread, errwrite)
                File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
                  raise child_exception
              UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 23: ordinal not in range(128)
     Started: 06:25:24.434964
    Duration: 59.471 ms
     Changes:  
----------
          ID: pvvuser_<REDACTED>
    Function: user.present
        Name: <REDACTED>
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present
                  __salt__['user.ch{0}'.format(key)](name, val)
                File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname
                  return _update_gecos(name, 'fullname', fullname, root=root)
                File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos
                  __salt__['cmd.run'](cmd, python_shell=False)
                File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run
                  **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run
                  proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__
                  self.process = subprocess.Popen(args, **kwargs)
                File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
                  errread, errwrite)
                File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
                  raise child_exception
              UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 8: ordinal not in range(128)
     Started: 06:25:27.603062
    Duration: 15.02 ms
     Changes:  
----------
          ID: pvvuser_<REDACTED>
    Function: user.present
        Name: <REDACTED>
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present
                  __salt__['user.ch{0}'.format(key)](name, val)
                File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname
                  return _update_gecos(name, 'fullname', fullname, root=root)
                File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos
                  __salt__['cmd.run'](cmd, python_shell=False)
                File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run
                  **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run
                  proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__
                  self.process = subprocess.Popen(args, **kwargs)
                File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
                  errread, errwrite)
                File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
                  raise child_exception
              UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 19: ordinal not in range(128)
     Started: 06:25:30.761437
    Duration: 15.536 ms
     Changes:  
----------
          ID: standard_packages
    Function: pkg.installed
      Result: False
     Comment: An error was encountered while installing package(s): E: The repository 'http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release' does no longer have a Release file.
              E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file.
              E: The repository 'http://ftp.debian.org/debian stretch-backports Release' does no longer have a Release file.
              E: The repository 'http://ftp.no.debian.org/debian stretch Release' does no longer have a Release file.
              E: The repository 'http://ftp.no.debian.org/debian stretch-updates Release' does no longer have a Release file.
     Started: 06:25:33.223084
    Duration: 3153.22 ms
     Changes:  
----------
          ID: packages_web_homes_php
    Function: pkg.installed
      Result: False
     Comment: The following packages failed to install/update: php-xsl
              The following packages were already installed: php-fpdf, php-recode, php-cgi, php-curl, php-xml, libapache2-mod-php, php-sqlite3, php-mysql, php-cli, php-json, php-pgsql, php-imagick, php-gd, php-xmlrpc
     Started: 06:25:36.956836
    Duration: 3669.333 ms
     Changes:  

Summary for local
---------------
Succeeded: 2577
Failed:       5
---------------
Total states run:     2582
Total run time:     18.253 s
run-parts: /etc/cron.daily/pvv-salt exited with return code 2
/etc/cron.daily/pvvpakke:
E: The repository 'http://ftp.no.debian.org/debian stretch Release' does no longer have a Release file.
E: The repository 'http://ftp.no.debian.org/debian stretch-updates Release' does no longer have a Release file.
E: The repository 'http://ftp.debian.org/debian stretch-backports Release' does no longer have a Release file.
E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file.
E: The repository 'http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release' does no longer have a Release file.
run-parts: /etc/cron.daily/pvvpakke exited with return code 1
Mmmyes, python2 electric bogaloo <details> <summary>email sample</summary> ``` /etc/cron.daily/pvv-salt: [ERROR ] An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call **cdata['kwargs']) File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present __salt__['user.ch{0}'.format(key)](name, val) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname return _update_gecos(name, 'fullname', fullname, root=root) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos __salt__['cmd.run'](cmd, python_shell=False) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run **kwargs) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs) File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__ self.process = subprocess.Popen(args, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 23: ordinal not in range(128) [ERROR ] An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call **cdata['kwargs']) File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present __salt__['user.ch{0}'.format(key)](name, val) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname return _update_gecos(name, 'fullname', fullname, root=root) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos __salt__['cmd.run'](cmd, python_shell=False) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run **kwargs) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs) File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__ self.process = subprocess.Popen(args, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 8: ordinal not in range(128) [ERROR ] An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call **cdata['kwargs']) File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present __salt__['user.ch{0}'.format(key)](name, val) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname return _update_gecos(name, 'fullname', fullname, root=root) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos __salt__['cmd.run'](cmd, python_shell=False) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run **kwargs) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs) File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__ self.process = subprocess.Popen(args, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 19: ordinal not in range(128) [ERROR ] Command 'apt-get' failed with return code: 100 [ERROR ] stdout: Ign:1 http://repo.saltstack.com/apt/debian/9/amd64/latest stretch InRelease Ign:2 http://security.debian.org/debian-security stretch/updates InRelease Err:3 http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release 404 Not Found [IP: 3.164.240.58 80] Ign:4 http://ftp.debian.org/debian stretch-backports InRelease Err:5 http://security.debian.org/debian-security stretch/updates Release 404 Not Found [IP: 199.232.42.132 80] Err:6 http://ftp.debian.org/debian stretch-backports Release 404 Not Found [IP: 199.232.42.132 80] Ign:7 http://ftp.no.debian.org/debian stretch InRelease Ign:8 http://ftp.no.debian.org/debian stretch-updates InRelease Err:9 http://ftp.no.debian.org/debian stretch Release 404 Not Found [IP: 129.240.118.47 80] Err:10 http://ftp.no.debian.org/debian stretch-updates Release 404 Not Found [IP: 129.240.118.47 80] Reading package lists... [ERROR ] stderr: E: The repository 'http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release' does no longer have a Release file. E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file. E: The repository 'http://ftp.debian.org/debian stretch-backports Release' does no longer have a Release file. E: The repository 'http://ftp.no.debian.org/debian stretch Release' does no longer have a Release file. E: The repository 'http://ftp.no.debian.org/debian stretch-updates Release' does no longer have a Release file. [ERROR ] retcode: 100 [ERROR ] An error was encountered while installing package(s): E: The repository 'http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release' does no longer have a Release file. E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file. E: The repository 'http://ftp.debian.org/debian stretch-backports Release' does no longer have a Release file. E: The repository 'http://ftp.no.debian.org/debian stretch Release' does no longer have a Release file. E: The repository 'http://ftp.no.debian.org/debian stretch-updates Release' does no longer have a Release file. [ERROR ] The following packages failed to install/update: php-xsl The following packages were already installed: php-fpdf, php-recode, php-cgi, php-curl, php-xml, libapache2-mod-php, php-sqlite3, php-mysql, php-cli, php-json, php-pgsql, php-imagick, php-gd, php-xmlrpc local: ---------- ID: pvvuser_<REDACTED> Function: user.present Name: <REDACTED> Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call **cdata['kwargs']) File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present __salt__['user.ch{0}'.format(key)](name, val) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname return _update_gecos(name, 'fullname', fullname, root=root) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos __salt__['cmd.run'](cmd, python_shell=False) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run **kwargs) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs) File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__ self.process = subprocess.Popen(args, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 23: ordinal not in range(128) Started: 06:25:24.434964 Duration: 59.471 ms Changes: ---------- ID: pvvuser_<REDACTED> Function: user.present Name: <REDACTED> Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call **cdata['kwargs']) File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present __salt__['user.ch{0}'.format(key)](name, val) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname return _update_gecos(name, 'fullname', fullname, root=root) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos __salt__['cmd.run'](cmd, python_shell=False) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run **kwargs) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs) File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__ self.process = subprocess.Popen(args, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 8: ordinal not in range(128) Started: 06:25:27.603062 Duration: 15.02 ms Changes: ---------- ID: pvvuser_<REDACTED> Function: user.present Name: <REDACTED> Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1981, in call **cdata['kwargs']) File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1977, in wrapper return f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/salt/states/user.py", line 650, in present __salt__['user.ch{0}'.format(key)](name, val) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 595, in chfullname return _update_gecos(name, 'fullname', fullname, root=root) File "/usr/lib/python2.7/dist-packages/salt/modules/useradd.py", line 119, in _update_gecos __salt__['cmd.run'](cmd, python_shell=False) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 1177, in run **kwargs) File "/usr/lib/python2.7/dist-packages/salt/modules/cmdmod.py", line 669, in _run proc = salt.utils.timed_subprocess.TimedProc(cmd, **new_kwargs) File "/usr/lib/python2.7/dist-packages/salt/utils/timed_subprocess.py", line 49, in __init__ self.process = subprocess.Popen(args, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 19: ordinal not in range(128) Started: 06:25:30.761437 Duration: 15.536 ms Changes: ---------- ID: standard_packages Function: pkg.installed Result: False Comment: An error was encountered while installing package(s): E: The repository 'http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release' does no longer have a Release file. E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file. E: The repository 'http://ftp.debian.org/debian stretch-backports Release' does no longer have a Release file. E: The repository 'http://ftp.no.debian.org/debian stretch Release' does no longer have a Release file. E: The repository 'http://ftp.no.debian.org/debian stretch-updates Release' does no longer have a Release file. Started: 06:25:33.223084 Duration: 3153.22 ms Changes: ---------- ID: packages_web_homes_php Function: pkg.installed Result: False Comment: The following packages failed to install/update: php-xsl The following packages were already installed: php-fpdf, php-recode, php-cgi, php-curl, php-xml, libapache2-mod-php, php-sqlite3, php-mysql, php-cli, php-json, php-pgsql, php-imagick, php-gd, php-xmlrpc Started: 06:25:36.956836 Duration: 3669.333 ms Changes: Summary for local --------------- Succeeded: 2577 Failed: 5 --------------- Total states run: 2582 Total run time: 18.253 s run-parts: /etc/cron.daily/pvv-salt exited with return code 2 /etc/cron.daily/pvvpakke: E: The repository 'http://ftp.no.debian.org/debian stretch Release' does no longer have a Release file. E: The repository 'http://ftp.no.debian.org/debian stretch-updates Release' does no longer have a Release file. E: The repository 'http://ftp.debian.org/debian stretch-backports Release' does no longer have a Release file. E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file. E: The repository 'http://repo.saltstack.com/apt/debian/9/amd64/latest stretch Release' does no longer have a Release file. run-parts: /etc/cron.daily/pvvpakke exited with return code 1 ``` </details>
oysteikt added the
crash report
salt
bug
labels 2024-08-30 13:30:32 +02:00
oysteikt added this to the Kanban project 2024-08-30 13:30:32 +02:00
Owner

Symptom:
Salt is failing, on the letter "æ"

Cause 1:

tom:~# python --version
Python 2.7.13

Python3 defaults to utf-8, python2.7 does not. People have æøå in their names.

Cause 2:
Tom is running Debian 9 (stretch), Debian 9 (stretch) uses python2.7, and Debian 9 (stretch) is going out of support everywhere real soon.

Solution suggestion 1:
Upgrade tom inplace to Debian 10, 11 and 12, potentially skipping some steps.

Solution suggestion 2:
Start reimplementing tom on an entirely different box.

  • Either emulating exactly what tom is doing
  • Or land on a solution to #144, potentially reworking how wwwhome works
**Symptom:** Salt is failing, on the letter "æ" **Cause 1:** ``` tom:~# python --version Python 2.7.13 ``` Python3 defaults to utf-8, python2.7 does not. People have æøå in their names. **Cause 2:** Tom is running Debian 9 (stretch), Debian 9 (stretch) uses python2.7, and Debian 9 (stretch) is going out of support everywhere real soon. **Solution suggestion 1:** Upgrade tom inplace to Debian 10, 11 and 12, potentially skipping some steps. **Solution suggestion 2:** Start reimplementing tom on an entirely different box. - Either emulating exactly what tom is doing - Or land on a solution to https://git.pvv.ntnu.no/Drift/issues/issues/144, potentially reworking how wwwhome works
Owner

I really prefer solution 2, but there are many problems that can arise when upgrading absolutely everything from where we store home directories, to apache-, php-, wsgi-, python-, and debian-versions.

A good place to start is probably to identify the things that can break, and how important they are. Testing/verifying different user pages could be useful, but we could probably also just ask people who have active pages to please check them on a new system?

We don't have an SLA or any real obligations, but preserving historical computing stuff is fun!

I really prefer solution 2, but there are many problems that can arise when upgrading absolutely everything from where we store home directories, to apache-, php-, wsgi-, python-, and debian-versions. A good place to start is probably to identify the things that can break, and how important they are. Testing/verifying different user pages could be useful, but we could probably also just ask people who have active pages to please check them on a new system? We don't have an SLA or any real obligations, but preserving historical computing stuff is fun!
Owner

we could rebuild tom with nixos and add a shitton of fhs paths

We could start by wget -r all of the home pages, make the new tom, crawl it, and diff the result

we could rebuild tom with nixos and add a shitton of fhs paths We could start by `wget -r` all of the home pages, make the new tom, crawl it, and diff the result
Sign in to join this conversation.
No description provided.