Unable to create resource of type "File"

Hi,

We are using DHIS version 2.25. In the Reports module, we have Resources of types “File” and “URL”. We are able to create a resource of type ‘URL’. But when we try to create one with type - ‘File’, the application throws an exception. This used to get saved in 2.24 and earlier versions. But doesn’t work in 2.25.

See the screenshot attached.

Cheers,

···

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Hi Archana,

I just tested this on the demo instance for 2.25 and it works there.

Can you please provide the tomcat log?

regards,

Lars

···

On Fri, Nov 4, 2016 at 1:44 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS version 2.25. In the Reports module, we have Resources of types “File” and “URL”. We are able to create a resource of type ‘URL’. But when we try to create one with type - ‘File’, the application throws an exception. This used to get saved in 2.24 and earlier versions. But doesn’t work in 2.25.

See the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Hi Lars,

Yes, it works fine on the play server. But somehow, not on ours. We’re using DHIS version 2.25 build - 66c1fc0. Please have a look at the logs attached herewith.

resource_type_file_logs.json (5.41 KB)

···

On Fri, Nov 4, 2016 at 7:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Archana,

I just tested this on the demo instance for 2.25 and it works there.

Can you please provide the tomcat log?

regards,

Lars

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Fri, Nov 4, 2016 at 1:44 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS version 2.25. In the Reports module, we have Resources of types “File” and “URL”. We are able to create a resource of type ‘URL’. But when we try to create one with type - ‘File’, the application throws an exception. This used to get saved in 2.24 and earlier versions. But doesn’t work in 2.25.

See the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Are you certain that the user which is running the DHIS2 server has access to write to

/home/dhis/documents/ ?

Regards,

Jason

···

On Tue, Nov 8, 2016 at 12:18 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Lars,

Yes, it works fine on the play server. But somehow, not on ours. We’re using DHIS version 2.25 build - 66c1fc0. Please have a look at the logs attached herewith.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Fri, Nov 4, 2016 at 7:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Archana,

I just tested this on the demo instance for 2.25 and it works there.

Can you please provide the tomcat log?

regards,

Lars

On Fri, Nov 4, 2016 at 1:44 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS version 2.25. In the Reports module, we have Resources of types “File” and “URL”. We are able to create a resource of type ‘URL’. But when we try to create one with type - ‘File’, the application throws an exception. This used to get saved in 2.24 and earlier versions. But doesn’t work in 2.25.

See the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Hi Jason,

The user has been given all the authorities that include the following:
Add/Update Private Document
Add/update Public Document
Delete Document

Even though, the issue exists.

···

On Tue, Nov 8, 2016 at 4:58 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Are you certain that the user which is running the DHIS2 server has access to write to

/home/dhis/documents/ ?

Regards,

Jason

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Tue, Nov 8, 2016 at 12:18 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Lars,

Yes, it works fine on the play server. But somehow, not on ours. We’re using DHIS version 2.25 build - 66c1fc0. Please have a look at the logs attached herewith.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Fri, Nov 4, 2016 at 7:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Archana,

I just tested this on the demo instance for 2.25 and it works there.

Can you please provide the tomcat log?

regards,

Lars

On Fri, Nov 4, 2016 at 1:44 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS version 2.25. In the Reports module, we have Resources of types “File” and “URL”. We are able to create a resource of type ‘URL’. But when we try to create one with type - ‘File’, the application throws an exception. This used to get saved in 2.24 and earlier versions. But doesn’t work in 2.25.

See the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

No, I am talking about the system user on the operating system.

So, if you DHIS2 server is running as the user “dhis”, then this user needs access to be able to write to that directory mentioned in your file.

This has nothing to do with users in DHIS2, but is potentially an operating system issue with the permissions of the directory which the server needs to write to.

Regards,

Jason

···

On Tue, Nov 8, 2016 at 1:09 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Jason,

The user has been given all the authorities that include the following:
Add/Update Private Document
Add/update Public Document
Delete Document

Even though, the issue exists.

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Tue, Nov 8, 2016 at 4:58 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Are you certain that the user which is running the DHIS2 server has access to write to

