OMV,Docker,Nextcloud,Swag

  • Hallo bin neu hier


    Meine Hardware Odrouid xu4


    Hatte bis vor kurzen Nexcloud über OMV4 Docker lokal laufen.

    Mein Ziel Nexcloud über OMV 5 auch von außen zugänglich zu machen.

    Portainer hat mich erstmal abgeschreckt.

    OMV5 läuft Docker läuft Portainer läuft

    Hier die Anleitung die ich genommen habe.


    Externer Inhalt www.youtube.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.


    Über Stacks


    version: "2"

    services:

    nextcloud:

    image: linuxserver/nextcloud

    container_name: nextcloud

    environment:

    - PUID=997

    - PGID=100

    - TZ=Europe/Berlin

    volumes:

    - /srv/dev-disk-by-uuid-58c8009c-e33b-47e2-99a9-dfe/appdata/nextcloud/config:/config

    - /srv/dev-disk-by-uuid-58c8009c-e33b-47e2-99a9-dfe/appdata/nextcloud/data:/data

    depends_on:

    - mariadb

    restart: unless-stopped

    mariadb:

    image: linuxserver/mariadb

    container_name: mariadb

    environment:

    - PUID=997

    - PGID=100

    - MYSQL_ROOT_PASSWORD=xxxxxxxxxxxx

    - TZ=Europe/Berlin

    volumes:

    - /srv/dev-disk-by-uuid-58c8009c-e33b-47e2-99a9-dfe/appdata/mariadb:/config

    restart: unless-stopped

    swag:

    image: linuxserver/swag

    container_name: swag

    cap_add:

    - NET_ADMIN

    environment:

    - PUID=997

    - PGID=100

    - TZ=Europe/Berlin

    - URL=xxxxx.duckdns.org

    - SUBDOMAINS=wildcard

    - VALIDATION=duckdns

    - DUCKDNSTOKEN=xxxxxxxxxxxxxxxxx

    volumes:

    - /srv/dev-disk-by-uuid-58c8009c-e33b-/appdata/swag:/config

    ports:

    - 443:443

    - 82:80

    restart: unless-stopped


    Läuft alles ohne Fehler.


    das ist es aber schon.


    Zugriff nicht möglich

    Port ist offen 443 sonst nichts.

    Router Speedport Smart 3


    Was habe ich bis jetzt gemacht:


    nextcloud.subdomain.conf geändert


    In config.php seht nur das sonst nichts


    ?php

    $CONFIG = array (

    'memcache.local' => '\OC\Memcache\APCu',

    'datadirectory' => '/data',

    );

    Connectet Netzwerk bei allen drei Container auf bridge gestellt


    Duckdns Domain habe über Handy (anderes Netz) Ping ist erreichbar alles ok.


    Das die config.php leer ist kann nicht normal sein.


    Was kann ich tun bin jetzt schon 3 Tage beschäftigt viel gelernt.









    • Offizieller Beitrag

    That's interesting, mine it's 998, but I do have a 997 user now that I check.


    Code
    ken @ openmediavault: ~ $ id 997
    uid = 997 (openmediavault-notify) gid = 993 (openmediavault-notify) groups = 993 (openmediavault-notify)
    ken @ openmediavault: ~ $ id 998
    uid = 998 (admin) gid = 100 (users) groups = 100 (users), 994 (openmediavault-admin)
    ken @ openmediavault: ~ $ 
  • Hallo


    bin leider noch nicht weiter habe alles mal neu aufgesetzt Ambian ,OMV ,OMV Extra

    alles neu.

    Bekomme einen Fehler in swag den ich aber hiemit gelöst habe.


    Option 3

    https://docs.linuxserver.io/fa…ntu-focal-and-alpine-3-13


    Ohne jetzt zu ergründen warum das so ist.


    Jetzt bekomme ich leider noch diesen Fehler ,keine Ahnung warum DUCKDNSTOKEN is correct.

    Genau kontrolliert.


    ERROR: Cert does not exist! Please see the validation error above. Make sure your DUCKDNSTOKEN is correct.

    • Offizieller Beitrag

    So duckdns is getting a token, that is good... so swag is at least initially setup properly.


    Look at your nextcloud log...


    Code
    cp: cannot create regular file '/config/www/nextcloud/config/config.php': No such file or directory,
    
    chown: cannot access '/config/www/nextcloud/config/config.php': No such file or directory,

    It looks like it is complaining there is no config.php file. This should have been automatically created somewhere under your /config folder.


    Can you post your docker-compose (or stack) you used file you used.

  • Hallo


    habe es aufgegeben ,das ist zu extrem, bei jedem Update kommen neue Probleme.


    Bin jetzt lokal unterwegs hat sofort funktioniert ,reichbar nur über das eigene Netzwerk ist auch sicherer.

    Nextcloud läuft .

    Zwei Sachen habe ich noch wenn ich OMV neu starte ,muss ich jedesmal Docker neustarten damit er den Container kommt.

    Und wie bekomme ich Nextcloud ohne SSL also mit mit HTTP zu laufen im eigenen Netzwerk macht das lästige nachfragen nach Zertifikat keinen Sinn.


    Danke

    • Offizieller Beitrag

    I still think it is because of the way your data and config files are mapped, essentially under the same folder. The fact it's getting permission errors would seem to suggest this is the issue. I suspect a permission that is being put on the /data path, is causing a problem with the /config path


    Code
          - /srv/dev-disk-by-dfe598958737/appdata/nextcloud/config:/config
          - /srv/dev-disk-by-dfe598958737/appdata/nextcloud/data:/data


    Try this, delete that nextcloud folder.


    Change your volumes under nextcloud to this.


    Code
    - /srv/dev-disk-by-dfe598958737/appdata/nextcloud/config:/ config
    - /srv/dev-disk-by-dfe598958737/nextcloud/data:/data

    and redeploy the stack.

  • Hallo

    danke für die Antwort


    Es liegt nicht an den Berechtigungen das hatte ich schon überprüft.

    Nextcloud Ordner löschen hatte ich auch probiert.


    Mein Nextcloud lokal läuft ja .


    Hier der Stack

    keine Fehlermeldung.


    version: "2"


    services:


    nextcloud:


    image: ghcr.io/linuxserver/nextcloud


    container_name: nextcloud


    environment:


    - PUID=997


    - PGID=100


    - TZ=Europe/Berlin


    volumes:


    - /srv/dev-disk-by-dfe598958737/appdata/nextcloud/config:/config


    - /srv/dev-disk-by-dfe598958737/appdata/nextcloud/data:/data


    ports:


    - 450:443


    depends_on:


    - mariadb


    restart: unless-stopped


    mariadb:


    image: ghcr.io/linuxserver/mariadb


    container_name: mariadb


    environment:


    - PUID=997


    - PGID=100


    - MYSQL_ROOT_PASSWORD=xxxxxxxxx


    - TZ=Europe/Berlin


    volumes:


    - /srv/dev-disk-by-dfe598958737/appdata/mariadb:/config


    restart: unless-stopped


    Https://die IP vom OMV:450

    schon da .

    Wie bekomme ich ihn über Http erreichbar ?


    Es gibt wohl noch eine Möglichkeit SLL Zertifikat

    Der Container Name

    paulczar/omgwtfssl

    Gibt es einen Stack für mich


    Bin noch nicht so fitt mit Portainer mit dem Stack ist das einfacher.


    Danke


Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!