Pomoc Rclone - problem z logowaniem

gentillo

Systems Admin...
Q's Expert
10 Listopad 2012
272
1
19
18
48
Nowy Sącz
QNAP
TS-x73
Ethernet
1 GbE
Postanowiłem sprawdzić jak działałby plex z bibliotekami ustawionymi na onedrive. Trochę poczytałem i postanowiłem zainstalować paczkę rclone z qnapclub store. Instalacja się powiodła ale mam problem z wejściem na webui. Po odpaleniu podaję domyślne login i hasło. Niestety za chwilę wyskakuje ponownie okno z prośbą o podanie danych logowania. I tak w kółko.
Przy okazji pytanie czy gra w ogóle jest warta zachodu? Mam w domu światłowód 1Gb.
 

Załączniki

  • 2022-01-06.png
    2022-01-06.png
    70,2 KB · Wyświetleń: 110
Ok. Ruszyłem dalej. Działa na Chrome, na Edge nie. Jednakże przy próbie zamontowania dysku onedrive dostaję następujący komunikat:

Fatal error: config failed to refresh token: failed to start auth webserver: listen tcp 127.0.0.1:53682: bind: address already in use

Zresetowałem rclone. Pomogło. Niestety przeglądarka nie otwiera automatycznie strony autoryzacji. Po skopiowaniu linku i wklejeniu do przeglądarki dostaję connection refused.
 
Odpal rclone manualnie po SSH.
Rclone downloads
Bash:
cd /share/Public
wget https://downloads.rclone.org/v1.57.0/rclone-v1.57.0-linux-amd64.zip
unzip rclone-v1.57.0-linux-amd64.zip
cd rclone-v1.57.0-linux-amd64
./rclone --help
Kod:
Rclone syncs files to and from cloud storage providers as well as
mounting them, listing them in lots of different ways.

