Hi Jimm,

Thank you for your help.  Following is the content of my puppet.conf, do 
you suggest a specific action on my behalf to solve this problem?

C:\Windows\System32>puppet config print

agent_catalog_run_lockfile = 
C:/ProgramData/PuppetLabs/puppet/cache/state/agent_catalog_run.lock
agent_disabled_lockfile = 
C:/ProgramData/PuppetLabs/puppet/cache/state/agent_disabled.lock
allow_duplicate_certs = false
always_retry_plugins = true
autoflush = true
autosign = C:/ProgramData/PuppetLabs/puppet/etc/autosign.conf
basemodulepath = C:/ProgramData/PuppetLabs/code/modules;C:/Program 
Files/Puppet Labs/Puppet/puppet/modules
binder_config =
bucketdir = C:/ProgramData/PuppetLabs/puppet/cache/bucket
ca_fingerprint =
ca_name = Puppet CA: laptop-j2mk58hv
ca_port = 8140
ca_server = puppet
ca_ttl = 157680000
cacert = C:/Windows/System32/ca_crt.pem
cacrl = C:/Windows/System32/ca_crl.pem
cadir = C:/Windows/System32
cakey = C:/Windows/System32/ca_key.pem
capub = C:/Windows/System32/ca_pub.pem
catalog_cache_terminus =
catalog_terminus = compiler
cert_inventory = C:/Windows/System32/inventory.txt
certdir = C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs
certificate_revocation = chain
certname = laptop-j2mk58hv
ciphers = 
ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256
classfile = C:/ProgramData/PuppetLabs/puppet/cache/state/classes.txt
client_datadir = C:/ProgramData/PuppetLabs/puppet/cache/client_data
clientbucketdir = C:/ProgramData/PuppetLabs/puppet/cache/clientbucket
clientyamldir = C:/ProgramData/PuppetLabs/puppet/cache/client_yaml
code =
codedir = C:/ProgramData/PuppetLabs/code
color = ansi
confdir = C:/ProgramData/PuppetLabs/puppet/etc
config = C:/ProgramData/PuppetLabs/puppet/etc/puppet.conf
config_file_name = puppet.conf
config_version =
configprint =
crl_refresh_interval =
csr_attributes = C:/ProgramData/PuppetLabs/puppet/etc/csr_attributes.yaml
csrdir = C:/Windows/System32/requests
daemonize = false
data_binding_terminus = hiera
default_file_terminus = rest
default_manifest = ./manifests
default_schedules = true
deviceconfdir = C:/ProgramData/PuppetLabs/puppet/etc/devices
deviceconfig = C:/ProgramData/PuppetLabs/puppet/etc/device.conf
devicedir = C:/ProgramData/PuppetLabs/puppet/cache/devices
diff =
diff_args = -u
digest_algorithm = sha256
disable_i18n = true
disable_per_environment_manifest = false
disable_warnings = []
dns_alt_names =
document_all = false
environment = production
environment_data_provider =
environment_timeout = 0
environmentpath = C:/ProgramData/PuppetLabs/code/environments
evaltrace = false
external_nodes = none
fact_name_length_soft_limit = 2560
fact_value_length_soft_limit = 4096
factpath = 
C:/ProgramData/PuppetLabs/puppet/cache/lib/facter;C:/ProgramData/PuppetLabs/puppet/cache/facts
facts_terminus = facter
fileserverconfig = C:/ProgramData/PuppetLabs/puppet/etc/fileserver.conf
filetimeout = 15
forge_authorization =
freeze_main = false
genconfig = false
genmanifest = false
graph = false
graphdir = C:/ProgramData/PuppetLabs/puppet/cache/state/graphs
group = puppet
hiera_config = C:/ProgramData/PuppetLabs/puppet/etc/hiera.yaml
hostcert = 
C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/laptop-j2mk58hv.pem
hostcrl = C:/ProgramData/PuppetLabs/puppet/etc/ssl/crl.pem
hostcsr = 
C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests/laptop-j2mk58hv.pem
hostprivkey = 
C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/laptop-j2mk58hv.pem
hostpubkey = 
C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/laptop-j2mk58hv.pem
http_connect_timeout = 120
http_debug = false
http_extra_headers = []
http_keepalive_timeout = 4
http_proxy_host = none
http_proxy_password = none
http_proxy_port = 3128
http_proxy_user = none
http_read_timeout = 600
http_user_agent = Puppet/7.20.0 Ruby/2.7.6-p219 (x64-mingw32)
ignore_plugin_errors = false
ignoremissingtypes = false
ignoreschedules = false
key_type = rsa
keylength = 4096
lastrunfile = C:/ProgramData/PuppetLabs/puppet/public/last_run_summary.yaml
lastrunreport = 
C:/ProgramData/PuppetLabs/puppet/cache/state/last_run_report.yaml
ldapattrs = all
ldapbase =
ldapclassattrs = puppetclass
ldapparentattr = parentnode
ldappassword =
ldapport = 389
ldapserver = ldap
ldapssl = false
ldapstackedattrs = puppetvar
ldapstring = (&(objectclass=puppetClient)(cn=%s))
ldaptls = false
ldapuser =
libdir = C:/ProgramData/PuppetLabs/puppet/cache/lib
localcacert = C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem
localedest = C:/ProgramData/PuppetLabs/puppet/cache/locales
localesource = puppet:///locales
location_trusted = false
log_level = notice
logdest =
logdir = C:/ProgramData/PuppetLabs/puppet/var/log
manage_internal_file_permissions = false
manifest = C:/ProgramData/PuppetLabs/code/environments/production/manifests
masterport = 8140
max_deprecations = 10
max_errors = 10
max_warnings = 10
maximum_uid = 4294967290
maxwaitforcert = unlimited
maxwaitforlock = 60
merge_dependency_warnings = false
mkusers = false
module_groups =
module_repository = https://forgeapi.puppet.com
module_working_dir = C:/Users/steph/AppData/Local/Temp
modulepath = 
C:/ProgramData/PuppetLabs/code/environments/production/modules;C:/ProgramData/PuppetLabs/code/modules;C:/Program
 
