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

Cannot use 10.6 or 10.5 on arm, permission error during install process #219

Closed
loudjanilef opened this issue Feb 19, 2021 · 6 comments
Closed

Comments

@loudjanilef
Copy link

Hello,
I tried recently to upgrade my owncloud docker image from 10.4.1 to 10.6.
The update went well untill it reached the Set mode for background jobs to 'cron' step
It then stops with the following error :

touch: setting times of '/etc/cron.d/e2scrub_all': Operation not permitted
touch: setting times of '/etc/cron.d/owncloud': Operation not permitted
touch: setting times of '/etc/cron.d/php': Operation not permitted 

At first I thought it was a problem with my 10.4.1 version and flushed everything to perform a fresh install, but the problem was still here, I also tried with 10.5 and it still doesn't work. Only 10.4.1 works for me.

I posted on Owncloud central and I was advised to open an issue here : https://central.owncloud.org/t/impossible-to-upgrade-to-10-6-0-setting-times-of-etc-cron-d-php-operation-not-permitted/30721
I think that the 55-cron.sh script may be called with the wrong user.

Steps to reproduce

  1. Use the docker-compose file given here https://doc.owncloud.org/server/10.6/admin_manual/installation/docker/#docker-compose-yaml-file with OWNCLOUD_VERSION to 10.6 in the .env file
  2. Start with docker-compose up [-d]

Expected behaviour

The install should run entirely

Actual behaviour

Install stops while Touching cron configs with the following error :

 Set mode for background jobs to 'cron'
owncloud_1  | Touching cron configs...
owncloud_1  | touch: setting times of '/etc/cron.d/e2scrub_all': Operation not permitted
owncloud_1  | touch: setting times of '/etc/cron.d/owncloud': Operation not permitted
owncloud_1  | touch: setting times of '/etc/cron.d/php': Operation not permitted 

Logs

Creating network "owncloud_internal" with the default driver
Creating owncloud_db_1    ... done
Creating owncloud_redis_1 ... done
Creating owncloud_owncloud_1 ... done
Attaching to owncloud_redis_1, owncloud_db_1, owncloud_owncloud_1
db_1        | Cron is enabled, launching it!
db_1        | Starting cron daemon now...
db_1        | > writing mariadb config
db_1        | gomplate version 3.1.0, build 2f357bd5 (2018-11-30T02:51:36Z)
db_1        | config is:
db_1        | input: /etc/templates/my.cnf.tmpl
db_1        | output: /etc/mysql/my.cnf
db_1        |
db_1        | rendered 1 template(s) with 0 error(s) in 3.51881ms
db_1        | > chown data directory
db_1        | > running mysql_install_db...
db_1        | Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
db_1        | 2021-02-19 10:01:28 6 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory")
redis_1     | > chown data directory
redis_1     | > starting redis service
redis_1     | 14:C 19 Feb 2021 10:01:27.556 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1     | 14:C 19 Feb 2021 10:01:27.556 # Redis version=5.0.5, bits=32, commit=47edd290, modified=0, pid=14, just started
redis_1     | 14:C 19 Feb 2021 10:01:27.557 # Configuration loaded
redis_1     | 14:M 19 Feb 2021 10:01:27.564 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now.
redis_1     | 14:M 19 Feb 2021 10:01:27.568 * Running mode=standalone, port=6379.
redis_1     | 14:M 19 Feb 2021 10:01:27.568 # Server initialized
redis_1     | 14:M 19 Feb 2021 10:01:27.569 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1     | 14:M 19 Feb 2021 10:01:27.569 * Ready to accept connections
owncloud_1  | Creating volume folders...
owncloud_1  | Creating hook folders...
owncloud_1  | Waiting for MySQL...
db_1        | OK
db_1        |
db_1        | To start mysqld at boot time you have to copy
db_1        | support-files/mysql.server to the right place for your system
db_1        |
db_1        |
db_1        | Two all-privilege accounts were created.
db_1        | One is root@localhost, it has no password, but you need to
db_1        | be system 'root' user to connect. Use, for example, sudo mysql
db_1        | The second is mysql@localhost, it has no password either, but
db_1        | you need to be the system 'mysql' user to connect.
db_1        | After connecting you can set the password, if you would need to be
db_1        | able to connect as any of these users with a password and without sudo
db_1        |
db_1        | See the MariaDB Knowledgebase at http://mariadb.com/kb or the
db_1        | MySQL manual for more instructions.
db_1        |
db_1        | You can start the MariaDB daemon with:
db_1        | cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
db_1        |
db_1        | You can test the MariaDB daemon with mysql-test-run.pl
db_1        | cd '/usr/mysql-test' ; perl mysql-test-run.pl
db_1        |
db_1        | Please report any problems at http://mariadb.org/jira
db_1        |
db_1        | The latest information about MariaDB is available at http://mariadb.org/.
db_1        | You can find additional information about the MySQL part at:
db_1        | http://dev.mysql.com
db_1        | Consider joining MariaDB's strong and vibrant community:
db_1        | https://mariadb.org/get-involved/
db_1        |
db_1        | > finished mysql_install_db
db_1        | > starting mariadb service
db_1        | 210219 10:01:31 mysqld_safe Logging to '/var/lib/mysql/9358620567be.err'.
db_1        | 210219 10:01:31 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
owncloud_1  | services are ready!
owncloud_1  | Waiting for Redis...
owncloud_1  | services are ready!
owncloud_1  | Removing custom folder...
owncloud_1  | Linking custom folder...
owncloud_1  | Removing config folder...
owncloud_1  | Linking config folder...
owncloud_1  | Writing config file...
owncloud_1  | Fixing base perms...
owncloud_1  | Fixing data perms...
owncloud_1  | Fixing hook perms...
owncloud_1  | Installing server database...
owncloud_1  | ownCloud was successfully installed
owncloud_1  | ownCloud is already latest version
owncloud_1  | Writing objectstore config...
owncloud_1  | Writing php config...
owncloud_1  | Updating htaccess config...
owncloud_1  | .htaccess has been updated
owncloud_1  | Writing apache config...
owncloud_1  | Enabling cron background...
owncloud_1  | Set mode for background jobs to 'cron'
owncloud_1  | Touching cron configs...
owncloud_1  | touch: setting times of '/etc/cron.d/e2scrub_all': Operation not permitted
owncloud_1  | touch: setting times of '/etc/cron.d/owncloud': Operation not permitted
owncloud_1  | touch: setting times of '/etc/cron.d/php': Operation not permitted
owncloud_owncloud_1 exited with code 1