See the home page (https://rclone.org/) for installation, usage,
documentation, changelog and configuration walkthroughs.

Usage:
  rclone [flags]
  rclone [command]

Available Commands:
  about           Get quota information from the remote.
  authorize       Remote authorization.
  backend         Run a backend specific command.
  cat             Concatenates any files and sends them to stdout.
  check           Checks the files in the source and destination match.
  checksum        Checks the files in the source against a SUM file.
  cleanup         Clean up the remote if possible.
  completion      generate the autocompletion script for the specified shell
  config          Enter an interactive configuration session.
  copy            Copy files from source to dest, skipping identical files.
  copyto          Copy files from source to dest, skipping identical files.
  copyurl         Copy url content to dest.
  cryptcheck      Cryptcheck checks the integrity of a crypted remote.
  cryptdecode     Cryptdecode returns unencrypted file names.
  dedupe          Interactively find duplicate filenames and delete/rename them.
  delete          Remove the files in path.
  deletefile      Remove a single file from remote.
  genautocomplete Output completion script for a given shell.
  gendocs         Output markdown docs for rclone to the directory supplied.
  hashsum         Produces a hashsum file for all the objects in the path.
  help            Show help for rclone commands, flags and backends.
  link            Generate public link to file/folder.
  listremotes     List all the remotes in the config file.
  ls              List the objects in the path with size and path.
  lsd             List all directories/containers/buckets in the path.
  lsf             List directories and objects in remote:path formatted for parsing.
  lsjson          List directories and objects in the path in JSON format.
  lsl             List the objects in path with modification time, size and path.
  md5sum          Produces an md5sum file for all the objects in the path.
  mkdir           Make the path if it doesn't already exist.
  mount           Mount the remote as file system on a mountpoint.
  move            Move files from source to dest.
  moveto          Move file or directory from source to dest.
  ncdu            Explore a remote with a text based user interface.
  obscure         Obscure password for use in the rclone config file.
  purge           Remove the path and all of its contents.
  rc              Run a command against a running rclone.
  rcat            Copies standard input to file on remote.
  rcd             Run rclone listening to remote control commands only.
  rmdir           Remove the empty directory at path.
  rmdirs          Remove empty directories under the path.
  selfupdate      Update the rclone binary.
  serve           Serve a remote over a protocol.
  settier         Changes storage class/tier of objects in remote.
  sha1sum         Produces an sha1sum file for all the objects in the path.
  size            Prints the total size and number of objects in remote:path.
  sync            Make source and dest identical, modifying destination only.
  test            Run a test command
  touch           Create new file or change file modification time.
  tree            List the contents of the remote in a tree like fashion.
  version         Show the version number.

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Było to jakiś czas temu:
(2) Jak to zrobić? - Unlimited Cloud Drive for Plex/Kodi/Emby content with QNAP | Page 4 | QNAP Polska - Oficjalne forum wsparcia technicznego QNAP Club
 
Też tak zrobiłem. Browser Station załatwił sprawę.
Połączono posty:

No i kolejny problem. Przy próbie zamontowania dostaję komunikat:

2022/01/06 18:51:10 NOTICE: One drive root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2022/01/06 18:51:10 mount helper error: fusermount: failed to open /dev/fuse: Permission denied
2022/01/06 18:51:10 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
 
  • Lubię to
Reakcje: Silas Mariusz
'Permission denied' - masz wyłączonego admina?
Ja teraz testuje takie ustawienia (opis w homescripts/rclone-drive.service at master · animosity22/homescripts):
Kod:
#!/bin/bash
# remove old log file
if [ -f /share/CACHEDEV2_DATA/Rdownload/logs/rclone.log ]; then
        rm /share/CACHEDEV2_DATA/Rdownload/logs/rclone.log
fi

# remove old cache
rm -rf /share/CACHEDEV1_DATA/.rclone/rclone/vfs/union/*
rm -rf /share/CACHEDEV1_DATA/.rclone/rclone/vfsMeta/union/*

/usr/bin/rclone mount \
        --config=/share/CACHEDEV1_DATA/.qpkg/RClone/rclone.conf \
        --allow-other \
        --dir-cache-time 5000h \
        --log-file /share/CACHEDEV2_DATA/Rdownload/logs/rclone.log \
        --log-level NOTICE \
        --poll-interval 10s \
        --umask 002 \
        --cache-dir /share/CACHEDEV1_DATA/.rclone/rclone \
        --drive-pacer-min-sleep 10ms \
        --drive-pacer-burst 200 \
        --vfs-cache-mode full \
        --vfs-cache-max-size 250G \
        --vfs-cache-max-age 5000h \
        --vfs-cache-poll-interval 5m \
        --vfs-read-ahead 2G \
 union:/ /share/CACHEDEV2_DATA/UGdrive &

Dodatkowo możesz dołożyć crypt'a żeby dane były szyfrowane:
Kod:
[~] # rclone lsd gdrive:
          -1 2021-04-02 01:00:15        -1 24je5nnbo6rafl93tk3a96jpa8
          -1 2021-12-29 01:11:34        -1 4ut5e4tm8qff6ocf69k79jg4bhdfp1f863r2pjo1g6vj5u207li0
          -1 2021-12-29 01:11:36        -1 5h3vp2hfr00l02almdnibs18mo
          -1 2021-04-02 02:18:55        -1 cj795lo0l648t5ptnhvnkctp2g
          -1 2021-04-02 01:00:34        -1 i62m5bmann86m1kpaos19k6veg
          -1 2021-12-16 01:13:18        -1 jphuakl6kst7b188k92riqr320
          -1 2022-01-02 01:01:22        -1 rar4n0bjeo4sekk4e3i5d0kke8
          -1 2021-12-11 18:03:31        -1 t8nunn4595ikd2t6cjg1513vfk
[~] # rclone lsd gcrypt:
          -1 2022-01-02 01:01:22        -1 4K
          -1 2021-12-29 01:11:34        -1 @Recently-Snapshot
          -1 2021-04-02 01:00:15        -1 Anime
          -1 2021-12-29 01:11:36        -1 Book
          -1 2021-04-02 02:18:55        -1 Movies
          -1 2021-12-16 01:13:18        -1 Music
          -1 2021-04-02 01:00:34        -1 TV Shows
          -1 2021-12-11 18:03:31        -1 Unsorted
 
  • Love
Reakcje: Silas Mariusz
I kolejna ciekawa opcja według mnie 'union'.
Kawałek z conf:
Kod:
cat /share/CACHEDEV1_DATA/.qpkg/RClone/rclone.conf
[union]
type = union
remotes = gcrypt: /share/CACHEDEV2_DATA/Rdownload/medialibrary
Działa to w ten sposób, że dane ściągam do '/share/CACHEDEV2_DATA/UGdrive' ale trafiają one fizycznie do '/share/CACHEDEV2_DATA/Rdownload/medialibrary' -> czyli wszystko mam poustawiane na: /share/CACHEDEV2_DATA/UGdrive a w nocy przerzucają się dane na gdrive. I programy widzą je jakby nic się nie zmieniło i jest w '/share/CACHEDEV2_DATA/UGdrive'.
 
  • Love
Reakcje: Silas Mariusz
Ciężko powiedzieć co lepsze. Od 2019.08 raz mi usunęli konto (a raczej zablokowali) i 2 udane aukcje z 4 złe. Ale kupowałem przez Ali i zrobili refund na niektóre.
@_Floyd może coś ciekawego podpowie...
 
Udało się:) Dalsza zabawa jutro. Przy okazji pytanie. Można śmiało korzystać z tego unlimited gdrive? Zdarzają się jakieś problemy? Usunięcie konta?
Ja nie mam szczęścia, każde usunięte po 3 miesiącach :/
 
  • Wow
Reakcje: Silas Mariusz
Dołączyłem gdrive. Mam upload 300Mb/s. Dane są wysyłane z max 23 MB/s. Jakby jakiś throttling się włączył. O co może chodzić? Czy metoda autoryzacji może mieć znaczenie? Zrobiłem autoryzację poprzez podanie loginu i hasła a nie poprzez google api.
 
Z downloadem jest lepiej, ale też daleko od zdolności łącza. U mnie wyciąga max 120 MB/s przy łączu 1Gb. Ładowanie biblioteki będzie u mnie trwało z miesiąc:) I czy nie będzie problemu z odtwarzaniem gęstych filmów 4K?

Ewidentnie przy wysyłaniu jest sufit na poziomie 23,33 MB/s.
 
Ja mało oglądam filmów na 4k - nie mam warunków. Jeśli plex trafił na film w 4k który nie chciał transkodować to mogłem oglądać. Najlepiej to wgraj jakiś i zobaczy czy daje radę czy nie ;)
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. unlimited
  2. rclone
  3. synchronizacja
  4. qts login problem
  5. onedrive