stderr.txt missing from the slots directory in boinc-client

Message boards : BOINC client : stderr.txt missing from the slots directory in boinc-client
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Gandalf

Send message
Joined: 23 Aug 07
Posts: 7
India
Message 13897 - Posted: 16 Nov 2007, 6:28:08 UTC

I'm using boinc-client version 5.8.1-2build1~feisty-fawn on Ubuntu 7.04. No stderr.txt file exists in the slots folder under the boinc-client directory and hence i'm unable to get stderr outputs from an application i'm working on.

Can anybody tell me why it doesn't exist and what can i do to restore its existence.
ID: 13897 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 13902 - Posted: 16 Nov 2007, 18:03:16 UTC - in response to Message 13897.  

The file is created by the app, not by the core client. Are you initializing diagnostics?

[Maybe this should be moved to API section]
ID: 13902 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13903 - Posted: 16 Nov 2007, 18:43:50 UTC - in response to Message 13902.  
Last modified: 16 Nov 2007, 18:52:06 UTC

The file is created by the app, not by the core client. Are you initializing diagnostics?

[Maybe this should be moved to API section]



The app fills stderr.txt by writing to its stderr / handle 2 but the redirect of that handle to a fresh created disk file is done in app_start.C, just before it starts the application (currently line 680).

I don't think that it is an API issue.

(p.s.: it's in the Unix/Linux/Mac #if-#else branch of app_start.C, for Windows your assumption would have been correct)
ID: 13903 · Report as offensive
Profile Gandalf

Send message
Joined: 23 Aug 07
Posts: 7
India
Message 13905 - Posted: 16 Nov 2007, 19:14:35 UTC

I thought stderr.txt captures the activities of the application and is located under the slots directory in boinc-client. But it's missing in my client. I am not sure if application creates the file (it surely edits the file).

In any case, do you what should I do to get the stderr to print the outputs in stderr.txt at the client end?
ID: 13905 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13906 - Posted: 16 Nov 2007, 19:23:51 UTC - in response to Message 13905.  
Last modified: 16 Nov 2007, 19:29:59 UTC

I thought stderr.txt captures the activities of the application and is located under the slots directory in boinc-client.


You're right. It captures the console output of the "error channel" and redirects it to a file. Under Linux, the core client should handle that redirect.

But it's missing in my client. I am not sure if application creates the file (it surely edits the file).


Under windows, the project application (API) does that in the initialisation. Under Unix/Mac/Linux, the core client takes over that part.

In any case, do you what should I do to get the stderr to print the outputs in stderr.txt at the client end?


I don't have an idea, just some more questions ;-)

Could it be a permission thing? (chmod 777 all slot subdirectories for one test)

Do other projects have a stderr in their slot? If that is not the case, it might be a problem of your core client built.

p.s.: One more, could you check the core client log files for the output you would have expected in your applications stderr.txt? If it is there, the redirect to the slot might not have worked or is completely missing in your core client built.

In none of those cases I could imagine it is an issue with your application btw.
ID: 13906 · Report as offensive

Message boards : BOINC client : stderr.txt missing from the slots directory in boinc-client

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.