Docker Compose missing dependancy?

The discussion here is limited to topics related to the system update itself. Please post the functional issues after the system update to the corresponding other forums.
User avatar
matt_30
Posts: 67
Joined: 02 Jan 2021, 23:22

Docker Compose missing dependancy?

Post by matt_30 »

I have just upgraded to TNAS 5.0.171 and installed the docker update.

Docker appears to work, however when I try to run docker compose it complains of a missing dependency:

Code: Select all

[matt@TNAS-7702 ~]# docker-compose -version
Traceback (most recent call last):
  File "/Volume1/@apps/docker/dockerd/bin/docker-compose", line 6, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

contents of /Volume1/@apps/docker/dockerd/bin/docker-compose:

Code: Select all

[matt@TNAS-7702 ~]# cat /Volume1/@apps/docker/dockerd/bin/docker-compose | more
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'docker-compose==1.24.1','console_scripts','docker-compose'
__requires__ = 'docker-compose==1.24.1'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(
        load_entry_point('docker-compose==1.24.1', 'console_scripts', 'docker-compose')()
    )
Since I can't install/use pip, install python dependencies etc.. I suspect I'm in a bit of a pickle here.

Has anyone else seen this or know of a fix?

Kind Regards,
Matt.
User avatar
matt_30
Posts: 67
Joined: 02 Jan 2021, 23:22

Re: Docker Compose missing dependancy?

Post by matt_30 »

Are Terramaster able to attempt to replicate this or is it better i log a support ticket?
User avatar
TWlhq
TerraMaster Team
Posts: 29
Joined: 29 Jun 2022, 18:12

Re: Docker Compose missing dependancy?

Post by TWlhq »

{L_BUTTON_AT}matt_30

We will verify this problem.
User avatar
rpluto
Posts: 11
Joined: 18 Nov 2020, 06:04

Re: Docker Compose missing dependancy?

Post by rpluto »

Any news about this ?

I have the same issue
———
TOS 5.0.171 (x.86)
F5-221 - 10G - 4x4TB (WD Red Pro) - raid5 (btrfs)
Docker containers with docker-compose, managed with portainer
User avatar
rpluto
Posts: 11
Joined: 18 Nov 2020, 06:04

Re: Docker Compose missing dependancy?

Post by rpluto »

@TWlhq

Any workaround possible ?
———
TOS 5.0.171 (x.86)
F5-221 - 10G - 4x4TB (WD Red Pro) - raid5 (btrfs)
Docker containers with docker-compose, managed with portainer
User avatar
rpluto
Posts: 11
Joined: 18 Nov 2020, 06:04

Re: Docker Compose missing dependancy?

Post by rpluto »

I already fix the dependency issue.

Code: Select all

mkdir libffi6
cd libffi6
ter_wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
ar x libffi6_3.2.1-8_amd64.deb
rm libffi6_3.2.1-8_amd64.deb
tar xvf data.tar.xz
cd usr/lib/x86_64-linux-gnu/
cp -Rv libffi.so.6* /usr/lib/
cd
rm -Rf libffi6
ter_wget http://peak.telecommunity.com/dist/ez_setup.py 
python ez_setup.py -U https://files.pythonhosted.org/packages/53/7f/55721ad0501a9076dbc354cc8c63ffc2d6f1ef360f49ad0fbcce19d68538/pip-20.3.4.tar.gz
rm ez_setup.py
pip python -m ensurepip
pip install docker-compose
Thank you Terra Master support :(
———
TOS 5.0.171 (x.86)
F5-221 - 10G - 4x4TB (WD Red Pro) - raid5 (btrfs)
Docker containers with docker-compose, managed with portainer
User avatar
rpluto
Posts: 11
Joined: 18 Nov 2020, 06:04

Re: Docker Compose missing dependancy?

Post by rpluto »

fix, the last docker-compose was not "compatible" with other packages

Code: Select all

mkdir libffi6
cd libffi6
ter_wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
ar x libffi6_3.2.1-8_amd64.deb
rm libffi6_3.2.1-8_amd64.deb
tar xvf data.tar.xz
cd usr/lib/x86_64-linux-gnu/
cp -Rv libffi.so.6* /usr/lib/
cd
rm -Rf libffi6
ter_wget http://peak.telecommunity.com/dist/ez_setup.py 
python ez_setup.py -U https://files.pythonhosted.org/packages/53/7f/55721ad0501a9076dbc354cc8c63ffc2d6f1ef360f49ad0fbcce19d68538/pip-20.3.4.tar.gz
rm ez_setup.py
python -m ensurepip
pip install docker-compose==1.24.1
———
TOS 5.0.171 (x.86)
F5-221 - 10G - 4x4TB (WD Red Pro) - raid5 (btrfs)
Docker containers with docker-compose, managed with portainer
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Docker Compose missing dependancy?

Post by XFNeo »

TerraMaster Support?
User avatar
rpluto
Posts: 11
Joined: 18 Nov 2020, 06:04

Re: Docker Compose missing dependancy?

Post by rpluto »

Docker Manage App update, issue reappeared

I remove my python3 app and docker manager app then I remove all python3 under /usr/bin/python3*

Code: Select all

rm /usr/bin/python3*
then i create a sym link to python -> python2.7

Code: Select all

cd /usr/bin/
ln -s python2.7 python
cd
docker --version
Docker version 20.10.17, build 20.10.17

docker-compose --version
docker-compose version 1.24.1, build 4667896

Let me know if i can help.
———
TOS 5.0.171 (x.86)
F5-221 - 10G - 4x4TB (WD Red Pro) - raid5 (btrfs)
Docker containers with docker-compose, managed with portainer
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Docker Compose missing dependancy?

Post by TMSupport »

{L_BUTTON_AT}rpluto
Please do the following. 1. Go to the application center to install Python3 and then install pip. 2. Login to the SSH terminal and execute the following command.

Code: Select all

cd /Volume1/@apps/Python3/sysroot/usr/bin

Code: Select all

./pip install docker-compose
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Post Reply