Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inability to add Node Sources #5087

Closed
jjblack opened this issue Jul 25, 2019 · 6 comments
Closed

Inability to add Node Sources #5087

jjblack opened this issue Jul 25, 2019 · 6 comments

Comments

@jjblack
Copy link

jjblack commented Jul 25, 2019

Describe the bug
I am unable to add Node Sources in a new install of Rundeck. According to the documentation the option for a Node Source should appear when creating a new project, however, this does not seem to be the case. (see the first screenshot below)

If I continue creating the project and try to edit nodes, I am unable to add any other nodes. (see the second and third screenshot below)

Adding node definitions in /var/rundeck/project/development/nodes/resources.xml does not change anything described.

My Rundeck detail

  • Rundeck version: 3.0.24-20190719
  • install type: deb
  • OS Name/version: ubuntu 18.04
  • DB Type/version: N/a

To Reproduce
Steps to reproduce the behavior:

  1. Install the rundeck deb
  2. Access web page, log in with default credentials
  3. Create project

Expected behavior
The option for adding Node Sources should appear in the configuration for creating a project, or documentation should be updated.

Screenshots
new project
Edit Nodes
Resource Model Source

Desktop (please complete the following information):

  • OS: ubuntu 18.04
  • Browser chrome
  • Version 75.0.3770.100

Additional context
I have been following the User Guide on configuring Rundeck. From the bigging up to cofiguring Nodes, the documentation has not discussed details to the requirements of a database, so I currently do not have one. I am unsure if this matters in this issue.

@MegaDrive68k
Copy link

MegaDrive68k commented Jul 26, 2019

Hi @jjblack

Can you try with another browser? Any clue on the browser developer console?

Kind regards.

@jjblack
Copy link
Author

jjblack commented Jul 26, 2019

Thanks for the response @MegaDrive68k

Here is my console output, that might point us in the right direction:

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> ".

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> ".

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> ".

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> ".

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> ".

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> ".

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> ".

Refused to connect to '<URL>' because it violates the following Content Security Policy directive: "connect-src 'self' <URL> ".

xhr.js:178 Refused to connect to 'http://[rundeck-FQDN]:4440/menu/homeAjax?projects=development' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.rundeck.com ".

(anonymous) @ xhr.js:178
xhr.js:178 Refused to connect to 'http://[rundeck-FQDN].com:4440/tour/listAll' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.rundeck.com ".

(anonymous) @ xhr.js:178
xhrHttpClient.js:67 Refused to connect to 'http://[rundeck-FQDN]:4440/api/31/project/development/sources' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.rundeck.com ".

e.sendRequest @ xhrHttpClient.js:67
xhr.js:178 Refused to connect to 'http://[rundeck-FQDN]:4440/framework/projectPluginsAjax?project=development&configPrefix=resources.source&serviceName=ResourceModelSource&format=json' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.rundeck.com ".

(anonymous) @ xhr.js:178
xhrHttpClient.js:67 Refused to connect to 'http://[rundeck-FQDN]:4440/api/31/project/development/sources' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.rundeck.com ".

e.sendRequest @ xhrHttpClient.js:67
xhr.js:178 Refused to connect to 'http://[rundeck-FQDN]:4440/framework/projectPluginsAjax?project=development&configPrefix=nodes.plugin&serviceName=NodeEnhancer&format=json' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.rundeck.com ".

(anonymous) @ xhr.js:178
xhrHttpClient.js:70 Refused to connect to 'http://[rundeck-FQDN]:4440/plugin/providers/ResourceModelSource' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.rundeck.com ".

e.sendRequest @ xhrHttpClient.js:70
xhrHttpClient.js:70 Refused to connect to 'http://[rundeck-FQDN]:4440/plugin/providers/NodeEnhancer' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.rundeck.com ".

e.sendRequest @ xhrHttpClient.js:70
main.js:72 No tours found
WriteableProjectNodeSources.vue?e251:62 Error getting node sources list Error: Failed to send request to http://[rundeck-FQDN]:4440/api/31/project/development/sources
    at new t (restError.js:7)
    at XMLHttpRequest.<anonymous> (xhrHttpClient.js:126)
(anonymous) @ WriteableProjectNodeSources.vue?e251:62
ProjectNodeSourcesConfig.vue?cb16:96 Error getting node sources list Error: Failed to send request to http://[rundeck-FQDN]:4440/api/31/project/development/sources
    at new t (restError.js:7)
    at XMLHttpRequest.<anonymous> (xhrHttpClient.js:126)
(anonymous) @ ProjectNodeSourcesConfig.vue?cb16:96
pluginService.ts:58 Error getting service providers list Error: Failed to send request to http://[rundeck-FQDN]:4440/plugin/providers/ResourceModelSource
    at new t (restError.js:7)
    at XMLHttpRequest.<anonymous> (xhrHttpClient.js:129)
(anonymous) @ pluginService.ts:58
pluginService.ts:58 Error getting service providers list Error: Failed to send request to http://[rundeck-FQDN]:4440/plugin/providers/NodeEnhancer
    at new t (restError.js:7)
    at XMLHttpRequest.<anonymous> (xhrHttpClient.js:129)
(anonymous) @ pluginService.ts:58
vue.esm.js:8555 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
vue.esm.js:8555 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
vue.esm.js:8555 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
createError.js:16 Uncaught (in promise) Error: Network Error
    at LYNF.e.exports (createError.js:16)
    at XMLHttpRequest.m.onerror (xhr.js:87)
vue.esm.js:8555 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
createError.js:16 Uncaught (in promise) Error: Network Error
    at LYNF.e.exports (createError.js:16)
    at XMLHttpRequest.m.onerror (xhr.js:87)
createError.js:16 Uncaught (in promise) Error: Network Error
    at LYNF.e.exports (createError.js:16)
    at XMLHttpRequest.m.onerror (xhr.js:87)
ProjectPluginConfig.vue?3e8f:386 Uncaught (in promise) TypeError: Cannot read property 'service' of undefined
    at ProjectPluginConfig.vue?3e8f:386
ProjectPluginConfig.vue?3e8f:386 Uncaught (in promise) TypeError: Cannot read property 'service' of undefined
    at ProjectPluginConfig.vue?3e8f:386

I forgot to mention that I am also serving this under an apache proxy in order to access the webpage over 80/443.

@MegaDrive68k
Copy link

MegaDrive68k commented Jul 26, 2019

Hey @jjblack,

Try adding this to your rundeck-config.properties:

server.useForwardHeaders=true

And restart your instance.

https://docs.rundeck.com/docs/administration/security/configuring-ssl.html#using-an-ssl-terminated-proxy

Kind regards.

@jjblack
Copy link
Author

jjblack commented Jul 26, 2019

Unfortunately, that didn't change anything. The console output and webpage remain the same

@MegaDrive68k
Copy link

Hi @jjblack

Check this message:

https://groups.google.com/d/msg/rundeck-discuss/I94cVxK_6kQ/0a3PPyygAwAJ

Is the same Issue.

Hope it helps!

@jjblack
Copy link
Author

jjblack commented Jul 30, 2019

So I reconfigured rundeck, but this time with a nginx proxy, and this problem was solved. The issue was likely with my apache configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants