cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to initialize FileRepository error while creating DataSet

SOLVED
Highlighted
Regular Member

Unable to initialize FileRepository error while creating DataSet

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Unable to initialize FileRepository error while creating DataSet

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 4

Re: Unable to initialize FileRepository error while creating DataSet

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

 

Re: Unable to initialize FileRepository error while creating DataSet

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.

Re: Unable to initialize FileRepository error while creating DataSet

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

 

Re: Unable to initialize FileRepository error while creating DataSet

Thanks Christophe! The expiry date on the Application Key in Thingworx was indeed the problem! Issue solved.