Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Upgrade Python in deploy-apt-* CI jobs #116

Open
vmax opened this issue Aug 4, 2021 · 1 comment
Open

Upgrade Python in deploy-apt-* CI jobs #116

vmax opened this issue Aug 4, 2021 · 1 comment

Comments

@vmax
Copy link
Contributor

vmax commented Aug 4, 2021

Description

Currently, using Python 3.8 or newer when deploying APT packages might result in a package that's not installable.

Environment

  1. OS (where TypeDB server runs): Ubuntu 21.04 (or any other APT-based distribution)
  2. TypeDB version (and platform): 2.3.0
  3. TypeDB client: -
  4. Other environment details: -

Reproducible Steps

sudo apt install typedb-all

Expected Output

Package installed

Actual Output

An error thrown:

Unpacking typedb-console (2.3.0) ...
dpkg: error processing archive /var/cache/apt/archives/typedb-console_2.3.0_all.deb (--unpack):
 corrupted filesystem tarfile in package archive: unsupported PAX tar header type 'x'
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/typedb-console_2.3.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Additional information

This is happening because of bazelbuild/rules_pkg#397

@flyingsilverfin
Copy link
Member

To solve this, we currently explicitly set Python 3.7.9 in apt deployments. However, it may also be solved by upgrading rules_pkg to at least version 0.7.1 (fixed in bazelbuild/rules_pkg#601)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants