In the documentation of Ivy File (emphasis mine)

A File object can be used to read/write temporary or persistent data. IvyScript Files are created in a confined area that belongs to the running application. Temporary files are created in a session-specific file area and are automatically deleted if a session ends. Temporary Files can be made persistent.

If a temporary File is created, it will be located at {app}/files/sessions/{sessionId}/. The files then will be deleted if the session is invalidated.

Unfortunately, this isn't true for temporary files created by SYSTEM user. The SYSTEM user's session is always have the id of 0, hence all files created in SYSTEM user's session will be located at {app}/files/sessions/0/.

It seems that Ivy Server will never invalidate SYSTEM user's session, thus all files located in the directory will by left there undeleted (same as persistent file).

I don't know whether this is a known fact as a consequence of the implementation that SYSTEM user will never be invalidated or it should be considered (somehow) as a bug?

Thanks for considering my question.

Regards

asked 16.01.2015 at 09:24

Genzer%20Hawker's gravatar image

Genzer Hawker
481222536
accept rate: 66%


Since version 5.0.12 and 5.1 all temporary files are deleted when you restart the engine. This is also true for the System User Session.

link

answered 29.09.2015 at 16:50

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k172654
accept rate: 74%

It is true that the SESSION User Session will never be invalidated and therefore the temporary files created within this session are never going to be deleted.

The only problem with this behaviour that I can see currently is that the disk is filled with garbage and may lead sooner or later to a full disk error.

At the moment we do not know any customer that this behaviour had caused a full disk error.

A possible solution could be to delete the files during startup or shutdown of the Server.

If it is a problem for you please report an issue to SoreConnect or per mail to support@soreco.ch

link

answered 16.01.2015 at 13:19

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k172654
accept rate: 74%

I'll contact support@soreco.ch then, thanks for the suggestion. Do you consider to update the document warning the developers to be aware of the problem raised by my question?

(16.01.2015 at 17:57) Genzer Hawker Genzer%20Hawker's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16
×15
×1

Asked: 16.01.2015 at 09:24

Seen: 1,274 times

Last updated: 29.09.2015 at 16:50