Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker run for nextcloud fails

Featured Replies

Hey Guys,

 

I'm posting this here, since it feels like an issue of the engine, rather than the container. I've got 2 nextcloud containers, one is nextcloud_prod, the other is nextcloud_test. This was working fine until recently, I changed some stuff, but reverted it back and now it's not working any more.

 

When I'm trying to start the container I get the message The command failed:

docker run
  -d
  --name='nextcloud_test'
  --net='swag'
  --cpuset-cpus='2,4,6,8,10,3,5,7,9,11'
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="server"
  -e HOST_CONTAINERNAME="nextcloud_test"
  -e 'PHP_MEMORY_LIMIT'='8192M'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://nextcloud.happyheppos.eu'
  -l net.unraid.docker.icon='https://decatec.de/wp-content/uploads/2017/08/nextcloud_logo.png'
  -p '3080:80/tcp'
  -v '/mnt/user/appdata/nextcloud_test/nextcloud':'/var/www/html':'rw'
  -v '/mnt/user/appdata/nextcloud_test/apps':'/var/www/html/custom_apps':'rw'
  -v '/mnt/user/appdata/nextcloud_test/config':'/var/www/html/config':'rw'
  -v '/mnt/user/nextcloud_data_prod':'/var/www/html/data':'rw'
  --user 99:100
  --sysctl net.ipv4.ip_unprivileged_port_start=0 'nextcloud:production' && docker exec
  -u 0 nextcloud_test /bin/sh
  -c 'echo "umask 000" >> /etc/apache2/envvars' && docker exec
  -u 0 nextcloud_test /bin/bash
  -c "apt update && apt install
  -y libmagickcore-6.q16-6-extra ffmpeg imagemagick ghostscript"
cab6b69a0570c5ce8417739b595a2a175f08e98ee01fca3a0fe37bceca09c7ad

The command failed.

 

Interestingly, this is basically only a copy/paste of the nextcloud_prod container which is working perfectly fine, the only thing I adapted is the container name for the Post arguments. Any ideas what might be going wrong here?

 

EDIT: I tried removing the && docker exec -u 0 nextcloud_test /bin/bash -c "apt update && apt install -y libmagickcore-6.q16-6-extra ffmpeg imagemagick ghostscript" from the post arguments and out of the sudden it's starting just fine and just calling the command manually (after the container is started without it) is also working like a charm.

 

Thank you in advance,

Autchi

Edited by Autchirion

  • Autchirion changed the title to Docker run for nextcloud fails

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.