-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Internal Server Error since v1.1.0 #527
Comments
Hi, I did a quick test with the Dockerfile in this repo and puppetdb 6.6.0 on centos, I'm not able to reproduce the error. Did you try to downgrade puppetboard/pypuppetdb? |
Hi, I did not try to downgrade back to v1.0.0 of puppetboard yet, this was my last option i wanted to do. I see some errors in Apache2, maybe they can help a little bit: |
try downgrading puppetdb to 6.5 There are some connections issues with 6.6 |
hm, i've only upgraded the puppetboard. There musst be a little problem to be solved, i'll take a look into it |
I am having the same issue.
CentOS 7.6
Python 2.7.5
PuppetDB 5.2.9
Downgrading to 1.0.0 fixes the problem
Tom
From: basti-nis <[email protected]>
Sent: Monday, September 30, 2019 8:11 AM
To: voxpupuli/puppetboard <[email protected]>
Cc: Subscribed <[email protected]>
Subject: Re: [voxpupuli/puppetboard] Internal Server Error since v1.1.0 (#527)
hm, i've only upgraded the puppetboard.
Puppetboard v1.0.0 and PuppetDB 6.6 worked before.
There musst be a little problem to be solved, i'll take a look into it
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#527?email_source=notifications&email_token=ABJYF5QEC2Y5T4T3ATFR5D3QMHUD3A5CNFSM4I2VVXW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD75NPAI#issuecomment-536532865>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABJYF5Q2ZPC4FHLBQXU6OF3QMHUD3ANCNFSM4I2VVXWQ>.
|
I think the problem comes from pypuppetdb dep |
Maybe it's because of this commit:
voxpupuli/pypuppetdb@e722f75
seems it relates to this error:
[remote 10.131.0.161:58778] nodes = self._query('nodes', **kwargs) [remote 10.131.0.161:58778] TypeError: _query() got an unexpected keyword argument 'with_event_numbers'
any suggestions?
|
I completely rebuild the vm, with same puppetcode as before and now it works like a charm! |
Any chance there are some dependencies that are getting messed up on upgrade from older systems? I would love to see your pip list so I can try to figure out what's different in my setup vs your working one.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: basti-nis <[email protected]>
Sent: Friday, October 4, 2019 12:38:08 AM
To: voxpupuli/puppetboard <[email protected]>
Cc: Tom Parker <[email protected]>; Comment <[email protected]>
Subject: Re: [voxpupuli/puppetboard] Internal Server Error since v1.1.0 (#527)
I completely rebuild the vm, with same puppetcode as before and now it works like a charm!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#527?email_source=notifications&email_token=ABJYF5VO4A5WOSJVB3WRDATQM3QFBA5CNFSM4I2VVXW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAKTXDI#issuecomment-538262413>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABJYF5VN7NWIRROFGL53NCTQM3QFBANCNFSM4I2VVXWQ>.
|
in my experience, I had to rollback to v1.0.0 both, puppetboard and pypuppetdb to make it work again |
What do you exactly mean by "same puppetcode as before" downgrading pypuppetdb? |
We had a similar problem, but it was giving us the following stacktrace:
This was also solved by downgrading to |
Sorry for the delayed answer to you guys!! @othalla Version: "version": "5.0.1-rc0" I've just deleted the VM and rebuild it with my puppetcode. @tparkercbn |
deleted (unrelated issue) |
This is still broken. I followed the puppet forge instructions for setting up puppetdb, apache, and puppetboard from the provided modules and I've not been able to get it working after a week of weiling at it. I'd "roll my own" by editing the module but that totally defeats the purpose. What's the solution going forward? |
@mvilain which changes did/would you do to the module? Can you provide them as a patch? |
Today i've upgraded to v2.0.0! Now i've got an Internal Server Error again. I've investigated some more time into the error message:
Ok, seems there is a problem with python. Tried it with: Now we stumble in line 8, seems the package won't fix it. Next message:
Back to libapache2-mod-wsgi:
Shows:
I use the Puppet Module "puppet-puppetboard" in version 6.0.0 to build the VM with following code: $ssl_dir = $::settings::ssldir
$puppetboard_certname = $::fqdn
class { 'apache': }
class { 'apache::mod::wsgi': }
class { 'puppetboard':
groups => 'root',
enable_catalog => false,
manage_git => true,
manage_virtualenv => true,
default_environment => '*',
manage_selinux => false,
puppetdb_host => 'puppetdb-01.*******',
puppetdb_port => 8081,
puppetdb_key => "${ssl_dir}/private_keys/${puppetboard_certname}.pem",
puppetdb_ssl_verify => "${ssl_dir}/certs/ca.pem",
puppetdb_cert => "${ssl_dir}/certs/${puppetboard_certname}.pem",
}
class { 'puppetboard::apache::vhost':
vhost_name => 'puppetboard.*********',
port => 80,
custom_apache_parameters => {
serveraliases => ['puppetboard.***********']
}
} Any suggestions? |
Yeah, I saw this also. The Readme says the code only supports Python3, but it's a mishmash of python2 code (e.g. app.py imports from urllib.parse which is python3 and wsgi.app is calling execfile which is a python2 thing.
I tried using 2to3 on the code base and it still doesn't work. I'm going to let the maintainer of this package pursue this.
--
Michael Vilain
… On 03-Feb-2020, at 5:27 AM 🌞, basti-nis ***@***.***> wrote:
Today i've upgraded to v2.0.0!
Now i've got an Internal Server Error again.
After i rebuild my VM now with an Debian Buster image, the failure is still there.
I've investigated some more time into the error message:
[wsgi:error] [pid 456:tid 140332278073088] Traceback (most recent call last):
[wsgi:error] [pid 456:tid 140332278073088] File "/srv/puppetboard/puppetboard/wsgi.py", line 15, in <module>
[wsgi:error] [pid 456:tid 140332278073088] from puppetboard.app import app as application
[wsgi:error] [pid 456:tid 140332278073088] File "/srv/puppetboard/puppetboard/puppetboard/app.py", line 5, in <module>
[wsgi:error] [pid 456:tid 140332278073088] from urllib.parse import unquote, unquote_plus, quote_plus
[wsgi:error] [pid 456:tid 140332278073088] ImportError: No module named parse
Ok, seems there is a problem with python.
Maybe something with python2 and python3?
Tried it with:
apt-get install libapache2-mod-wsgi-py3 -y
Now we stumble in line 8, seems the package won't fix.
Next message:
[wsgi:error] [pid 1485:tid 140029063599872] Traceback (most recent call last):
[wsgi:error] [pid 1485:tid 140029063599872] File "/srv/puppetboard/puppetboard/wsgi.py", line 8, in <module>
[wsgi:error] [pid 1485:tid 140029063599872] execfile(activate_this, dict(__file__=activate_this))
[wsgi:error] [pid 1485:tid 140029063599872] NameError: name 'execfile' is not defined
Back to libapache2-mod-wsgi:
apt-get install libapache2-mod-wsgi -y
Any suggestions?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I'm using a new solution with docker which is working like a charm. Known issue:
You need following puppet modules:
Example-Puppet-Class: class my_puppetboard {
$git_repo_dir = '/srv/puppetboard'
$puppetboard_certname = $::fqdn
$puppetdb_host = '#######'
$ssl_dir = $::settings::ssldir
$ssl_crt = '/etc/ssl/certs/#######.crt'
$ssl_key = '/etc/ssl/private/#######.key'
$docker_port = 9080
$servername = 'puppetboard.#######.'
file { $git_repo_dir:
ensure => directory,
mode => '0755',
}
vcsrepo { $git_repo_dir:
ensure => present,
provider => git,
source => 'git://github.com/voxpupuli/puppetboard.git',
}
include 'docker'
docker::image { 'puppetboard':
docker_file => "${git_repo_dir}/Dockerfile",
docker_dir => $git_repo_dir,
}
docker::run { 'puppetboard':
image => 'puppetboard',
ports => ["${docker_port}:80"],
volumes => ["${ssl_dir}:${ssl_dir}"],
env => [
"PUPPETDB_HOST=${puppetdb_host}",
'PUPPETDB_PORT=8081',
"PUPPETDB_SSL_VERIFY=${ssl_dir}/certs/ca.pem",
"PUPPETDB_KEY=${ssl_dir}/private_keys/${puppetboard_certname}.pem",
"PUPPETDB_CERT=${ssl_dir}/certs/${puppetboard_certname}.pem",
"INVENTORY_FACTS='Hostname,fqdn, IP Address,ipaddress'",
'ENABLE_CATALOG=True',
"GRAPH_FACTS='architecture,puppetversion,osfamily'",
],
}
file { $ssl_crt:
ensure => 'present',
source => "puppet:///modules/${module_name}/ssl/#######..crt"
}
file { $ssl_key:
ensure => 'present',
source => "puppet:///modules/${module_name}/ssl/#######.key"
}
exec { 'create custom dhparam file':
command => '/usr/bin/openssl dhparam -dsaparam -out /etc/ssl/dhparams.pem 2048',
creates => '/etc/ssl/dhparams.pem',
}
class { 'nginx':
confd_purge => true,
server_purge => true,
manage_repo => false,
worker_processes => 4,
worker_connections => 8192,
worker_rlimit_nofile => 250000,
names_hash_bucket_size => 128,
names_hash_max_size => 1024,
client_body_buffer_size => '128k',
events_use => 'epoll',
multi_accept => 'on',
server_tokens => 'off',
gzip => 'on',
require => [
Exec['apt_update'],
Docker::Run['puppetboard'],
],
}
nginx::resource::upstream { 'docker-puppetboard':
ensure => present,
members => {
"puppetboard:${docker_port}" => {
server => 'localhost',
port => $docker_port,
fail_timeout => '10s',
},
},
}
nginx::resource::server { $servername:
http2 => 'on',
index_files => ['index.php'],
ssl => true,
# ssl_redirect => true,
ssl_cert => $ssl_crt,
ssl_key => $ssl_key,
ssl_dhparam => '/etc/ssl/dhparams.pem',
ssl_protocols => 'TLSv1 TLSv1.1 TLSv1.2',
proxy => 'http://docker-puppetboard',
proxy_buffering => 'off',
proxy_connect_timeout => '300',
proxy_read_timeout => '300',
proxy_http_version => '1.1',
}
} Hope i can help. Greetings |
Same here with puppetboard v2.0.0 and puppet/puppetboard v5.0.0:
I am using Centos 7 with: # python --version
Python 2.7.5
# python3 --version
Python 3.6.8 |
I think it has been fixed in v2.2.1 |
Python 3 is now required. This is still a problem for the puppet/puppetboard module which defaults to Python 2. For anyone that has ended up here due to the error:
and that is using the Puppet Forge module puppet/puppetboard (https://forge.puppet.com/puppet/puppetboard), then you need to add the following to your class declaration to enforce that Python 3 is used: class { 'puppetboard':
# use python3 when setting up the virtualenv for puppetboard
virtualenv_version => '3',
# specify other parameters here
} Note that the documentation for the module is incorrect, and the correct parameter to use above is virtualenv_version, not virtualenv_python. You'll also need to make sure you are using the WSGI Python 3 interpreter, like follows: class { 'apache': }
class { 'apache::mod::wsgi':
package_name => 'libapache2-mod-wsgi-py3',
mod_path => '/usr/lib/apache2/modules/mod_wsgi.so',
wsgi_application_group => 'puppet',
} *This info is current as of puppet/puppetboard module version 6.1.0 |
Hi,
since i upgraded to v1.1.0 i've got an Internal Server Error in "Overview" & "Nodes".
All other categories seems to work, so an connection problem shouldn't be.
Complete Error MSG:
Internal Server Error
This error usually occurs because:
Please have a look at the log output for further information.
Anybody else has that problem?
Any further information needed?
PuppetDB Version = 6.6.0
Puppetboard = 1.1.0
The text was updated successfully, but these errors were encountered: