🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

[SOLVED] file not found :: for read model operator when hosted in server

User: "PaulV"
New Altair Community Member
Updated by Jocelyn
Hello,

I am exposing a process as a JSON webservice. (which works pretty nice)
This process uses a model file as input for the apply model operator by means of using the read model operator.

The error I am getting is that it cannot find the model file even though it is listed in the users repository.

Could not read file '/home/anonymous/xx.mod': java.io.FileNotFoundException: /home/anonymous/xx.mod (No such file or directory)."}}

Is there anyplace I can start looking for what this issue might be?

Any guidance is much appreciated.

Best regards

Paul

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "JEdward"
    New Altair Community Member
    My guess would be that it's looking on the server for the directory /home/anonymous/xx.mod which doesn't exist and not in the user directory in the RapidMiner repository. 
    (The Read Model operator reads from a disk location). 
    If your model is stored in the RapidMiner repository you can use the Retrieve operator to use in the process. 

    Does that help? 
    User: "PaulV"
    New Altair Community Member
    OP
    Where can I check for the existence of that directory. As thru the repository browser the file can be seen (even with the same path?)
    Hi,

    which user is using the webservice? If it is anomynous you need to give read rights.

    Cheers,
    Martin
    User: "PaulV"
    New Altair Community Member
    OP
    JEdward wrote:

    My guess would be that it's looking on the server for the directory /home/anonymous/xx.mod which doesn't exist and not in the user directory in the RapidMiner repository. 
    (The Read Model operator reads from a disk location).   
    If your model is stored in the RapidMiner repository you can use the Retrieve operator to use in the process. 

    Does that help? 
    I have created a process which first stores the model in the repository after which the main process can use the Retrieve operator.

    Thanks for the tip!
    p.s. what is the recommended way? Using retrieve or read.
    I don't know whats recommended, but i personally never used Read.