Files/Puppet Labs/Puppet/puppet/modules
name = config
named_curve = prime256v1
no_proxy = localhost, 127.0.0.1
node_cache_terminus =
node_name_fact =
node_name_value = laptop-j2mk58hv
node_terminus = plain
noop = false
number_of_facts_soft_limit = 2048
onetime = false
passfile = C:/ProgramData/PuppetLabs/puppet/etc/ssl/private/password
path = none
payload_soft_limit = 16777216
pidfile = C:/ProgramData/PuppetLabs/puppet/var/run/main.pid
plugindest = C:/ProgramData/PuppetLabs/puppet/cache/lib
pluginfactdest = C:/ProgramData/PuppetLabs/puppet/cache/facts.d
pluginfactsource = puppet:///pluginfacts
pluginsignore = .svn CVS .git .hg
pluginsource = puppet:///plugins
pluginsync = true
postrun_command =
preferred_serialization_format = json
preprocess_deferred = true
prerun_command =
preview_outputdir = C:/ProgramData/PuppetLabs/puppet/cache/preview
priority =
privatedir = C:/ProgramData/PuppetLabs/puppet/etc/ssl/private
privatekeydir = C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys
profile = false
publicdir = C:/ProgramData/PuppetLabs/puppet/public
publickeydir = C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys
puppet_trace = false
puppetdlog = C:/ProgramData/PuppetLabs/puppet/var/log/puppetd.log
report = true
report_include_system_store = false
report_port = 8140
report_server = puppet
reportdir = C:/ProgramData/PuppetLabs/puppet/cache/reports
reports = store
reporturl = http://localhost:3000/reports/upload
requestdir = C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests
resourcefile = C:/ProgramData/PuppetLabs/puppet/cache/state/resources.txt
resubmit_facts = false
rich_data = true
route_file = C:/ProgramData/PuppetLabs/puppet/etc/routes.yaml
rundir = C:/ProgramData/PuppetLabs/puppet/var/run
runinterval = 1800
runtimeout = 3600
serial = C:/Windows/System32/serial
server = puppet
server_datadir = C:/ProgramData/PuppetLabs/puppet/cache/server_data
server_list =
serverport = 8140
settings_catalog = true
show_diff = false
signeddir = C:/Windows/System32/signed
skip_tags =
sourceaddress =
splay = false
splaylimit = 1800
srv_domain =
ssl_client_header = HTTP_X_CLIENT_DN
ssl_client_verify_header = HTTP_X_CLIENT_VERIFY
ssl_lockfile = C:/ProgramData/PuppetLabs/puppet/etc/ssl/ssl.lock
ssl_trust_store =
ssldir = C:/ProgramData/PuppetLabs/puppet/etc/ssl
statedir = C:/ProgramData/PuppetLabs/puppet/cache/state
statefile = C:/ProgramData/PuppetLabs/puppet/cache/state/state.yaml
statettl = 2764800
static_catalogs = true
storeconfigs = false
storeconfigs_backend = puppetdb
strict = warning
strict_environment_mode = false
strict_variables = false
summarize = false
supported_checksum_types = ["sha256", "sha384", "sha512", "sha224", "md5"]
syslogfacility = daemon
tags =
tasks = false
top_level_facts_soft_limit = 512
trace = false
transactionstorefile = 
C:/ProgramData/PuppetLabs/puppet/cache/state/transactionstore.yaml
trusted_external_command =
trusted_oid_mapping_file = 
C:/ProgramData/PuppetLabs/puppet/etc/custom_trusted_oid_mapping.yaml
use_cached_catalog = false
use_last_environment = true
use_srv_records = false
usecacheonfailure = true
user = puppet
vardir = C:/ProgramData/PuppetLabs/puppet/cache
vendormoduledir = C:\Program Files\Puppet Labs\Puppet\puppet\vendor_modules
versioned_environment_dirs = false
waitforcert = 120
waitforlock = 0
write_catalog_summary = true
yamldir = C:/ProgramData/PuppetLabs/puppet/cache/yaml

