Advanced search

Forums : Technical Support : app_config.xml Error
Message board moderation

To post messages, you must log in.

AuthorMessage
Larry

Send message
Joined: 20 Oct 13
Posts: 10
Credit: 195,064
RAC: 0
Message 20618 - Posted: 2 Dec 2015, 0:14:51 UTC
Last modified: 2 Dec 2015, 0:51:23 UTC

I created the following app_config.xml file (to restrict CPU multi-threading since I run multiple projects on a 4-core CPU) and placed it in my Cosmology@Home project directory:

<app_config>
    <app>
        <name>camb_boinc2docker</name>
        <max_concurrent>1</max_concurrent>
    </app>
    <app_version>
        <app_name>camb_boinc2docker</app_name>
        <plan_class>vbox64_mt</plan_class>
        <avg_ncpus>1</avg_ncpus>
        <max_ncpus>1</max_ncpus>
    </app_version>
</app_config>


However, upon restarting BOINC I receive the following [Event Log] error when this project initializes: Missing <app_config> in app_config.xml.

What's my problem?
ID: 20618 · Report as offensive     Reply Quote
Profile Jord
Volunteer moderator
Volunteer tester
Avatar

Send message
Joined: 15 Jun 07
Posts: 345
Credit: 50,500
RAC: 0
Message 20620 - Posted: 2 Dec 2015, 8:13:53 UTC - in response to Message 20618.  
Last modified: 2 Dec 2015, 15:47:44 UTC

How did you make the app_config.xml file? I suppose in Notepad?
Did you save it in ANSI encoding format, as opposed to Unicode or UTF-8?

<max_ncpus>1</max_ncpus> isn't an option in application configuration app_config.xml. Instead, it's an option in anonymous platform app_info.xml.

<app_config>
    <app>
        <name>camb_boinc2docker</name>
        <max_concurrent>1</max_concurrent>
    </app>
    <app_version>
        <app_name>camb_boinc2docker</app_name>
        <plan_class>vbox64_mt</plan_class>
        <avg_ncpus>1</avg_ncpus>
    </app_version>
</app_config>

ID: 20620 · Report as offensive     Reply Quote
Larry

Send message
Joined: 20 Oct 13
Posts: 10
Credit: 195,064
RAC: 0
Message 20621 - Posted: 2 Dec 2015, 10:24:19 UTC
Last modified: 2 Dec 2015, 11:12:17 UTC

Nice catch, Jord/Ageless! Thank-you. Re-saving the file in ANSI format corrected the original error. As I would expect now, though (until the new application download becomes available on Dec 3), I'm receiving the following error upon project initialization:

"Your app_config.xml file refers to an unknown application 'camb_boinc2docker'. Known applications: 'camb'"

Regarding your configuration file/option requirement reference, I'll see what happens after I accept at least one new job (and Docker container) prior to restarting my BOINC client, for which the specified configuration should be implemented on subsequent jobs. It would seem according to that referenced BOINC documentation, that the <avg_ncpus>x</avg_ncpus> option in app_config.xml provides the same intended limitation as does the <max_ncpus>x</max_ncpus> option in app_info.xml. I suppose regardless, though, if indeed <max_ncpus>x</max_ncpus> isn't [yet] an option in application configuration, app_config.xml, but rather only in anonymous platform, app_info.xml, then a change to the FAQ needs to be made immediately.
ID: 20621 · Report as offensive     Reply Quote
Profile Jord
Volunteer moderator
Volunteer tester
Avatar

Send message
Joined: 15 Jun 07
Posts: 345
Credit: 50,500
RAC: 0
Message 20624 - Posted: 2 Dec 2015, 15:54:43 UTC - in response to Message 20621.  

For <max_ncpus>, I mistakenly put it back in the example app_config.xml file I posted in my original post. I'd taken it out, but then copied your contents with the indentations, and forgot to take it out again. Sorry for that confusion, I have edited my post to take it out.
It would seem according to that referenced BOINC documentation, that the <avg_ncpus>x</avg_ncpus> option in app_config.xml provides the same intended limitation as does the <max_ncpus>x</max_ncpus> option in app_info.xml. I suppose regardless, though, if indeed <max_ncpus>x</max_ncpus> isn't [yet] an option in application configuration, app_config.xml, but rather only in anonymous platform, app_info.xml, then a change to the FAQ needs to be made immediately.

Which FAQ are you talking about?
If the entry about the app_config.xml file in the User Manual wikipedia page, <max_ncpus> isn't referenced there and doesn't need to as it isn't used there.
ID: 20624 · Report as offensive     Reply Quote
Larry

Send message
Joined: 20 Oct 13
Posts: 10
Credit: 195,064
RAC: 0
Message 20625 - Posted: 2 Dec 2015, 20:31:33 UTC

Thanks for the update and clarification. I'll be ready to use an app_info.xml file if my current app_config.xml fails to implement the project execution configuration that I desire.

The FAQ [item] I'm referring to is the one for this project: How can I limit the number of CPUs used?
ID: 20625 · Report as offensive     Reply Quote
Cwill_CZ

Send message
Joined: 25 Sep 07
Posts: 2
Credit: 469,371
RAC: 0
Message 20674 - Posted: 1 Jan 2016, 10:43:11 UTC

Hello,
do you have a key "Enter" after last line?
ID: 20674 · Report as offensive     Reply Quote
Cwill_CZ

Send message
Joined: 25 Sep 07
Posts: 2
Credit: 469,371
RAC: 0
Message 20676 - Posted: 1 Jan 2016, 15:25:59 UTC
Last modified: 1 Jan 2016, 15:54:16 UTC

Hello,
other thing is name of project,
for camb_legacy
it must be:

<app_config>
<app>
<name>camb</name>
<max_concurrent>2</max_concurrent>
</app>
</app_config>


and a key Enter after last line.
Directory is in data warehouse, for example
\data\projects\www.cosmologyathome.org\app_config.xml
ID: 20676 · Report as offensive     Reply Quote
Larry

Send message
Joined: 20 Oct 13
Posts: 10
Credit: 195,064
RAC: 0
Message 20699 - Posted: 6 Jan 2016, 9:56:09 UTC
Last modified: 6 Jan 2016, 10:23:27 UTC

Thanks Cwill_CZ, but my problem was fixed by saving my app_config.xml file in ANSI format (and using only the <avg_ncpus>1</avg_ncpus> option without the <max_ncpus>1</max_ncpus> option which is not available to app_config.xml).

And, I only need this file specifically for use with the camb_boinc2docker application as a means of restricting multiple/concurrent CPU core usage per job/task/WU within the VirtualBox environment as described in the current project FAQ. This "CPU behavior" is not an issue with the camb_legacy application (and is a completely different issue from that addressed by the <max_concurrent>X</max_concurrent> configuration option that you have included in your sample file).
ID: 20699 · Report as offensive     Reply Quote

Forums : Technical Support : app_config.xml Error