# Question about domain name in h5 server

**URL:** <https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103>\
**Category:** Hdf-forum archives\
**Created:** [October 24, 2017, 4:20pm UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103 "2017-10-24T16:20:47Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yawei\_Hui](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/yawei_hui/32/1724_2.png) [@Yawei\_Hui](https://forum.hdfgroup.org/u/Yawei_Hui)\
**Post date:** [October 24, 2017, 4:20pm UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/1 "2017-10-24T16:20:47Z")

</div>

Hi,

&nbsp;&nbsp;I'm a new user of h5 server. On my test server, I installed and ran the h5serv docker container. From a remote browser, I could get response by sending [http://128.XXX.XXX.XXX:5000/](http://128.XXX.XXX.XXX:5000/) to the server. However, when I tried to use curl-based request, such as "curl --header "Host: dp.h5\_store.hdfgroup.org" [http://128.XXX](http://128.XXX). XXX. XXX:5000/", an error "tornado.web.HTTPError: HTTP 404: Not Found" occurred. The h5 files I want the server to serve is under "/data/h5\_store". Because the h5 server is installed on a machine without domain name (e.g. [hdfgroup.org](http://hdfgroup.org)), how could I set up a valid HTTP header so that the curl command could be used to send the request?

&nbsp;&nbsp;Thanks.

&nbsp;&nbsp;\* Yawei

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Computer Science Research Group  
Computer Science and Mathematics Division  
Oak Ridge National Laboratory  
PO BOX 2008 MS6164  
OAK RIDGE TN 37831-6164

---

<div class="post-metadata">

**Author:** ![jreadey](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/jreadey/32/870_2.png) [@jreadey](https://forum.hdfgroup.org/u/jreadey)\
**Post date:** [October 24, 2017, 5:06pm UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/2 "2017-10-24T17:06:28Z")

</div>

Hi Yawei,

&nbsp;&nbsp;&nbsp;For curl, always use the dns name of the server the container is running on, i.e. the [http://128](http://128)… address you have.

&nbsp;&nbsp;&nbsp;To address files, the pseudo-DNS name is created by taking the “domain” config value (in h5serv/server/config.py), and combining with the reverse path of the file relative to the data directory. There’s another config value: “datapath” that gives the location to the data directory. So in your case you should set this to: /data/h5\_store. After this (and restarting the server), if you have “myfile.h5” in the h5\_store directory, the h5serv host path to that file would be: [myfile.hdfgroup.org](http://myfile.hdfgroup.org).

&nbsp;&nbsp;&nbsp;If you’ve setup a DNS entry for your server, say [h5serv.ornl.gov](http://h5serv.ornl.gov), then you can update the domain config value to match. In that case you’d have [myfile.h5serv.ornl.gov](http://myfile.h5serv.ornl.gov). The various config entries are documented here: [http://h5serv.readthedocs.io/en/latest/Installation/ServerSetup.html#server-configuration](http://h5serv.readthedocs.io/en/latest/Installation/ServerSetup.html#server-configuration).

&nbsp;&nbsp;&nbsp;Hope this helps! Configuration is always the challenging aspect. You can email me directly (jreadey AT hdfgroup DOT org) if that doesn’t work.

Cheers,  
John

> **···**
>
> From: Hdf-forum \<[hdf-forum-bounces@lists.hdfgroup.org](mailto:hdf-forum-bounces@lists.hdfgroup.org)\> on behalf of "Hui, Yawei" \<[huiy@ornl.gov](mailto:huiy@ornl.gov)\>  
> Reply-To: HDF Users Discussion List \<[hdf-forum@lists.hdfgroup.org](mailto:hdf-forum@lists.hdfgroup.org)\>  
> Date: Tuesday, October 24, 2017 at 9:20 AM  
> To: "hdf-forum@lists.hdfgroup.org" \<[hdf-forum@lists.hdfgroup.org](mailto:hdf-forum@lists.hdfgroup.org)\>  
> Subject: [Hdf-forum] Question about domain name in h5 server
> 
> Hi,
> 
> &nbsp;&nbsp;I’m a new user of h5 server. On my test server, I installed and ran the h5serv docker container. From a remote browser, I could get response by sending [http://128.XXX.XXX.XXX:5000/](http://128.XXX.XXX.XXX:5000/) to the server. However, when I tried to use curl-based request, such as “curl --header "Host: dp.h5\_store.hdfgroup.org" [http://128.XXX](http://128.XXX). XXX. XXX:5000/”, an error “tornado.web.HTTPError: HTTP 404: Not Found” occurred. The h5 files I want the server to serve is under “/data/h5\_store”. Because the h5 server is installed on a machine without domain name (e.g. [hdfgroup.org](http://hdfgroup.org)), how could I set up a valid HTTP header so that the curl command could be used to send the request?
> 
> &nbsp;&nbsp;Thanks.
> 
> - Yawei
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> Computer Science Research Group  
> Computer Science and Mathematics Division  
> Oak Ridge National Laboratory  
> PO BOX 2008 MS6164  
> OAK RIDGE TN 37831-6164

---

<div class="post-metadata">

**Author:** ![syriusz](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@syriusz](https://forum.hdfgroup.org/u/syriusz)\
**Post date:** [October 26, 2017, 7:59am UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/3 "2017-10-26T07:59:55Z")

</div>

Hi All,

I've just discovered that when I create a dataset with one dimension which has a size = 0, then I cannot properly open such dataset - H5Dopen() returns -1.  
But when I create similar dataset with one dimension which has a size at least 1 (even without writing data to such dataset), then I can properly open such dataset.

Is this a bug or a feature in the HDF5 library?

I think I should be able to open 0-size dimension dataset, just to create an attribute inside such dataset - and that was my intension - no data inside (thus dimension size = 0), but write some attributes to such dataset...

Best regards,  
Rafal

---

<div class="post-metadata">

**Author:** ![gheber](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/gheber/32/1919_2.png) [@gheber](https://forum.hdfgroup.org/u/gheber)\
**Post date:** [October 26, 2017, 11:31am UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/4 "2017-10-26T11:31:05Z")

</div>

Rafal, this might be a bug. However, if you don't intend to store  
data there's a cheaper and maybe less contorted option: You can  
create a dataset with a dataspace of class H5S\_NULL.  
Think of that as a dataset whose dataspace is an empty set.  
(Likewise you'd use H5S\_SCALAR for a singleton.)

Best, G.

> **···**
>
> -----Original Message-----  
> From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Rafal Lichwala  
> Sent: Thursday, October 26, 2017 3:00 AM  
> To: hdf-forum@lists.hdfgroup.org  
> Subject: [Hdf-forum] HDF5 library bug or feature?
> 
> Hi All,
> 
> I've just discovered that when I create a dataset with one dimension which has a size = 0, then I cannot properly open such dataset -  
> H5Dopen() returns -1.  
> But when I create similar dataset with one dimension which has a size at least 1 (even without writing data to such dataset), then I can properly open such dataset.
> 
> Is this a bug or a feature in the HDF5 library?
> 
> I think I should be able to open 0-size dimension dataset, just to create an attribute inside such dataset - and that was my intension - no data inside (thus dimension size = 0), but write some attributes to such dataset...
> 
> Best regards,  
> Rafal
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Hdf-forum is for HDF software users discussion.  
> Hdf-forum@lists.hdfgroup.org  
> [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> Twitter: [https://twitter.com/hdf5](https://twitter.com/hdf5)

---

<div class="post-metadata">

**Author:** ![syriusz](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@syriusz](https://forum.hdfgroup.org/u/syriusz)\
**Post date:** [October 26, 2017, 11:38am UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/5 "2017-10-26T11:38:54Z")

</div>

Hi Gerd,

Thank you for an answer!

> Rafal, this might be a bug.

Is there any way to record/track this issue?

> However, if you don't intend to store  
> data there's a cheaper and maybe less contorted option: You can  
> create a dataset with a dataspace of class H5S\_NULL.

Good point - I will remember about that possibility in the future - thank you.  
For now I've just moved all attributes level up - to the parent group - works fine.

Best regards,  
Rafal

---

<div class="post-metadata">

**Author:** ![gheber](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/gheber/32/1919_2.png) [@gheber](https://forum.hdfgroup.org/u/gheber)\
**Post date:** [October 26, 2017, 11:48am UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/6 "2017-10-26T11:48:34Z")

</div>

> > Rafal, this might be a bug.

> Is there any way to record/track this issue?

Not sure. Helpdesk will check. (It's still early morning here...)

G.

---

<div class="post-metadata">

**Author:** ![paramon](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@paramon](https://forum.hdfgroup.org/u/paramon)\
**Post date:** [October 26, 2017, 11:51am UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/7 "2017-10-26T11:51:53Z")

</div>

Hi Gerd!

26.10.2017 14:31, Gerd Heber пишет:

> Rafal, this might be a bug. However, if you don't intend to store  
> data there's a cheaper and maybe less contorted option: You can  
> create a dataset with a dataspace of class H5S\_NULL.  
> Think of that as a dataset whose dataspace is an empty set.  
> (Likewise you'd use H5S\_SCALAR for a singleton.)

A common desire is to store non-uniform sparse data in HDF5 (consider XML attributes as example). I tend to use empty groups which only serve as container of attributes. What do you think: would empty datasets (H5S\_NULL) with attributes be more efficient (introduce less overhead)?

Best wishes,  
Andrey Paramonov

> **···**
>
> --  
> This message has been scanned for viruses and  
> dangerous content by MailScanner, and is  
> believed to be clean.

---

<div class="post-metadata">

**Author:** ![gheber](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/gheber/32/1919_2.png) [@gheber](https://forum.hdfgroup.org/u/gheber)\
**Post date:** [October 26, 2017, 12:24pm UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/8 "2017-10-26T12:24:18Z")

</div>

Andrey, the experts should chime in on the storage trade-offs.  
(I imagine the null dataset is stored with compact layout, but in  
newer versions of the file format an empty group is very "compact"  
as well.) At the conceptual level, the two are very different and  
that might tip the balance in either direction.  
A group leaves the door open for other descendants.  
A dataset is a terminal node and, despite being empty, is nevertheless  
typed. (A null dataset has an element type!) Of course, you could  
"type" a group with additional attributes, but it would be a very  
different kind of variable.

This might be a case where there're no right or wrong choices  
as far as HDF5 is concerned, and users will have to decide what  
makes it right for them.

Best, G.

> **···**
>
> -----Original Message-----  
> From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of ??? ???  
> Sent: Thursday, October 26, 2017 6:52 AM  
> To: hdf-forum@lists.hdfgroup.org  
> Subject: Re: [Hdf-forum] HDF5 library bug or feature?
> 
> Hi Gerd!
> 
> 26.10.2017 14:31, Gerd Heber пишет:
> 
> > Rafal, this might be a bug. However, if you don't intend to store data  
> > there's a cheaper and maybe less contorted option: You can create a  
> > dataset with a dataspace of class H5S\_NULL.  
> > Think of that as a dataset whose dataspace is an empty set.  
> > (Likewise you'd use H5S\_SCALAR for a singleton.)
> 
> A common desire is to store non-uniform sparse data in HDF5 (consider XML attributes as example). I tend to use empty groups which only serve as container of attributes. What do you think: would empty datasets  
> (H5S\_NULL) with attributes be more efficient (introduce less overhead)?
> 
> Best wishes,  
> Andrey Paramonov
> 
> --  
> This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Hdf-forum is for HDF software users discussion.  
> Hdf-forum@lists.hdfgroup.org  
> [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> Twitter: [x.com](https://twitter.com/hdf5)

---

<div class="post-metadata">

**Author:** ![Ger\_van\_Diepen](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/g/6de8d8/32.png) [@Ger\_van\_Diepen](https://forum.hdfgroup.org/u/Ger_van_Diepen)\
**Post date:** [October 26, 2017, 3:40pm UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/9 "2017-10-26T15:40:32Z")

</div>

A choice consideration might be that the number of attributes has a  
limit.

I think HDF5 should support empty N-dim datasets. Being empty also  
conveys information.  
Note that in any language it would be strange if you could not have an  
empty sequence.

Ger

> > > Gerd Heber \<gheber@hdfgroup.org\> 10/26/17 2:27 PM \>\>\>

Andrey, the experts should chime in on the storage trade-offs.  
(I imagine the null dataset is stored with compact layout, but in  
newer versions of the file format an empty group is very "compact"  
as well.) At the conceptual level, the two are very different and  
that might tip the balance in either direction.  
A group leaves the door open for other descendants.  
A dataset is a terminal node and, despite being empty, is nevertheless  
typed. (A null dataset has an element type!) Of course, you could  
"type" a group with additional attributes, but it would be a very  
different kind of variable.

This might be a case where there're no right or wrong choices  
as far as HDF5 is concerned, and users will have to decide what  
makes it right for them.

Best, G.

> **···**
>
> -----Original Message-----  
> From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf  
> Of ??? ???  
> Sent: Thursday, October 26, 2017 6:52 AM  
> To: hdf-forum@lists.hdfgroup.org  
> Subject: Re: [Hdf-forum] HDF5 library bug or feature?
> 
> Hi Gerd!
> 
> 26.10.2017 14:31, Gerd Heber пишет:
> 
> > Rafal, this might be a bug. However, if you don't intend to store data
> 
> > there's a cheaper and maybe less contorted option: You can create a  
> > dataset with a dataspace of class H5S\_NULL.  
> > Think of that as a dataset whose dataspace is an empty set.  
> > (Likewise you'd use H5S\_SCALAR for a singleton.)
> 
> A common desire is to store non-uniform sparse data in HDF5 (consider  
> XML attributes as example). I tend to use empty groups which only serve  
> as container of attributes. What do you think: would empty datasets  
> (H5S\_NULL) with attributes be more efficient (introduce less overhead)?
> 
> Best wishes,  
> Andrey Paramonov
> 
> --  
> This message has been scanned for viruses and dangerous content by  
> MailScanner, and is believed to be clean.
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Hdf-forum is for HDF software users discussion.  
> Hdf-forum@lists.hdfgroup.org  
> [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> Twitter: [x.com](https://twitter.com/hdf5)  
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Hdf-forum is for HDF software users discussion.  
> Hdf-forum@lists.hdfgroup.org  
> [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> Twitter: [x.com](https://twitter.com/hdf5)

---

<div class="post-metadata">

**Author:** ![bljones](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@bljones](https://forum.hdfgroup.org/u/bljones)\
**Post date:** [October 26, 2017, 3:53pm UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/10 "2017-10-26T15:53:04Z")

</div>

Hi Rafal,

I am able to create a dataset with zero dimensions, close it, and re-open. (See attached).  
Can you send us an example of what you are trying that fails?  
Please send it to the helpdesk: help@hdfgroup.org

Thanks!  
-Barbara  
help@hdfgroup.org

[rafal.c](https://hdf-discourse-1.s3.amazonaws.com/original/1X/5cd2723b89fe4983050bf3f32fb32214aa2bbea9.c) (3.27 KB)

> **···**
>
> -----Original Message-----  
> From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Gerd Heber  
> Sent: Thursday, October 26, 2017 6:49 AM  
> To: HDF Users Discussion List  
> Subject: Re: [Hdf-forum] HDF5 library bug or feature?
> 
> > > Rafal, this might be a bug.
> 
> > Is there any way to record/track this issue?
> 
> Not sure. Helpdesk will check. (It's still early morning here...)
> 
> G.
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Hdf-forum is for HDF software users discussion.  
> Hdf-forum@lists.hdfgroup.org  
> [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> Twitter: [x.com](https://twitter.com/hdf5)

---

<div class="post-metadata">

**Author:** ![paramon](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@paramon](https://forum.hdfgroup.org/u/paramon)\
**Post date:** [October 27, 2017, 8:30am UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/11 "2017-10-27T08:30:01Z")

</div>

26.10.2017 18:40, Ger van Diepen пишет:

> A choice consideration might be that the number of attributes has a limit.

Hmm, do I understand correctly that this limit is different for a group and (an empty) dataset?

Best wishes,  
Andrey Paramonov

> **···**
>
> > I think HDF5 should support empty N-dim datasets. Being empty also conveys information.  
> > Note that in any language it would be strange if you could not have an empty sequence.
> > 
> > Ger
> > 
> > > > > Gerd Heber \<gheber@hdfgroup.org\> 10/26/17 2:27 PM \>\>\>
> > 
> > Andrey, the experts should chime in on the storage trade-offs.  
> > (I imagine the null dataset is stored with compact layout, but in  
> > newer versions of the file format an empty group is very "compact"  
> > as well.) At the conceptual level, the two are very different and  
> > that might tip the balance in either direction.  
> > A group leaves the door open for other descendants.  
> > A dataset is a terminal node and, despite being empty, is nevertheless  
> > typed. (A null dataset has an element type!) Of course, you could  
> > "type" a group with additional attributes, but it would be a very  
> > different kind of variable.
> > 
> > This might be a case where there're no right or wrong choices  
> > as far as HDF5 is concerned, and users will have to decide what  
> > makes it right for them.
> > 
> > Best, G.
> > 
> > -----Original Message-----  
> > From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of ??? ???  
> > Sent: Thursday, October 26, 2017 6:52 AM  
> > To: hdf-forum@lists.hdfgroup.org  
> > Subject: Re: [Hdf-forum] HDF5 library bug or feature?
> > 
> > Hi Gerd!
> > 
> > 26.10.2017 14:31, Gerd Heber пишет:  
> > \> Rafal, this might be a bug. However, if you don't intend to store data  
> > \> there's a cheaper and maybe less contorted option: You can create a  
> > \> dataset with a dataspace of class H5S\_NULL.  
> > \> Think of that as a dataset whose dataspace is an empty set.  
> > \> (Likewise you'd use H5S\_SCALAR for a singleton.)
> > 
> > A common desire is to store non-uniform sparse data in HDF5 (consider XML attributes as example). I tend to use empty groups which only serve as container of attributes. What do you think: would empty datasets  
> > (H5S\_NULL) with attributes be more efficient (introduce less overhead)?
> > 
> > Best wishes,  
> > Andrey Paramonov
> > 
> > --  
> > This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > Twitter: [x.com](https://twitter.com/hdf5)  
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > Twitter: [x.com](https://twitter.com/hdf5)
> > 
> > --  
> > This message has been scanned for viruses and  
> > dangerous content by \*MailScanner\* \<[http://www.mailscanner.info/&gt;](http://www.mailscanner.info/&gt;), and is  
> > believed to be clean.
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > Twitter: [x.com](https://twitter.com/hdf5)
> 
> --  
> This message has been scanned for viruses and  
> dangerous content by MailScanner, and is  
> believed to be clean.

---

<div class="post-metadata">

**Author:** ![syriusz](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@syriusz](https://forum.hdfgroup.org/u/syriusz)\
**Post date:** [October 27, 2017, 9:06am UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/12 "2017-10-27T09:06:14Z")

</div>

Hi Barbara,

Thank you for an answer!  
Yes, your code also works fine on my side, BUT...  
when I try to set some custom H5P\_FILE\_ACCESS by call:

H5Pset\_fapl\_mpio(plist\_id, comm, info)

(so running this example under OpenMPI - even for 1 process only)  
it DOES NOT work any more.  
In that case (see attached slightly modified your code) I've got the following output:

2: H5Pcreate: OK  
2: H5Pset\_fapl\_mpio: OK  
2: H5Fcreate: OK  
2: H5Screate\_simple: OK  
2: H5Dcreate2: OK  
2: H5Dclose: OK  
2: H5Sclose: OK  
2: H5Pclose: OK  
2: H5Fclose: OK  
2: H5Pcreate: OK  
2: H5Pset\_fapl\_mpio: OK  
2: H5Fopen: OK  
2: H5Dopen2 Failed!  
2: H5Dget\_space Failed!  
2: H5Dclose Failed!  
2: H5Sclose Failed!  
2: H5Pclose: OK  
2: H5Fclose: OK

HDF5 library also reports some error messages in that case:  
&nbsp;&nbsp;unable to open dataset  
&nbsp;&nbsp;unable to initialize file storage  
&nbsp;&nbsp;unable to mark dataspace as dirty  
&nbsp;&nbsp;unable to update layout info  
&nbsp;&nbsp;unable to write object header message  
&nbsp;&nbsp;unable to modify constant message

The most interesting thing is (which possibly means it's a bug), that when in the same code I just change dims definition to:

&nbsp;&nbsp;&nbsp;&nbsp;dims[0] = 1;  
&nbsp;&nbsp;&nbsp;&nbsp;dims[1] = 1;

everything WORKS FINE now! 🙂

Best regards,  
Rafal

W dniu 2017-10-26 o 17:53, Barbara Jones pisze:

[test.cpp](https://hdf-discourse-1.s3.amazonaws.com/original/1X/4a98b3e41fccb9a82b0e80b6b62784f9b34e7466.cpp) (3.24 KB)

> **···**
>
> > Hi Rafal,
> > 
> > I am able to create a dataset with zero dimensions, close it, and re-open. (See attached).  
> > Can you send us an example of what you are trying that fails?  
> > Please send it to the helpdesk: help@hdfgroup.org
> > 
> > Thanks!  
> > -Barbara  
> > help@hdfgroup.org
> > 
> > -----Original Message-----  
> > From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Gerd Heber  
> > Sent: Thursday, October 26, 2017 6:49 AM  
> > To: HDF Users Discussion List  
> > Subject: Re: [Hdf-forum] HDF5 library bug or feature?
> > 
> > > > Rafal, this might be a bug.
> > 
> > > Is there any way to record/track this issue?
> > 
> > Not sure. Helpdesk will check. (It's still early morning here...)
> > 
> > G.
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > Twitter: [x.com](https://twitter.com/hdf5)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.org](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org)  
> > Twitter: [x.com](https://twitter.com/hdf5)

---

<div class="post-metadata">

**Author:** ![bljones](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/e5b9ba/32.png) [@bljones](https://forum.hdfgroup.org/u/bljones)\
**Post date:** [October 27, 2017, 2:54pm UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/13 "2017-10-27T14:54:10Z")

</div>

Hi Rafal,

Ahh! I found a bug report for this same issue (HDFFV-10001).  
I added your information to the bug report.

Thanks!  
-Barbara  
help@hdfgroup.org

> **···**
>
> -----Original Message-----  
> From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Rafal Lichwala  
> Sent: Friday, October 27, 2017 4:06 AM  
> To: hdf-forum@lists.hdfgroup.org  
> Cc: HDF Helpdesk  
> Subject: Re: [Hdf-forum] HDF5 library bug or feature?
> 
> Hi Barbara,
> 
> Thank you for an answer!  
> Yes, your code also works fine on my side, BUT...  
> when I try to set some custom H5P\_FILE\_ACCESS by call:
> 
> H5Pset\_fapl\_mpio(plist\_id, comm, info)
> 
> (so running this example under OpenMPI - even for 1 process only) it DOES NOT work any more.  
> In that case (see attached slightly modified your code) I've got the following output:
> 
> 2: H5Pcreate: OK  
> 2: H5Pset\_fapl\_mpio: OK  
> 2: H5Fcreate: OK  
> 2: H5Screate\_simple: OK  
> 2: H5Dcreate2: OK  
> 2: H5Dclose: OK  
> 2: H5Sclose: OK  
> 2: H5Pclose: OK  
> 2: H5Fclose: OK  
> 2: H5Pcreate: OK  
> 2: H5Pset\_fapl\_mpio: OK  
> 2: H5Fopen: OK  
> 2: H5Dopen2 Failed!  
> 2: H5Dget\_space Failed!  
> 2: H5Dclose Failed!  
> 2: H5Sclose Failed!  
> 2: H5Pclose: OK  
> 2: H5Fclose: OK
> 
> HDF5 library also reports some error messages in that case:  
> &nbsp;&nbsp;unable to open dataset  
> &nbsp;&nbsp;unable to initialize file storage  
> &nbsp;&nbsp;unable to mark dataspace as dirty  
> &nbsp;&nbsp;unable to update layout info  
> &nbsp;&nbsp;unable to write object header message  
> &nbsp;&nbsp;unable to modify constant message
> 
> The most interesting thing is (which possibly means it's a bug), that when in the same code I just change dims definition to:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;dims[0] = 1;  
> &nbsp;&nbsp;&nbsp;&nbsp;dims[1] = 1;
> 
> everything WORKS FINE now! 🙂
> 
> Best regards,  
> Rafal
> 
> W dniu 2017-10-26 o 17:53, Barbara Jones pisze:
> 
> > Hi Rafal,
> > 
> > I am able to create a dataset with zero dimensions, close it, and re-open. (See attached).  
> > Can you send us an example of what you are trying that fails?  
> > Please send it to the helpdesk: help@hdfgroup.org
> > 
> > Thanks!  
> > -Barbara  
> > help@hdfgroup.org
> > 
> > -----Original Message-----  
> > From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On  
> > Behalf Of Gerd Heber  
> > Sent: Thursday, October 26, 2017 6:49 AM  
> > To: HDF Users Discussion List  
> > Subject: Re: [Hdf-forum] HDF5 library bug or feature?
> > 
> > > > Rafal, this might be a bug.
> > 
> > > Is there any way to record/track this issue?
> > 
> > Not sure. Helpdesk will check. (It's still early morning here...)
> > 
> > G.
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.or](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.or)  
> > g  
> > Twitter: [https://twitter.com/hdf5](https://twitter.com/hdf5)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@lists.hdfgroup.org  
> > [http://lists.hdfgroup.org/mailman/listinfo/hdf-forum\_lists.hdfgroup.or](http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.or)  
> > g  
> > Twitter: [https://twitter.com/hdf5](https://twitter.com/hdf5)

---

<div class="post-metadata">

**Author:** ![richa1992123](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@richa1992123](https://forum.hdfgroup.org/u/richa1992123)\
**Post date:** [January 25, 2019, 11:42am UTC](https://forum.hdfgroup.org/t/question-about-domain-name-in-h5-server/4103/14 "2019-01-25T11:42:00Z")

</div>

This server is not working properly on Windows 10. I get useful ideas from [https://errorcode0x.com/windows-10-preparing-automatic-repair-error-fixed/](https://errorcode0x.com/windows-10-preparing-automatic-repair-error-fixed/) page.
