POV-Ray : Newsgroups : povray.bugreports : file directory problem Server Time
29 Mar 2024 02:24:43 EDT (-0400)
  file directory problem (Message 1 to 8 of 8)  
From: jr
Subject: file directory problem
Date: 7 Apr 2019 19:05:00
Message: <web.5caa81f5bd119c2a968d6dc0@news.povray.org>
hi,

getting an error I cannot understand.

Script started on Sun 07 Apr 2019 23:52:16 BST
jr@crow:1:sinkflip$ pov38 sf2b1
Persistence of Vision(tm) Ray Tracer Version 3.8.0-alpha.10013324.unofficial
....
Rendering frame 1 of 72 (#0)

Rendering frame 1 of 72 (#0)


Stream output files must reside in same directory as image output file.
Stream output files must reside in same directory as image output file.
Render failed



the .ini file contains (edited):

all_file = /tmp/render/sf/LOG

initial_frame = 0
final_frame = 71

input_file_name = sf2b1.pov

output_file_name = /tmp/render/sf/frame_


regards, jr.


Post a reply to this message

From: Le Forgeron
Subject: Re: file directory problem
Date: 8 Apr 2019 11:48:48
Message: <5cab6d60$1@news.povray.org>
Le 08/04/2019 à 01:04, jr a écrit :
> hi,
> 
> getting an error I cannot understand.
> 
> Script started on Sun 07 Apr 2019 23:52:16 BST
> jr@crow:1:sinkflip$ pov38 sf2b1
> Persistence of Vision(tm) Ray Tracer Version 3.8.0-alpha.10013324.unofficial
> ....
> Rendering frame 1 of 72 (#0)
> 
> Rendering frame 1 of 72 (#0)
> 
> 
> Stream output files must reside in same directory as image output file.
> Stream output files must reside in same directory as image output file.
> Render failed
> 
> 

Basic problem due to IO restrictions being active (default).

Well, not a real problem, works as intended, to protect the innocents.

see
http://wiki.povray.org/content/Documentation:Unix_Section_4#I.2FO_Restrictions

> http://wiki.povray.org/content/Documentation:Unix_Section_4#I.2FO_Restrictions

So, as the message can be read: your log file must be in the same
directory as the image output file.

you need to tune the configuration of the io-restrictions to be more
relaxed.

I live in a dangerous world, my default compilation option is
--disable-io-restrictions, but that's me, and it might not be good for all.

> 
> the .ini file contains (edited):
> 
> all_file = /tmp/render/sf/LOG
> 
> initial_frame = 0
> final_frame = 71
> 
> input_file_name = sf2b1.pov
> 
> output_file_name = /tmp/render/sf/frame_
> 
> 
> regards, jr.
> 
>


Post a reply to this message

From: jr
Subject: Re: file directory problem
Date: 8 Apr 2019 12:15:00
Message: <web.5cab733e1c4d9672968d6dc0@news.povray.org>
hi,

Le_Forgeron <jgr### [at] freefr> wrote:
> Le 08/04/2019 à 01:04, jr a écrit :
> > Stream output files must reside in same directory as image output file.
>
> Basic problem due to IO restrictions being active (default).
>
> Well, not a real problem, works as intended, to protect the innocents.

fingers crossed.  :-)

> see ...
> So, as the message can be read: your log file must be in the same
> directory as the image output file.
>
> you need to tune the configuration of the io-restrictions to be more
> relaxed.

so this is the private 'povray.conf':
; POV-Ray 3.8
[File I/O Security]
restricted
[Shellout Security]
allowed
[Permitted Paths]
read* = /usr/share/fonts/local
read* = %INSTALLDIR%/include
read* = %INSTALLDIR%/scenes
read* = %INSTALLDIR%/extra
read+write* = /tmp
read+write* = %HOME%


and /tmp and its descendants work.  usually.  what needs to be relaxed?


regards, jr.


Post a reply to this message

From: jr
Subject: Re: file directory problem
Date: 9 Apr 2019 09:05:00
Message: <web.5cac97991c4d9672968d6dc0@news.povray.org>
hi,

Le_Forgeron <jgr### [at] freefr> wrote:
> Le 08/04/2019 à 01:04, jr a écrit :
> > Persistence of Vision(tm) Ray Tracer Version 3.8.0-alpha.10013324.unofficial
> > ....
> > Stream output files must reside in same directory as image output file.
> > Render failed

> Basic problem due to IO restrictions being active (default).

for laughs I changed 'File I/O Security' to 'none' in both the site-wide and the
personal configuration files.  no dice.  same error, even though both stream +
image output files would "reside in same directory".


regards, jr.


Post a reply to this message

From: Le Forgeron
Subject: Re: file directory problem
Date: 9 Apr 2019 13:26:52
Message: <5cacd5dc$1@news.povray.org>
Le 09/04/2019 à 15:02, jr a écrit :
> hi,
> 
> Le_Forgeron <jgr### [at] freefr> wrote:
>> Le 08/04/2019 à 01:04, jr a écrit :
>>> Persistence of Vision(tm) Ray Tracer Version 3.8.0-alpha.10013324.unofficial
>>> ....
>>> Stream output files must reside in same directory as image output file.
>>> Render failed
> 
>> Basic problem due to IO restrictions being active (default).
> 
> for laughs I changed 'File I/O Security' to 'none' in both the site-wide and the
> personal configuration files.  no dice.  same error, even though both stream +
> image output files would "reside in same directory".
> 

which paths ?

/usr/local/etc/povray/3.8 or
/usr/local/etc/povray/3.7 ?

Can you recompile with --enable-debug, and have a look at the start of
the output when you launch povray ?

I have that:

PATHS
  HOME        = /home/jerome
  SYSCONF     = /usr/local/etc/povray/3.8/povray.conf
  USERCONF    = /home/jerome/.povray/3.8/povray.conf
  SYSINI      = /usr/local/etc/povray/3.8/povray.ini
  SYSINI_OLD  = /usr/local/etc/povray.ini
  USERINI     = /home/jerome/.povray/3.8/povray.ini
  USERINI_OLD = /home/jerome/.povrayrc
PARSE CONF '/usr/local/etc/povray/3.8/povray.conf'
  CANONICALIZE '%INSTALLDIR%/include/'
    su: /usr/local/share/povray-3.8/include/
    su: /usr/local/share/povray-3.8/include/
    su: /usr/local/share/povray-3.8/include/
    su: /usr/local/share/povray-3.8/include/
PERMITTED ADD '/usr/local/share/povray-3.8/include/'
  CANONICALIZE '%INSTALLDIR%/scenes/'
    su: /usr/local/share/povray-3.8/scenes/
    su: /usr/local/share/povray-3.8/scenes/
    su: /usr/local/share/povray-3.8/scenes/
    su: /usr/local/share/povray-3.8/scenes/
PERMITTED ADD '/usr/local/share/povray-3.8/scenes/'
  CANONICALIZE '%INSTALLDIR%/../../etc/'
    su: /usr/local/share/povray-3.8/../../etc/
    su: /usr/local/share/povray-3.8/../../etc/
    su: /usr/local/share/povray-3.8/../../etc/
    su: /usr/local/share/povray-3.8/../../etc/
    su: /usr/local/share/../etc/
PERMITTED ADD '/usr/local/share/../etc/'
  CANONICALIZE '%HOME%/'
    su: %HOME%/
    su: /home/jerome/
    su: /home/jerome/
    su: /home/jerome/
PERMITTED ADD '/home/jerome/'
  CANONICALIZE '/tmp/'
    su: /tmp/
    su: /tmp/
    su: /tmp/
    su: /tmp/
PERMITTED ADD '/tmp/'
  CANONICALIZE './'
    su: ./
    su: ./
    su: ./
    su: ./
PERMITTED ADD '/usr/local/etc/povray/3.8/'
I/O RESTRICTIONS
  file_io  = 0	config->file_io  = 0
  shellout = 1	config->shellout = 1
PARSE CONF '/home/jerome/.povray/3.8/povray.conf'
  CANONICALIZE '%INSTALLDIR%/include/'
    su: /usr/local/share/povray-3.8/include/
    su: /usr/local/share/povray-3.8/include/
    su: /usr/local/share/povray-3.8/include/
    su: /usr/local/share/povray-3.8/include/
PERMITTED ADD '/usr/local/share/povray-3.8/include/'
  CANONICALIZE '%INSTALLDIR%/scenes/'
    su: /usr/local/share/povray-3.8/scenes/
    su: /usr/local/share/povray-3.8/scenes/
    su: /usr/local/share/povray-3.8/scenes/
    su: /usr/local/share/povray-3.8/scenes/
PERMITTED ADD '/usr/local/share/povray-3.8/scenes/'
  CANONICALIZE '%INSTALLDIR%/../../etc/'
    su: /usr/local/share/povray-3.8/../../etc/
    su: /usr/local/share/povray-3.8/../../etc/
    su: /usr/local/share/povray-3.8/../../etc/
    su: /usr/local/share/povray-3.8/../../etc/
    su: /usr/local/share/../etc/
PERMITTED ADD '/usr/local/share/../etc/'
  CANONICALIZE '%HOME%/'
    su: %HOME%/
    su: /home/jerome/
    su: /home/jerome/
    su: /home/jerome/
PERMITTED ADD '/home/jerome/'
  CANONICALIZE '/tmp/'
    su: /tmp/
    su: /tmp/
    su: /tmp/
    su: /tmp/
PERMITTED ADD '/tmp/'
  CANONICALIZE './'
    su: ./
    su: ./
    su: ./
    su: ./
PERMITTED ADD '/usr/local/etc/povray/3.8/'
I/O RESTRICTIONS
  file_io  = 0	config->file_io  = 0
  shellout = 2	config->shellout = 2
PERMITTED PATHS
  READ* = "/usr/local/share/povray-3.8/include/"
  READ* = "/usr/local/share/povray-3.8/scenes/"
  READ* = "/usr/local/share/../etc/"
  READ* = "/home/jerome/"
  WRITE* = "/tmp/"
  WRITE = "/home/jerome/"
OPTIONS (6)
  version = off(--version|-version|--V, )
  temppath = (, POV_TEMP_DIR)
  help = off(--help|-help|-h|-?, )
  generation = off(--generation, )
  benchmark = off(--benchmark|-benchmark, )
  scaled = on(, POV_DISPLAY_SCALED)



> 
> regards, jr.
> 
>


Post a reply to this message

From: jr
Subject: Re: file directory problem
Date: 9 Apr 2019 14:25:05
Message: <web.5cace3351c4d9672968d6dc0@news.povray.org>
hi,

Le_Forgeron <jgr### [at] freefr> wrote:
> >> Le 08/04/2019 à 01:04, jr a écrit :
> >>> Persistence of Vision(tm) Ray Tracer Version 3.8.0-alpha.10013324.unofficial
>
> which paths ?
> /usr/local/etc/povray/3.8 or
> /usr/local/etc/povray/3.7 ?

only 3.8 versions installed on this machine.


> Can you recompile with --enable-debug, and have a look at the start of
> the output when you launch povray ?

ok.  will do, next couple of days or so.  thanks.


regards, jr.


Post a reply to this message

From: clipka
Subject: Re: file directory problem
Date: 9 Apr 2019 17:30:12
Message: <5cad0ee4$1@news.povray.org>
Am 08.04.2019 um 01:04 schrieb jr:

> the .ini file contains (edited):
> 
> all_file = /tmp/render/sf/LOG

Is there perhaps a directory named `LOG`?

Also, what happens if you just specify `all_file=LOG`?

> output_file_name = /tmp/render/sf/frame_

Or is `frame_` perhaps a directory?


Post a reply to this message

From: jr
Subject: Re: file directory problem
Date: 9 Apr 2019 18:20:00
Message: <web.5cad1a5d1c4d9672968d6dc0@news.povray.org>
hi,

clipka <ano### [at] anonymousorg> wrote:
> Am 08.04.2019 um 01:04 schrieb jr:
> > all_file = /tmp/render/sf/LOG
>
> Is there perhaps a directory named `LOG`?
>
> Also, what happens if you just specify `all_file=LOG`?

bingo.  'LOG' is created in same directory as frame_* files.  automatically.
nice.

thank you.


regards, jr.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.