Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apparmor dependency #742

Closed
buha opened this issue Aug 26, 2022 · 1 comment · Fixed by #863
Closed

apparmor dependency #742

buha opened this issue Aug 26, 2022 · 1 comment · Fixed by #863
Labels
bug Something isn't working dependencies Pull requests that update a dependency file docker Related to deployment with Docker
Projects

Comments

@buha
Copy link

buha commented Aug 26, 2022

I'm not very used to docker and this kind of stuff, but it seems to me apparmor is a dependency that could come through docker ? I had to manually install apparmor for the docker container to run.

root@toaster:~/photoview# docker-compose up -d
Creating network "photoview_default" with the default driver
Creating volume "photoview_db_data" with default driver
Creating volume "photoview_api_cache" with default driver
Pulling db (mariadb:10.5)...
10.5: Pulling from library/mariadb
a749a280e3e9: Pull complete
3f7d70702fc5: Pull complete
30bf71360e64: Pull complete
de03e071d469: Pull complete
6b2e7142ff90: Pull complete
297896b5518e: Pull complete
0e6b79d1c882: Pull complete
0003b908ecf0: Pull complete
f60570dc2c0b: Pull complete
ce7432501e89: Pull complete
5b8db4501e9f: Pull complete
Digest: sha256:970be3207fab6e36f37ee6e20b98cb8f6c9c4d11e9609f04462c640c7e906135
Status: Downloaded newer image for mariadb:10.5
Pulling photoview (viktorstrate/photoview:2)...
2: Pulling from viktorstrate/photoview
73d3feb17dc4: Pull complete
e3fa4841cbcd: Pull complete
675d1870f19e: Pull complete
2c3b3ddf97b4: Pull complete
ccf6f5aff35e: Pull complete
33d3e6853b8b: Pull complete
0cbb687fbef4: Pull complete
4b295904ab3d: Pull complete
Digest: sha256:68c83e8207715af098cb29a18f34b8af4913c6a589beb64cd2e1fb299d8c37a0
Status: Downloaded newer image for viktorstrate/photoview:2
Creating photoview_db_1 ... error

ERROR: for photoview_db_1  Cannot start service db: AppArmor enabled on system but the docker-default profile could not be loaded: running `apparmor_parser apparmor_parser --version` failed with output: 
error: exec: "apparmor_parser": executable file not found in $PATH

ERROR: for db  Cannot start service db: AppArmor enabled on system but the docker-default profile could not be loaded: running `apparmor_parser apparmor_parser --version` failed with output: 
error: exec: "apparmor_parser": executable file not found in $PATH
ERROR: Encountered errors while bringing up the project.
root@toaster:~/photoview# apparmor_parser apparmor_parser --version
Command 'apparmor_parser' not found, but can be installed with:
apt install apparmor
root@toaster:~/photoview# 
root@toaster:~/photoview# 
root@toaster:~/photoview# 
root@toaster:~/photoview# 
root@toaster:~/photoview# apt install apparmor
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  apparmor-profiles-extra apparmor-utils
The following NEW packages will be installed:
  apparmor
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 601 kB of archives.
After this operation, 2591 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 apparmor arm64 2.13.6-10 [601 kB]
Fetched 601 kB in 0s (2243 kB/s)
Preconfiguring packages ...
Selecting previously unselected package apparmor.
(Reading database ... 87220 files and directories currently installed.)
Preparing to unpack .../apparmor_2.13.6-10_arm64.deb ...
Unpacking apparmor (2.13.6-10) ...
Setting up apparmor (2.13.6-10) ...
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service → /lib/systemd/system/apparmor.service.
Reloading AppArmor profiles 
Processing triggers for man-db (2.9.4-2) ...
root@toaster:~/photoview# docker-compose up -d
Starting photoview_db_1 ... done
Creating photoview_photoview_1 ... done
root@toaster:~/photoview# 
@buha buha added the bug Something isn't working label Aug 26, 2022
@kkovaletp
Copy link
Contributor

The #863 contains instructions to disable AppArmor for Photoview services:

    security_opt:
      - seccomp:unconfined
      - apparmor:unconfined

This should fix this issue, so linking the PR to it

@kkovaletp kkovaletp added dependencies Pull requests that update a dependency file docker Related to deployment with Docker labels May 9, 2024
@kkovaletp kkovaletp added this to To do in Roadmap via automation May 9, 2024
@kkovaletp kkovaletp linked a pull request May 9, 2024 that will close this issue
Roadmap automation moved this from To do to Done May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file docker Related to deployment with Docker
Projects
Development

Successfully merging a pull request may close this issue.

2 participants