Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

"Permission denied" error when downloading dataset using GUI #343

Closed
HelenClifton opened this issue Sep 6, 2017 · 13 comments
Closed

"Permission denied" error when downloading dataset using GUI #343

HelenClifton opened this issue Sep 6, 2017 · 13 comments
Assignees
Labels

Comments

@HelenClifton
Copy link

HelenClifton commented Sep 6, 2017

Expected behavior

Downloading a subset of esacci.SST.day.L4.SSTdepth.multi-sensor.multi-platform.OSTIA.1-1.r1

Actual behavior

The download failed soon after starting.
Following errors were displayed:

capture download 1

capture download 2

Note

It's a similar problem to #257 which was seen when downloading same dataset with same constraints using the CLI. @HerzogStephan
I think this problem is different - with CLI you can download the dataset but not open it, but with GUI you cannot download. The error messages displayed are also different.

Steps to reproduce the problem

  1. Select data store: ESA CCI Open Data Portal
    Highlight data source: esacci.SST.day.L4.SSTdepth.multi-sensor.multi-platform.OSTIA.1-1.r1
    Click on “Download and/or open remote dataset”

  2. In “Download Data Source” window:
    • Select Time Constraint and enter start time of 1997-12-01 and end time of 1998-12-31

• Select Region Constraint, enter:
o Lon. from: -175
o Lon. to: -115
o Lat. from: -10
o Lat. to: 10

• Select Variables Constraint, select variables analysed_sst and analysis_error from the list

• Select “Download and make local data source“ and enter Unique identifier esacci.SST.day.L4.SSTdepth.multi-sensor.multi-platform.OSTIA.1-1.r1_19971201_19981231_reg-175_-10_-115_10_var_analysed_sst followed by a SPACE character

• Ensure “Open dataset from local data source“ is unselected.

• Click on “Download”

Specifications

cate 0.9.0-dev5
Windows 7 Professional

@forman forman added the ds label Sep 6, 2017
@HelenClifton
Copy link
Author

More information @forman @kbernat : It looks like there was a space at the end of the unique ID name and this is what caused the problem.
When I tried again, and made sure there was no space at the end, the download started successfully.

capture download 3

@HelenClifton HelenClifton changed the title "Permission denied" error when downloading SST dataset using GUI "Permission denied" error when downloading dataset using GUI Sep 6, 2017
@forman
Copy link
Member

forman commented Sep 14, 2017

Just verified. It definitely comes from xarray o Windows when writing to a files that has already been opened for reading.

@kbernat kbernat self-assigned this Dec 5, 2017
@kbernat
Copy link
Collaborator

kbernat commented Feb 22, 2018

We upgraded xarray in the meantime and nobody reported it again. We can close it for now.

@kbernat kbernat closed this as completed Feb 22, 2018
@kbernat
Copy link
Collaborator

kbernat commented Feb 22, 2018

I will try to reproduce it anyway...

@HelenClifton
Copy link
Author

HelenClifton commented Mar 14, 2018

@forman @kbernat It does still happen with cate-2.0.0-dev.2
But only when there is a space accidently added at the end of the unique ID name
The error is now:
capture
Traceback:
Traceback.txt

@HelenClifton
Copy link
Author

HelenClifton commented Mar 23, 2018

@forman Still happening in cate-2.0.0-dev.7
capture
Traceback.txt

@kbernat
Copy link
Collaborator

kbernat commented Mar 23, 2018

@HelenClifton i will take care of it

@HelenClifton
Copy link
Author

@kbernat Thanks, see traceback above

@forman forman reopened this Apr 16, 2018
@forman forman added the bug label Apr 16, 2018
@papesci papesci self-assigned this Apr 25, 2018
@HelenClifton
Copy link
Author

@papesci Confirmed that error is still happening with cate-2.0.0-dev.9

@papesci
Copy link
Contributor

papesci commented Oct 4, 2018

@HelenClifton i can't reproduce the issue with cate-2.0.0-dev20. It have been fixed from cate-2.0.0-dev18. Can you confirm ?

@HelenClifton
Copy link
Author

Hi @papesci Tested with cate-2.0.0-dev.20 (Windows) but still seeing it
The problem happens when there is a SPACE character at the end of the local ID name (see updated "steps to reproduce" above
capture

@papesci
Copy link
Contributor

papesci commented Oct 5, 2018

In principle no space or other symbols should be allowed to be used for local dataset names. The behavior between window and Linux OS is different also in this case. To avoid inconsistency a check to the dataset name has been added, only letters, numbers and underscore are now allowed to be used. An exception is raised in case the ds name is not compliant with the naming rule. Branch 343

@HelenClifton
Copy link
Author

@papesci @forman Confirmed fixed in dev.23 - thanks !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants