What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Discussion gdrive, tdrive, unionfs mounting problems...

R

ribso

Guest
Mount Type
Blitz Unencrypted
Server Type
Local - Dedicated Server
There are several instances of typo's that are causing gdrive/tdrive services to fail.

gdrive.service
dir-cache-time, vfs-cache-max-age, buffer-size
Code:
[Service]
Type=simple
User=0
Group=0
ExecStart=/usr/bin/rclone mount gdrive: /mnt/gdrive \
--config /opt/appdata/plexguide/rclone.conf \
--allow-non-empty \
--allow-other \
--size-only \
--uid=1000 --gid=1000 \
--umask 002 \
--log-file=/var/plexguide/logs/rclone-gdrive.log \
--log-level INFO \
--timeout 1h \
--dir-cache-time 2mm \
--vfs-cache-max-age 1hh \
--vfs-read-chunk-size 64M \
--vfs-read-chunk-size-limit 2G \
--drive-chunk-size 64M \
--buffer-size 16MM
tdrive.service
dir-cache-time, vfs-cache-max-age, buffer-size
Code:
[Service]
Type=simple
User=0
Group=0
ExecStart=/usr/bin/rclone mount tdrive: /mnt/tdrive \
--config /opt/appdata/plexguide/rclone.conf \
--allow-non-empty \
--allow-other \
--size-only \
--uid=1000 --gid=1000 \
--umask 002 \
--log-file=/var/plexguide/logs/rclone-tdrive.log \
--log-level INFO \
--timeout 1h \
--dir-cache-time 2mm \
--vfs-cache-max-age 1hh \
--vfs-read-chunk-size 64M \
--vfs-read-chunk-size-limit 2G \
--drive-chunk-size 64M \
--buffer-size 16MM
Sanitised status log
Code:
[email protected]:~$ sudo systemctl status gdrive.service
● gdrive.service - gdrive Daemon
   Loaded: loaded (/etc/systemd/system/gdrive.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2019-05-18 14:00:14 AEST; 6min ago
  Process: 1376 ExecStart=/usr/bin/rclone mount gdrive: /mnt/gdrive --config /opt/appdata/plexguide/rclone.conf --allow-non-empty --allow-other --size-only --uid=1000 --gid=1000 --umask 002 --log-file=/var/plexguide/logs/rclone-gdrive.log --log-level INFO --timeout 1h --
Main PID: 1376 (code=exited, status=1/FAILURE)

May 18 14:00:14 rclone[1376]:       --vfs-read-chunk-size SizeSuffix         Read the source objects in chunks. (default 128M)
May 18 14:00:14 rclone[1376]:       --vfs-read-chunk-size-limit SizeSuffix   If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached. 'off' is unlimited. (default off)
May 18 14:00:14 rclone[1376]:       --volname string                         Set the volume name (not supported by all OSes).
May 18 14:00:14 rclone[1376]:       --write-back-cache                       Makes kernel buffer writes before sending them to rclone. Without this, writethrough caching is used.
May 18 14:00:14 rclone[1376]: Use "rclone [command] --help" for more information about a command.
May 18 14:00:14 rclone[1376]: Use "rclone help flags" for to see the global flags.
May 18 14:00:14 rclone[1376]: Use "rclone help backends" for a list of supported services.
May 18 14:00:14 rclone[1376]: 2019/05/18 14:00:14 Fatal error: invalid argument "2mm" for "--dir-cache-time" flag: time: unknown unit mm in duration 2mm
May 18 14:00:14 systemd[1]: gdrive.service: Main process exited, code=exited, status=1/FAILURE
May 18 14:00:14 systemd[1]: gdrive.service: Failed with result 'exit-code'.
Adjusting the files removing the duplicate size texts allows the services to start again. 'sudo pgblitz' is not recommended from experiance as it overwrites the changes made removing the duplicate letters.

Code:
[email protected]:~$ sudo nano /etc/systemd/system/gdrive.service
[email protected]:~$ sudo nano /etc/systemd/system/tdrive.service
[email protected]:~$ sudo systemctl daemon-reload
[email protected]:~$ sudo systemctl start gdrive.service
[email protected]:~$ sudo systemctl start tdrive.service
Too scared to reboot or anything at the moment. Had to start/restart all containers via portainer.
 
Last edited by a moderator:

turner123

Blitz 1st Class
Donor
I had this exact same situation since the problems that started and people posted fixed i couldnt start the drives so i couldnt backup the data i had to re insall and it sorted the issue but i lost prob 3 weeks worth of sonarr radarr lidarr database, plex was simple to get sorted but not sure about the others havnt tried as of yet.
 
M

MrDoob

Guest
@Admin9705

solution found ;-)

echo "1440jashdiasdjkasd" | grep -o '[0-9]*' >> file


cat file
1440
 
Last edited by a moderator:
M

MrDoob

Guest
I had this exact same situation since the problems that started and people posted fixed i couldnt start the drives so i couldnt backup the data i had to re insall and it sorted the issue but i lost prob 3 weeks worth of sonarr radarr lidarr database, plex was simple to get sorted but not sure about the others havnt tried as of yet.

post this output please

Bash:
cat /var/plexguide/vfs_dct
 
M

MrDoob

Guest
please post any fails with the new commands

Bash:
 cd /opt/pgclone/functions/ && cp mountnumbers.sh mountnumbers.sh.old &&  wget -N  https://raw.githubusercontent.com/PGBlitz/PGClone/v8.6/functions/mountnumbers.sh
redeploy the mounts and check it too

Bash:
service gdrive status | tail -n 3 | head -n 1
the output is like this :

Bash:
3136 /usr/bin/rclone mount gdrive: /mnt/gdrive --config /opt/appdata/plexguide/rclone.conf --allow-non-empty --allow-other --size-only --uid=1000 --gid=1000 --umask 002 --log-file=/var/plexguide/logs/rclone-gdrive.log --log-level ERROR --timeout 1h --dir-cache-time 2m --vfs-cache-max-age 72h --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit 10G --drive-chunk-size 128M --buffer-size 64M --drive-use-trash=false --fast-list --user-agent=****REMOVED****
 
R

ribso

Guest
After it breaking again it's somehow picked up the duplicate hh and mm variables - note I have not changed this myself at all.
Code:
RClone Variable Name           Default ~ Current Settings

[1] Buffer-Size                16M        [16M] MB
[2] Drive-Chunk-Size           64M        [128M] MB
[3] Dir-Cache-Time             2M         [2m] Minutes
[4] VFS-Read-Chunk-Size        64M        [128M] MB
[5] VFS-Read-Chunk-Size-Limit  2G         [off] GB
[6] VFS-Cache-Mode             off        [off]
[7] VFS-Cache-Max-Age          1H         [1h] Hours
[8] VFS-Cache-Max-Size         100G       [off] GB
[Z] Exit
 
M

MrDoob

Guest
If any fails please do this >>

For 8.6.XXX version >>
Bash:
sudo apt-get install git -yqq && 
sudo cd /opt  && sudo mv pgclone pgclone.old && sudo git clone https://github.com/PGBlitz/PGClone.git && sudo  mv PGClone  pgclone && chown -cR 1000:1000 /opt/pgclone
For 8.5 and older >>

Bash:
sudo apt-get install git -yqq && 
sudo cd /opt  && sudo git clone https://github.com/PGBlitz/PGClone.git && sudo  mv PGClone  pgclone && chown -cR 1000:1000 /opt/pgclone
 
T

TheShadow

Guest
or just try option 2 to use a fork, username:pgblitz, branch beta

should fix those issues.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Top