docker image inspect owncloud/server:10.6

[
    {
        "Id": "sha256:2cccc6d38cf7699777cd9042ba07ae772a81888a1814dddb0c725350f8e56c17",
        "RepoTags": [
            "owncloud/server:10.6"
        ],
        "RepoDigests": [
            "owncloud/server@sha256:9defa1a8a8de7c280c177463df35453eee03d5b03bc7e7d9005bbfcb9921c3d7"
        ],
        "Parent": "",
        "Comment": "",
        "Created": "2021-02-17T14:19:18.819654979Z",
        "Container": "fef4796eced62d52597c713372ab9268cc7ffab6edf77d9cf3d733d75635ccf1",
        "ContainerConfig": {
            "Hostname": "fef4796eced6",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "8080/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "DEBIAN_FRONTEND=noninteractive",
                "TERM=xterm"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "#(nop) ",
                "LABEL org.label-schema.vcs-url=https://github.com/owncloud-docker/server.git"
            ],
            "Image": "sha256:fbe40596d8fb75e46ce2469068b9714a31e6f8a8b00410bc2f2592c9f4e67678",
            "Volumes": {
                "/mnt/data": {}
            },
            "WorkingDir": "/var/www/owncloud",
            "Entrypoint": [
                "/usr/bin/entrypoint"
            ],
            "OnBuild": null,
            "Labels": {
                "maintainer": "ownCloud DevOps <devops@owncloud.com>",
                "org.label-schema.build-date": "2021-02-17T14:16:11Z",
                "org.label-schema.name": "ownCloud Server",
                "org.label-schema.schema-version": "1.0",
                "org.label-schema.vcs-ref": "b23b7fd064ba3615ab136480aeea4159ae10582b",
                "org.label-schema.vcs-url": "https://github.com/owncloud-docker/server.git",
                "org.label-schema.vendor": "ownCloud GmbH"
            }
        },
        "DockerVersion": "19.03.8",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "8080/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "DEBIAN_FRONTEND=noninteractive",
                "TERM=xterm"
            ],
            "Cmd": [
                "/usr/bin/owncloud",
                "server"
            ],
            "Image": "sha256:fbe40596d8fb75e46ce2469068b9714a31e6f8a8b00410bc2f2592c9f4e67678",
            "Volumes": {
                "/mnt/data": {}
            },
            "WorkingDir": "/var/www/owncloud",
            "Entrypoint": [
                "/usr/bin/entrypoint"
            ],
            "OnBuild": null,
            "Labels": {
                "maintainer": "ownCloud DevOps <devops@owncloud.com>",
                "org.label-schema.build-date": "2021-02-17T14:16:11Z",
                "org.label-schema.name": "ownCloud Server",
                "org.label-schema.schema-version": "1.0",
                "org.label-schema.vcs-ref": "b23b7fd064ba3615ab136480aeea4159ae10582b",
                "org.label-schema.vcs-url": "https://github.com/owncloud-docker/server.git",
                "org.label-schema.vendor": "ownCloud GmbH"
            }
        },
        "Architecture": "arm",
        "Os": "linux",
        "Size": 985122085,
        "VirtualSize": 985122085,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/59c48592840bc955acddf50c757cf013efab0e03c37e6ccaefe3a2f7bf11c5c4/diff:/var/lib/docker/overlay2/c92ab5cf81f1c028556cded894fa29544abb79a5a91e046107f1dd48d43e21c0/diff:/var/lib/docker/overlay2/8acc4e4285ce2096846d53593deb9c9341d8c29857974f6397b165e21cafa889/diff:/var/lib/docker/overlay2/a4cb2b518c7584d614c1cf9a08d815a5c1342c549d5ba8d61321684f52398897/diff:/var/lib/docker/overlay2/1a6550953262a3cb74a3f42ad6621f14ec03f160919c0067dac94e66cf2dd888/diff:/var/lib/docker/overlay2/27b7dd36963740bef7bb4bf1299d894f87689b214aa36dc7a752ecf6c78550da/diff:/var/lib/docker/overlay2/b44942bb95c2f40364ccd1785b51cc397c11a9efa7744ba580be9cfa31ec4922/diff:/var/lib/docker/overlay2/c8b25ddb1f14fe01893ab16f60eaf95b0b2ceadcbadafa02cfc3f899d45a9d13/diff:/var/lib/docker/overlay2/f5f8759a4f8695da908bf4c781b3f955ad8c7a954f3fa3513c9bf3358b8dc120/diff:/var/lib/docker/overlay2/89da24fe44f8eac629cb7b97214b49b98c79c654d7b73aed69746f789d453ee9/diff:/var/lib/docker/overlay2/fe3859b4b7ba841c4e3b67cb7247d1421a17eace83f11624c73e6c0afdbc05ed/diff:/var/lib/docker/overlay2/eda305df5caea29a859888cb84be1dec5f8e515a22035a12ab0fd2f0520c5b04/diff:/var/lib/docker/overlay2/de4b0e2e7dfddd6868a6c6e2a645df47a32c391540aecb7bcaa5e6757fccc84c/diff:/var/lib/docker/overlay2/752ded95218ac3a79da14ef6cefd1070727d310f6601f68b09df7d972c28eb28/diff:/var/lib/docker/overlay2/c92829649a8138cc9a7e49933e83966c0e02d304e2d7eca434e51d65c5facd82/diff:/var/lib/docker/overlay2/6eb5a6f4935937e5cb00debbf208dd7e2bb349cde17a78fd265cbf0aada32c34/diff:/var/lib/docker/overlay2/7ac83ce22e36aa0388a70c06db42917274ac2c70e4226be84ebbd35ec1a132c7/diff",
                "MergedDir": "/var/lib/docker/overlay2/4507c5c02defdd14babdb97877dde171969eb24b076b8cd2f19bd8cebe89320f/merged",
                "UpperDir": "/var/lib/docker/overlay2/4507c5c02defdd14babdb97877dde171969eb24b076b8cd2f19bd8cebe89320f/diff",
                "WorkDir": "/var/lib/docker/overlay2/4507c5c02defdd14babdb97877dde171969eb24b076b8cd2f19bd8cebe89320f/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:ca8a7ec55591ae26467793ea9f375a2e4e2585ff752237302124e6f31d76778d",
                "sha256:dc577acf688e6ff885ba56fe65fa67af71118c0ba6c1fd27a8e372c775d7640b",
                "sha256:ddae05028e6d1e5e25b9634ad001a6b7f96297a6e68e6acf30bb1f675a31ff67",
                "sha256:1d427abfa03ea71858ffffce536f06bf8c7a2067ab3a3bfd175215d7625a076b",
                "sha256:9529a5a33ef79d2142caaef2bc2fdef0c7c88d828955136e0170515508bdb6fa",
                "sha256:e2e651b4b5e6a1852283648bf1ab9a19a768da19e40a4b5c0ffc62d9b734a709",
                "sha256:4f94d50ae1a83698e10858526b23c15ffa24beb9a89775e0b807cdb2fd790156",
                "sha256:6ef06b8c36bebac40b8ce650533f28524d33913ab807dd91be995e6cb4d6f263",
                "sha256:04d97453604b84a0d9eded115cf358c40bce368c92f732e6fe8a2e9a6813a0e4",
                "sha256:a30256907d4cd7eb6043dd31ec0fbb7282ff18e4f139a68ad6c12644386cb83f",
                "sha256:eec2d7386d5bf26f927e5eff773da9a4d0e26572470030a27e11375e1d5539da",
                "sha256:a2b58369929c3967ac30ebdbf71439bf0415d748c0e03919e4cb5c383558b53b",
                "sha256:75e2e1708ec9512c627509645fad635f9bd7189eef2909249313486fc9016362",
                "sha256:71a97f5f19f50a914b33ce512523e6602164bf19d4e8360937b95fcdaf778fe5",
                "sha256:318f18081709aaabe4405df51d084205bc51dfdcceb16afe501d52a5021d9612",
                "sha256:d895389e0a55b6a1702281b4c8f65d12544ecbac6836ef6566ec79cd28037a8e",
                "sha256:ebbadb879c18101a48f56dafcb406fdbacb64e10a0e22c7dfbe23d1a0c028769",
                "sha256:81750ade3aa942064c072aa4c9da80d84645ba67d10dd337aad31ca6d4a90447"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]
