How to clear Local Storage?
-
I'm downloading some files from mega.nz when it popped up a dialog that said that my local storage for MEGA is full. It will restart the download when I free up some space.
I have no idea what it is talking about. When I go to "~/.config/vivaldi-snapshot/Default/Local Storage" I find zero files in there that contain the text for "mega". There are zero large files in there, including the file that is currently being downloaded. I have no idea where the downloaded files are being held until they get transferred to the final destination.
I did not find anywhere in which to set any kind of size for Local Storage.
What do I need to do in order to get file downloads working again to Local Storage?
-
@MrVideo, hello
Logout from the mega website in Vivaldi.
Navigate tochrome://settings/siteData
in Vivaldi
Try deleting any mega.nz cookie and storage files.You could also use Vivaldi's delete browsing history(ctrl+shift+delete), which will remove all sites
cookies/data.
Just make sure to uncheck passwords if you use vivaldi to manage them.Log in to MEGA and try again to download.
-
I just deleted the local storage and that let me do the download again. The file that is being downloaded is placed where? Why is there even a local storage limit in the first place?
-
@MrVideo What I understood is that mega.nz files are encrypted, so they have to be downloaded in a temp file (local storage) and then decrypted once the file finished downloading, but it's not done inplace, during decryption you pratically always have 2 files of the same size, the encrypted one in local storage, and the decrypted one copied in the download directory. I often find that the file in the local storage isn't even deleted afterward which is weird.
Then consider that mega.nz keeps track on how many gb you download if you're not registered, and if you exceed the limit, you'll have to wait some hours before being able to dl again. -
@MrVideo Mega uses the
File System
folder in the profile to store downloaded files. First it downloads the file in the background into local storage, before it's presented to the client (browser) as a download (which is actually a local "download" or a copy from A to B, so very fast.The file is stored like this example:
c:\Users\<username>\AppData\Local\Vivaldi\User Data\Default\File System\007\p\00\00000000
After this you're stuck with two files of the same size on the disk - one in the Vivaldi profile, and one you "downloaded" from that one. I'm not sure if webapps should be allowed to store such large amounts of data in the profile, or if the app can delete the files itself when they're no longer used. It appears Mega does not do it as I regularly have to clear that folder (I just use a custom clean in CCleaner).
Not sure if there's a limit as I've seen the folder be several GB after using Mega to download files. Personally I think there should be a limit to how much local storage a webapp is allowed to save to disk.
If you're using the Mega extension things might be different, maybe the extension can control when the local storage in File System is deleted.
Basically, I think it's very bad design by lazy developers who don't care about users' disk space.
-
I should have been a little more specific. The first posting gave a hint as to the OS I am using. I'm running under Fedora Linux. So, I need to know that path. After each file is downloaded and copied over, I'll need to go there and make sure that area is empty.
I'd use JD2 to do the downloading, but the authors of the software confirm that there is an issue downloading from mega. They believe they have it figured out, but have to get it implemented.
-
@MrVideo
Are you able to install megatools on Fedora?
https://pkgs.org/download/megatoolsList remote files...
megals --username xxxxxxx --password xxxxxxxx
Download file...
megaget --username xxxxxxx --password xxxxxxxx /remote/path/as/shown/from/megals/command
Also,
megacopy
command allows you to Upload or download a directory tree.eg Using ubuntu downloading from my mega cloud.
~$ megals --username xxxxxxxxx --password xxxxxxxx | less
/Contacts
/Inbox
/Root
/Root/Bups
/Root/Bups/Sounds
/Root/Bups/Sounds/OldTeleBellLoud.mp3
/Root/Bups/Sounds/SMALL_WV.WAV
/Root/Bups/Sounds/Sound Effect - Crashing Waves onto Beach.wav
/Root/Bups/Sounds/WAVE.WAV~$ megaget --username xxxxxxx --password xxxxxxxxx /Root/Bups/Sounds/OldTeleBellLoud.mp3
Downloaded OldTeleBellLoud.mp3Use the --path option to specify a download location.
--path <path>
Local directory to download to. Defaults to the current working directory. -
@MrVideo We can't tell you the exact path because it's random. But it is somewhere inside the
File System
folder that is in your Vivaldi profile folder. -
@bonetone said in How to clear Local Storage?:
@MrVideo We can't tell you the exact path because it's random. But it is somewhere inside the
File System
folder that is in your Vivaldi profile folder.I've looked inside ~/.config/vivaldi-snapshot/Default/File System/Origins and there are zero large files in there. Origins is the only directory with the timestamp that matches the current file being downloaded. So, I am at a loss as to there the temporary files are being kept. I might have to us find with an option to look for extremely recent files.
-
@CantankRus said in How to clear Local Storage?:
megals --username xxxxxxx --password
I was able to install the package (megatools-1.10.2-1.fc27.x86_64) using dnf for my Fedora installation. But, when I tried it, I got this:
megals --username [email protected] --password xxx ERROR: Can't login to mega.nz: API call 'us' failed: Server returned error EEXPIRED
modedit reformatted as code block </>
But, I can log in just fine via the browser.
-
@MrVideo said in How to clear Local Storage?:
ERROR: Can't login to mega.nz: API call 'us' failed: Server returned error EEXPIRED
Apparently megatools doesn't work with newer mega accounts.
MEGAcmd does but is more complicated to use.
After install you can download public links with something like.....
mega-get https://mega.nz/#F!ABcD1E2F!gHiJ23k-LMno45PqrSTUvw /path/to/local/folder
or
start the MEGAcmd shell....
mega-cmd
then at the "MEGA CMD>" prompt login to your Mega account...
login <username> <password>
From there you can list
ls
your remote directories and change directorycd
into them.
Download a file with "get" using the full path ...
get /Bups/Sounds/OldTeleBellLoud.mp3
or
cd
into containing directory and just use the file name....cd /Bups/Sounds get OldTeleBellLoud.mp3
-
I've downloaded the version for my Fedora release and will be playing with it. Thanks.
-
I won't be playing with it. There are dependencies that are only available in 32-bit form.
-
Ppafflick moved this topic from Vivaldi for Linux on