Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. netdisco-deploy skipping environments/deployment.yml
      (Eric W. Bates)
--- Begin Message ---
I just successfully upgraded to App::Netdisco 2.47.4

Our firewall was blocking access to the oui.txt; so I'm re-running netdisco-deploy to pull that and now netdisco-deploy fails with:

...
You will be asked to confirm all changes to your system.

So, is all of the above in place? [y/N]: y

Would you like to deploy the database schema? [y/N]: y
DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently unversioned. Please call upgrade on your schema to sync the DB. at /home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121 DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=netdisco','changeme',...) failed: FATAL: Peer authentication failed for user "changeme" at /home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1639. at /home/netdisco/perl5/bin/netdisco-db-deploy line 110 at /home/netdisco/perl5/bin/netdisco-db-deploy line 110
DB schema update complete.
DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently unversioned. Please call upgrade on your schema to sync the DB. at /home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121 DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=netdisco','changeme',...) failed: FATAL: Peer authentication failed for user "changeme" at /home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1639. at /home/netdisco/perl5/lib/perl5/App/Netdisco/Util/Statistics.pm line 37
Updating statistics... netdisco@netdisco:~$


At a guess, it's using the default credentials "changeme" instead of the correct credentials listed in environments/deployment.yml

I'm running the script as user "netdisco" and the permissions to deployment.yml look fine.

netdisco-do has no trouble connecting:

netdisco@netdisco:~$ ./bin/netdisco-do psql
[105555] 2021-02-24 13:19:06  info App::Netdisco version 2.047004 loaded.
[105555] 2021-02-24 13:19:06 info psql: started at Wed Feb 24 08:19:06 2021
psql (12.6 (Ubuntu 12.6-0ubuntu0.20.04.1), server 9.5.19)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.

netdisco=>


--
Clark 159a, MS 46
508/289-3112


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to