@joan-carles
Copy link

I have exactly the same problem. To do the instalation I used the docker-compose that you can find in the owncloud website. And then I added some lines to configure traefik,

@CalvinSchwartz
Copy link

CalvinSchwartz commented Feb 22, 2021

I found a similar issue here: linuxserver/docker-papermerge#4

Short Version: libseccomp2.deb is to old on raspbian. Therefore you do have to download a newer version from the Debian Repo on your host. I haven't checked this but will report back in a couple of hours if it works.

wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.1-1_armhf.deb
sudo dpkg -i libseccomp2_2.5.1-1_armhf.deb

Additional Source: https://docs.linuxserver.io/faq

@joan-carles
Copy link

Yes. After updating the placket you mention works

CalvinSchwartz added a commit to CalvinSchwartz/docs that referenced this issue Feb 22, 2021
The Version 10.5 and 10.6 won't work due to an permission error caused by an old version of libseccomp.
See owncloud-docker/server#219
@loudjanilef
Copy link
Author

It works for me too, thank you very much.

@loudjanilef
Copy link
Author

May I close the issue ?

phil-davis pushed a commit to CalvinSchwartz/docs that referenced this issue Feb 24, 2021
The Version 10.5 and 10.6 won't work due to an permission error caused by an old version of libseccomp.
See owncloud-docker/server#219
phil-davis pushed a commit to owncloud/docs that referenced this issue Feb 24, 2021
The Version 10.5 and 10.6 won't work due to an permission error caused by an old version of libseccomp.
See owncloud-docker/server#219
phil-davis pushed a commit to owncloud/docs that referenced this issue Feb 24, 2021
The Version 10.5 and 10.6 won't work due to an permission error caused by an old version of libseccomp.
See owncloud-docker/server#219
@bre81
Copy link

bre81 commented Jul 19, 2021

wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.1-1_armhf.deb
sudo dpkg -i libseccomp2_2.5.1-1_armhf.deb

hmm. i've exactly tried to use this before trying to start container using any of the containers from 10.5.0 to 10.7.0 but wasn't successful at all.
still get the reoccuring restart of the owncloud container with showing the same issues @loudjanilef showed above.
is there anything more to be changed?
i am running on a fresh installation of pi os lite + docker.io (19.03.8) on a pi3b with webhippie/mariadb:latest and webhippie/redis:latest
any suggestions? thanks!

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

No branches or pull requests

4 participants