resource.xml file is not getting created automatically Rundeck 3.0.6-20180917

746 views
Skip to first unread message

Prasobh En

unread,
Sep 24, 2018, 12:39:04 PM9/24/18
to rundeck-discuss
I have created a new project in rundeck, but resource.xml file is not getting created automatically.

OS : Centos

rac...@rundeck.com

unread,
Oct 15, 2018, 3:58:56 PM10/15/18
to rundeck-discuss
Hey Prasobh,

It's because you must define the resource.xml, for that:

1) Go to  Project Settings -> Edit Nodes
2) Click on "Configure Nodes" (Up, Right) and Click on "Add Source".
3) Then select "+ File"
4) In format (in the right), select "resourcexml", set the path (usually /var/rundeck/projects/<yourproject>/resource.xml)
5) Set these checkboxes: "Generate", "Include Server Node" and "Writeable".
6) Click on "Save" (of File section)
7) Click on "Save" (of Edit Nodes section)

Hope it helps!

Shobhit Joshi

unread,
May 7, 2020, 6:52:05 AM5/7/20
to rundeck-discuss
Hi, I have followed the above steps to define the resource.xml but when i click save of Edit Nodes Section I get the following error:
Parent dir for resource file does not exists, and could not be created: /var/rundeck/projects/Calculator/etc/resource.xml

Os : Ubuntu 18.04

Reiner Acuña

unread,
May 7, 2020, 7:01:31 AM5/7/20
to rundeck...@googlegroups.com
Hi Shobhit,

That's because /var/rundeck/projects path is for Rundeck 3.0.X. For Rundeck 3.2.X the path is /var/lib/rundeck/projects, you have more information here:

Hope it help!

Reiner Acuña Pisani
Community Support Engineer
Rundeck Inc,.


From: rundeck...@googlegroups.com <rundeck...@googlegroups.com> on behalf of Shobhit Joshi <a.capta...@gmail.com>
Sent: Thursday, May 7, 2020 12:40:45 AM
To: rundeck-discuss <rundeck...@googlegroups.com>
Subject: [rundeck] Re: resource.xml file is not getting created automatically Rundeck 3.0.6-20180917
 
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/17d93842-7c4f-439d-91c3-e51704a5383c%40googlegroups.com.

Konrad Holubek

unread,
Jun 2, 2020, 11:25:55 AM6/2/20
to rundeck-discuss
Hi, 

I'm facing the same issue. I'm running rundeck in a docker container and my projects are under /home/rundeck/projects. It worked until now but for some strange reason, after restarting my container, I cannot create ressource.xml any more. I get 
Parent dir for resource file does not exists, and could not be created: /home/rundeck/projects/test/resource.xml

But in my container, I clearly see that I have projects under /home/rundeck. Can this be a folder access issue ? 

Please advise, 

Konrad 

Reiner Acuña

unread,
Jun 2, 2020, 11:41:08 AM6/2/20
to rundeck-discuss
Hi Konrad,

To create your resource.xml file follow this post:

https://groups.google.com/d/msg/rundeck-discuss/sKSLb_4pIJo/efCN5fAvBAAJ

Rundeck 3.2 stores the Project elements inside H2 database by default, the resources.xml file can be placed in any path reachable for the rundeck user, just make sure that the path exists (and put the file name at the end of the path).

Regards!

Konrad Holubek

unread,
Jun 2, 2020, 11:43:37 AM6/2/20
to rundeck-discuss
I just actually managed to solve the issue. 

For anyone else having this issue, for some strange reason, when restarting my container, the owner of the project folder was changed to root:root. I thereby had to change owner to rundeck:root. From there, I can again create my resource.xml file as expected. 

Cheers, 

Konrad

Adam Licht

unread,
Jul 1, 2020, 5:29:15 PM7/1/20
to rundeck-discuss
Hi all, 

I'm trying to use a backend mysql database with Rundeck (on a different box), and I created the resources.xml file, but my nodes only show up if the rundeck.projectsStorageType=db value is set to =file instead. However, all my jobs are on the mysql database, as I want them to be, so the jobs disappear in the UI. Additionally, if I navigate to edit nodes > sources > ResourceModelSource+ just loads an empty popup window.. Is there any way to get the resources.xml file to read in properly when using mysql on an external box? I've been at this for 2 days and I can't seem to find any documentation that steers me toward a solution. Thank you in advance. I can provide configuration files if requested. 

OS: CentOS7 (for both rundeck and mysql)
Rundeck Version: 3.2.7-20200515

rac...@rundeck.com

unread,
Jul 1, 2020, 5:41:17 PM7/1/20
to rundeck-discuss
Hi Adam,