Thank you in advance for your time,

Best,
Stephanos


On Tuesday, November 1, 2022 at 6:24:08 PM UTC+2 jimm...@gmail.com wrote:

> What does the contents of your puppet.conf look like on the host. It 
> appears that the agent is trying to reach the hostname puppet but cannot 
> resolve the name in DNS or on the local host file. You should have entries 
> in the puppet.conf that looks something like this
>
> [main]
> server=myserver.mydomain.com
>
> [agent]
> certname=mynode.mydomain.com
>
> On Mon, Oct 31, 2022, 12:05 PM Stephanos Economides <noveltym...@gmail.com> 
> wrote:
>
>> Hi Puppet Users,
>>
>> I am a new user of the puppet software and I ask your help to tackle the 
>> following problem:
>>
>> I have installed the puppet agent 7.20.0 as a standalone node that won't 
>> connect to a master, on my notebook (Windows 11 Home).  
>>
>> I tried to run the puppet agent and I received an error (screenshot: 
>> puppet_agent_error_1).
>>
>> Then  I used the "puppet agent --test" command from cmd (run it as 
>> administrator) and  I received an error (screenshot: puppet_agent_error_2).
>>
>> Then I used the "puppet resource service puppetserver ensure=running" 
>> command from cmd (run it as administrator) and I received the error "Error: 
>> Will not start disabled service puppetserver without managing enable. 
>> Specify 'enable => false' to override.".  I tried to override by using the 
>> command "puppet resource service puppetserver enable=false" and then I used 
>> again the "puppet resource service puppetserver ensure=running" command but 
>> in vain (screenshot: puppet_agent_error_3).
>>
>> Then I created an inbound rule on Windows firewall for port 8140 but 
>> again I received the same error "Error: Connection to 
>> https://puppet:8140/puppet-ca/v1 failed, trying next route: Request to 
>> https://puppet:8140/puppet-ca/v1 failed after 2.698 seconds: Failed to 
>> open TCP connection to puppet:8140 (getaddrinfo: No such host is known. )".
>>
>> Lastly, I deactivated temporarily my Avast software but again connection 
>> to puppet:8140 failed.
>>
>> Could you please help me to resolve this issue?
>>
>> Thank you in advance for your time.
>>
>> Best regards,
>>
>> Stephanos
>>
>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to puppet-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/4918e75e-85ed-48cc-b650-617f0280c505n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/puppet-users/4918e75e-85ed-48cc-b650-617f0280c505n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/2e2b669e-8a6b-485d-b735-a48253d37389n%40googlegroups.com.

Reply via email to