/home/dhis/documents/ ?

Regards,

Jason

On Tue, Nov 8, 2016 at 12:18 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Lars,

Yes, it works fine on the play server. But somehow, not on ours. We’re using DHIS version 2.25 build - 66c1fc0. Please have a look at the logs attached herewith.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Fri, Nov 4, 2016 at 7:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Archana,

I just tested this on the demo instance for 2.25 and it works there.

Can you please provide the tomcat log?

regards,

Lars

On Fri, Nov 4, 2016 at 1:44 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS version 2.25. In the Reports module, we have Resources of types “File” and “URL”. We are able to create a resource of type ‘URL’. But when we try to create one with type - ‘File’, the application throws an exception. This used to get saved in 2.24 and earlier versions. But doesn’t work in 2.25.

See the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Okay. Got it. Will check that.

···

On Tue, Nov 8, 2016 at 5:41 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

No, I am talking about the system user on the operating system.

So, if you DHIS2 server is running as the user “dhis”, then this user needs access to be able to write to that directory mentioned in your file.

This has nothing to do with users in DHIS2, but is potentially an operating system issue with the permissions of the directory which the server needs to write to.

Regards,

Jason

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Tue, Nov 8, 2016 at 1:09 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Jason,

The user has been given all the authorities that include the following:
Add/Update Private Document
Add/update Public Document
Delete Document

Even though, the issue exists.


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Tue, Nov 8, 2016 at 4:58 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Are you certain that the user which is running the DHIS2 server has access to write to

/home/dhis/documents/ ?

Regards,

Jason

On Tue, Nov 8, 2016 at 12:18 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Lars,

Yes, it works fine on the play server. But somehow, not on ours. We’re using DHIS version 2.25 build - 66c1fc0. Please have a look at the logs attached herewith.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Fri, Nov 4, 2016 at 7:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Archana,

I just tested this on the demo instance for 2.25 and it works there.

Can you please provide the tomcat log?

regards,

Lars

On Fri, Nov 4, 2016 at 1:44 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS version 2.25. In the Reports module, we have Resources of types “File” and “URL”. We are able to create a resource of type ‘URL’. But when we try to create one with type - ‘File’, the application throws an exception. This used to get saved in 2.24 and earlier versions. But doesn’t work in 2.25.

See the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Hi Jason,

It works. Thanks. It’s to do with permissions.

···

On Tue, Nov 8, 2016 at 5:44 PM, Archana Chillala archanac@thoughtworks.com wrote:

Okay. Got it. Will check that.

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Tue, Nov 8, 2016 at 5:41 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

No, I am talking about the system user on the operating system.

So, if you DHIS2 server is running as the user “dhis”, then this user needs access to be able to write to that directory mentioned in your file.

This has nothing to do with users in DHIS2, but is potentially an operating system issue with the permissions of the directory which the server needs to write to.

Regards,

Jason

On Tue, Nov 8, 2016 at 1:09 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Jason,

The user has been given all the authorities that include the following:
Add/Update Private Document
Add/update Public Document
Delete Document

Even though, the issue exists.


Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Tue, Nov 8, 2016 at 4:58 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Are you certain that the user which is running the DHIS2 server has access to write to

/home/dhis/documents/ ?

Regards,

Jason

On Tue, Nov 8, 2016 at 12:18 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi Lars,

Yes, it works fine on the play server. But somehow, not on ours. We’re using DHIS version 2.25 build - 66c1fc0. Please have a look at the logs attached herewith.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Fri, Nov 4, 2016 at 7:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Archana,

I just tested this on the demo instance for 2.25 and it works there.

Can you please provide the tomcat log?

regards,

Lars

On Fri, Nov 4, 2016 at 1:44 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS version 2.25. In the Reports module, we have Resources of types “File” and “URL”. We are able to create a resource of type ‘URL’. But when we try to create one with type - ‘File’, the application throws an exception. This used to get saved in 2.24 and earlier versions. But doesn’t work in 2.25.

See the screenshot attached.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org