About the empty resource model source modal, is a known issue when you configure rundeck behind some proxy server/web server, take a look at this: https://groups.google.com/g/rundeck-discuss/c/I94cVxK_6kQ/m/0a3PPyygAwAJ

Basically you need to set `grails.serverURL` (rundeck-config.properties file) with the proxy/webserver exit URL.

Hope it helps!

amli...@gmail.com

unread,
Jul 2, 2020, 9:53:59 AM7/2/20
to rundeck-discuss
I can confirm this works with external mysql database backend. Thank you so much!

Regards,
Adam

anguri sudhakar

unread,
Mar 5, 2021, 7:11:35 AM3/5/21
to rundeck-discuss
I am facing same issue , please help ...

rac...@rundeck.com

unread,
Mar 5, 2021, 7:35:10 AM3/5/21
to rundeck-discuss
Hi Anguri,

If you mean creating the model source file, please take a look at this, please consider this. If you mean about model source modal issue, you just need to define the `grails.serverURL` parameter (rundeck-config.properties file) accordingly to your proxy exit URL, check this.

Hope it helps!

Jitendra Ingale

unread,
Oct 14, 2021, 7:58:38 AM10/14/21
to rundeck-discuss
I am also facing issue that resource.xml file is not getting created automatically

Rundeck version - rundeck-3.4.4-20210920
Installed on Windows Server 2016

I am trying to add Windows node to Rundeck but resource.xml file is not getting created automatically under folder C:\Rundeck\projects

I tried creating \PROJECTNAME\etc folder under above path and then creating resource.xml file manually but its not working.

I am also seeing files 1.source.xml and cache.xml created under below path and tried updating 1.source.xml with new node information but changes made gets disappeared after few seconds.
C:\Rundeck\var\resourceModelSourceCache\PROJECTNAME

Please guide,
Over correct way to add Windows node to this Rundeck which is installed on Windows
Also resources.xml path in above mentioned Rundeck version

rac...@rundeck.com

unread,
Oct 14, 2021, 8:10:25 AM10/14/21
to rundeck-discuss
Hi Jitendra,

You must create the resource.xml file manually, please take a look at this. Since Rundeck 3.0.X you need to create the file.

Regards.

Jitendra Ingale

unread,
Oct 14, 2021, 8:29:15 AM10/14/21
to rundeck-discuss
Hey Prasobh,

It's because you must define the resource.xml, for that:
1) Go to  Project Settings -> Edit Nodes
2) Click on "Configure Nodes" (Up, Right) and Click on "Add Source".
3) Then select "+ File"
4) In format (in the right), select "resourcexml", set the path (usually /var/rundeck/projects/<yourproject>/resource.xml)
5) Set these checkboxes: "Generate", "Include Server Node" and "Writeable".
6) Click on "Save" (of File section)
7) Click on "Save" (of Edit Nodes section)


I have referred these steps but I am not seeing these settings from my Rundeck console. Attaching screenshots for more clarity.

Can you please highlight if I am missing anything and guide.




rundeck_seetigs_1.PNG

rundeck_seetigs_2.PNG

rac...@rundeck.com

unread,
Oct 14, 2021, 8:56:31 AM10/14/21
to rundeck-discuss
Hi Jitendra,

I made some screenshots to guide you.

1. Go to the Project Settings > Edit nodes, check.
2. Click on the Add a new source button, check.
3. Select File, take a look.
4. Select resourcexml, define the path (including the file), click on Generate and Writeable and save.
5. Save your source.
6. Now go to the Edit tab, and click on the Modify button. Look.
7. Add the windows node definition and save. Look.
8. Now the node is available on your nodes page. Check.

Regards.

Jitendra Ingale

unread,
Oct 14, 2021, 9:14:06 AM10/14/21
to rundeck-discuss
Thanks for all these efforts.
I have tried it and getting errors at Step-6 (attached in screenshot) and Step-7 (attached in error_500.txt)

Path for  resourcexml I am using is C:\Rundeck\projects\WindowsPatchManagement\etc where \WindowsPatchManagement\etc folder structure is manually created.

rundeck_seetigs_3.PNG
error_500.txt

rac...@rundeck.com

unread,
Oct 14, 2021, 9:18:52 AM10/14/21
to rundeck-discuss
You need to define the full path including the file name, for example, c:\Rundeck\path\resources.xml.

Hope it helps!

Jitendra Ingale

unread,
Oct 14, 2021, 9:19:11 AM10/14/21
to rundeck-discuss
Please ignore my last message. I got it resolved.
You're a great help.

Reply all
Reply to author
Forward
0 new messages