rdqoffice in einem LXC Container installieren

rdqoffice ist ein „work in progress“ Buchhaltungsprojekt für Einnahmen-Ausgaben-Rechner von Herrn Johan Rosman aus Parndorf.

Die ersten Installationsschritte sind:

  • Download des Containers LAPP von https://www.turnkeylinux.org/lapp
    • Der Inhalt ist Linux, Apache, PostgreSQL, PHP 7.3, Python und Perl
    • Nach der Installation dieses Containers auf meinem Proxmox Server erfolgt die Eingabe von
    • PostgreSQL Master-Passwort und der Container ist erreichbar unter
│ Web:        http://192.168.10.152                        │  
│             https://192.168.10.152                       │  
│ Web shell:  https://192.168.10.152:12320                 │  
│ Webmin:     https://192.168.10.152:12321                 │  
│ Adminer:    https://192.168.10.152:12322                 │  
│ SSH/SFTP:   root@192.168.10.152 (port 22)                │  
│                                                          │  
│ TKLBAM (Backup and Migration):  NOT INITIALIZED          │ 

TKLBAM möchte ich nicht einrichten, da dann die Daten automatisch auf Amazons S3 Servern landen.

Jetzt folgen die Schritte auf der Konsole.

  • ssh root@192.168.10.152
    • # apt update
      • Get:1 http://security.debian.org buster/updates InRelease [65.4 kB]
      • Get:2 http://security.debian.org buster/updates/main amd64 Packages [285 kB]
      • Hit:3 http://deb.debian.org/debian buster InRelease
      • Get:4 http://security.debian.org buster/updates/main Translation-en [148 kB]
      • Ign:5 http://archive.turnkeylinux.org/debian buster-security InRelease
      • Ign:6 http://archive.turnkeylinux.org/debian buster InRelease
      • Hit:7 http://archive.turnkeylinux.org/debian buster-security Release
      • Hit:9 http://archive.turnkeylinux.org/debian buster Release
      • Fetched 498 kB in 3s (184 kB/s)
      • Reading package lists… Done
      • Building dependency tree
      • Reading state information… Done
      • 18 packages can be upgraded. Run ‚apt list –upgradable‘ to see them.
    • # apt full-upgrade
    • # confconsole
      • Überprüfen, ob alle Einstellungen passen
    • # exit – zurück zum Client
  • $ scp rdqoffice-pilot.zip root@192.168.10.152:.
  • ssh root@192.168.10.152
    • # cd /opt
    • # unzip ~/rdqoffice-pilot.zip
    • # apt install sudo
    • # apt install python3-venv python3-pip
    • # apt install python3-setuptools
    • # apt install rustc
    • # apt install python3-psycopg2
    • # apt install gunicorn3
    • # useradd rdqoffice
    • # passwd rdqoffice
  • Die nachfolgende Schritte passieren mit dem Benutzer rdqoffice
    • $ pip3 install –upgrade pip
    • $ pip3 install –upgrade wheel
    • $ cd /opt/rdqoffice-pilot
    • $ pip3 install -r requirements.txt
    • $ python3 ./manage.py migrate
Traceback (most recent call last):
  File "./manage.py", line 21, in <module>
    main()
  File "./manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.7/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.7/dist-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/usr/local/lib/python3.7/dist-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python3.7/dist-packages/django/apps/registry.py", line 114, in populate
    app_config.import_models()
  File "/usr/local/lib/python3.7/dist-packages/django/apps/config.py", line 301, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/rdqoffice-pilot/inv/models/__init__.py", line 1, in <module>
    from .ausgangsrechnung import AusgangsRechnung, Rechnungszeile, Rechnungstyp, RechnungsstatusChoices
  File "/opt/rdqoffice-pilot/inv/models/ausgangsrechnung.py", line 18, in <module>
    from inv.presentation import PdfRechnung, XmlRechnung, Leistungsnachweis
  File "/opt/rdqoffice-pilot/inv/presentation/__init__.py", line 2, in <module>
    from . xml_rechnung import XmlRechnung
  File "/opt/rdqoffice-pilot/inv/presentation/xml_rechnung.py", line 6, in <module>
    from srv.models import Aufwand
  File "/opt/rdqoffice-pilot/srv/models/__init__.py", line 1, in <module>
    from .mitarbeiter import Mitarbeiter
  File "/opt/rdqoffice-pilot/srv/models/mitarbeiter.py", line 1, in <module>
    from django.contrib.auth.models import User
  File "/usr/local/lib/python3.7/dist-packages/django/contrib/auth/models.py", line 92, in <module>
    class Group(models.Model):
  File "/usr/local/lib/python3.7/dist-packages/django/db/models/base.py", line 161, in __new__
    new_class.add_to_class(obj_name, obj)
  File "/usr/local/lib/python3.7/dist-packages/django/db/models/base.py", line 326, in add_to_class
    value.contribute_to_class(cls, name)
  File "/usr/local/lib/python3.7/dist-packages/django/db/models/fields/related.py", line 1635, in contribute_to_class
    self.remote_field.through = create_many_to_many_intermediary_model(self, cls)
  File "/usr/local/lib/python3.7/dist-packages/django/db/models/fields/related.py", line 1099, in create_many_to_many_intermediary_model
    'verbose_name': _('%(from)s-%(to)s relationship') % {'from': from_, 'to': to},
  File "/usr/local/lib/python3.7/dist-packages/django/utils/functional.py", line 176, in __mod__
    return str(self) % rhs
  File "/usr/local/lib/python3.7/dist-packages/django/utils/functional.py", line 140, in __text_cast
    return func(*self.__args, **self.__kw)
  File "/usr/local/lib/python3.7/dist-packages/django/utils/translation/__init__.py", line 94, in gettext
    return _trans.gettext(message)
  File "/usr/local/lib/python3.7/dist-packages/django/utils/translation/trans_real.py", line 355, in gettext
    _default = _default or translation(settings.LANGUAGE_CODE)
  File "/usr/local/lib/python3.7/dist-packages/django/utils/translation/trans_real.py", line 268, in translation
    _translations[language] = DjangoTranslation(language)
  File "/usr/local/lib/python3.7/dist-packages/django/utils/translation/trans_real.py", line 160, in __init__
    raise OSError('No translation files found for default language %s.' % settings.LANGUAGE_CODE)
OSError: No translation files found for default language c.

Anscheinend sind diese Debian-Versionen von Python 3 nicht kompatibel mit einem Apple Mac.

Schreibe einen Kommentar