Skip to content

Nextcloud - Update auf 17.0.2

Nextcloud
1 1 260
  • Das Nextcloud Update auf 17.0.2 durchgeführt. Alles geklappt, aber im Backend schreibt NC, das man ein paar DB Spalten aktualisieren muss. Das macht NC nicht automatisch. Ok, dann von Hand. Dafür muss NC im Wartungsmodus sein.

    Maintenance Modus

    In der Config /nextcloud/config/config.php das hier ändern.

    'maintenance' => false,
    

    in

    'maintenance' => true,
    

    Danach befindet sich NC im Wartungsmodus.

    occ

    Schauen wir mal ob das File occ die nötigen Berechtigungen hat.

    chmod +x occ
    

    sudo

    Zur Durchführung des Befehles, benutzen wir sudo.

    apt install sudo
    

    Update Befehl

    sudo -u www-data ./occ db:convert-filecache-bigint
    

    Das Update wird ausgeführt.

    root@debian:/nginx/nextcloud# sudo -u www-data ./occ db:convert-filecache-bigint
    Nextcloud is in maintenance mode - no apps have been loaded
    
    Following columns will be updated:
    
    * mounts.storage_id
    * mounts.root_id
    * mounts.mount_id
    
    This can take up to hours, depending on the number of files in your instance!
    Continue with the conversion (y/n)? [n] y
    

    Aufräumen

    Danach den Wartungsmodus wieder ausschalten. Nun läuft NC wieder und man kann im Backend nachsehen, ob alles wieder funktioniert.

    Zum Schluss dem File occ die Rechte wieder nehmen.

    chmod -x occ
    

    und das sudo wieder deinstallieren.

     apt remove sudo
    

    Fertig!

    9a78bb9d-2998-4989-b7b3-b9d047d2d49b-image.png

  • Nextcloud - Update auf 30.0.1

    Nextcloud nextcloud linux
    1
    0 Stimmen
    1 Beiträge
    240 Aufrufe
    Niemand hat geantwortet
  • Nextcloud - Hub 5 (27.0.0) - Neuigkeiten

    Nextcloud nextcloud hub5 collabora
    1
    5
    0 Stimmen
    1 Beiträge
    328 Aufrufe
    Niemand hat geantwortet
  • Nextcloud - Kalender Syncronisation

    Nextcloud nextcloud kalender
    1
    3
    0 Stimmen
    1 Beiträge
    159 Aufrufe
    Niemand hat geantwortet
  • Nextcloud API Zugriff

    Nextcloud nextcloud
    4
    0 Stimmen
    4 Beiträge
    369 Aufrufe
    FrankMF
    Ok, es gab noch ein Problem und zwar '/'. Habe das Script jetzt nochmal umgebaut, jetzt bin ich soweit zufrieden. Die Textdatei ist auf meine Bedürfnisse angepasst worden 1.2.01 1.2.01.1 Text1.1 1.2.01.2 Text1.2 1.2.02 1.2.02.1 Text2.1/Testing 1.2.02.2 Text2.2 1.2.01 und 1.2.02 erzeugt dann einen Ordner, der Rest sind dann Unterordner. """ Tool to create folders using the Nextcloud API """ ############################################### # Imports ############################################### import subprocess from pathlib import Path ############################################### # Constant ############################################### # Get home directory from user USERHOME = str(Path.home()) NCPATH = 'https://DOMAIN/remote.php/dav/files/Frank/Python_Script/' USERNAME = 'USER' PASSWORD = 'PASSWORD' ############################################### # Function to crate folder with nextcloud api ############################################### def read_textobject(): # read folders to create from textfile with open(f'{USERHOME}/Textdatei.txt', 'r') as obj: # create object for line in obj: line_split = line.split(' ') elements = line_split[0].split('.') try: if elements[3]: main_folder = 0 # replace whitespaces with %20, and / with _ and remove linefeed (\n) path = Path((line.replace(' ', '%20').replace('/', '_')).rstrip('\n')) except IndexError: print("Element is main folder") main_folder = 1 # replace whitespaces with %20, and / with _ and remove linefeed (\n) main = Path((line.replace(' ', '%20').replace('/', '_')).rstrip('\n')) else: print("Element is not a main folder") ############################################### # Create directory ############################################### if main_folder == 1: # Main folder try: args = ['curl', '-u', f'{USERNAME}:{PASSWORD}', f'{NCPATH}{main}', '-X', 'MKCOL'] result = subprocess.run(args, check=True, capture_output=True, text=True) except subprocess.CalledProcessError as error: print(result.stderr) else: if result.stdout: print(result.stdout) else: print('Directory created successful') else: # Not a main folder try: args = ['curl', '-u', f'{USERNAME}:{PASSWORD}', f'{NCPATH}{main}/{path}', '-X', 'MKCOL'] result = subprocess.run(args, check=True, capture_output=True, text=True) except subprocess.CalledProcessError as error: print(result.stderr) else: if result.stdout: print(result.stdout) else: print('Directory created successful') else: print(result.stdout) obj.close() if __name__ == '__main__': read_textobject()
  • TrueNAS & Nextcloud

    Linux truenas nextcloud
    1
    5
    0 Stimmen
    1 Beiträge
    475 Aufrufe
    Niemand hat geantwortet
  • Nextcloud Talk

    Nextcloud nextcloud coturn linux talk
    5
    2
    0 Stimmen
    5 Beiträge
    979 Aufrufe
    FrankMF
    All I needed to do was setting the permissions to 744 for the archive directory and the symlinks resolved correctly after a reboot of coturn My turnserver installation on Debian runs as the user turnserver and not as root, nor is the user turnserver in any group owning the letsencrypt directory. If your turnserver does run as root, it should be fine just adding execute permissions. I hope this helps some of you. Quelle: https://help.nextcloud.com/t/lets-encrypt-symlink-breaks-coturn-configuration/70166 Was zum Testen die Tage....
  • Nextcloud 16.0.5 -> 17.0.0

    Nextcloud nextcloud
    1
    0 Stimmen
    1 Beiträge
    262 Aufrufe
    Niemand hat geantwortet
  • Nextcloud - App Text

    Nextcloud nextcloud
    2
    1
    0 Stimmen
    2 Beiträge
    462 Aufrufe
    FrankMF
    Noch was vergessen. [image: 1565706016183-a2c377b7-d4e4-4791-b94e-dc9fc7f1677c-grafik.png] Neues Textdokument erstellt ein Dokument mit der Endung .md