Skip to main content
10-Marble
July 30, 2018
Solved

Unable to initialize FileRepository error while creating DataSet

  • July 30, 2018
  • 4 replies
  • 2754 views

Hi,

 

I am trying to create a DataSet and getting following error:

 

java.io.IOException: Unable to initialize FileRepository [AnalyticsUploadStorage] Unable to initialize FileRepository [AnalyticsUploadStorage] HTTP [401] : For support cases please provide this log tag: 3046a039-0295-48ee-bfcf-2db89f0c6a19

 

Thanks and Regards,

Jyothi

Best answer by cmorfin

Hi

It is note clear from your last answer if you double check the configuration or not.

The fact that you were able to upload a dataset indicates that the configuration used to be ok indeed.

However application key do have an expiration date and the default is one day. So it is possible that you can upload a dataset on day 1, but fail on day 2 because the appkey expired.

 

It is therefore important to double check that the key is still valid.

 

Also since you were able to upload a dataset, could you try upload this same one again to see if it is still successful ?

 

Thanks

Christophe

 

4 replies

19-Tanzanite
July 30, 2018

Hi Jyothi

 

You are receiving a 401 error which means unauthorized.

So you should start checking the appkey used in ThingWorx Analytics Server config files ( <ThingWorxAnalyticsServer>/config/analytics-server.properties and system-environment-variable.properties) to make sure:

- it is correct

- it is not expired

- it is associated with a user who has sufficient privileges (start with Administrator)

 

Hope this helps

Christophe

 

jrajesh10-MarbleAuthor
10-Marble
July 30, 2018

The configurations are correct. I confirmed.

Sorry to have not mentioned this before, but 1 dataset and model has got successfully created. I am creating another dataset and it is failing this time with the given error.

cmorfin19-TanzaniteAnswer
19-Tanzanite
July 30, 2018

Hi

It is note clear from your last answer if you double check the configuration or not.

The fact that you were able to upload a dataset indicates that the configuration used to be ok indeed.

However application key do have an expiration date and the default is one day. So it is possible that you can upload a dataset on day 1, but fail on day 2 because the appkey expired.

 

It is therefore important to double check that the key is still valid.

 

Also since you were able to upload a dataset, could you try upload this same one again to see if it is still successful ?

 

Thanks

Christophe