Send netdisco-users mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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

   1. Re: adding users ([email protected])
   2. Re: adding users (David Weise)
   3. Re: adding users ([email protected])
   4. Re: adding users (Oliver Gorwits)
   5. chicken and the egg with adding users ([email protected])
   6. Re: chicken and the egg with adding users (Joseph Bernard)
--- Begin Message ---
This never happened -- I've blown away the installation and started over twice.

I even blew away postgres and compiled it from source anew.  I think 
netdisco-deploy wants the admin account in postgres BEFORE I run 
netdisco-deploy?

-----Original Message-----
From: Oliver Gorwits [mailto:[email protected]] 
Sent: Monday, April 07, 2014 4:23 AM
To: [email protected]
Subject: Re: [Netdisco] adding users

Hi Peter,

On 2014-04-06 20:36, [email protected] wrote:
> Is this supposed to occur in the web admin interface (which I can't 
> get to because I can't seem to get past the opening page with
> 'guest')
> or at a commandline in postgres?

For Netdisco 2, when you run the netdisco-deploy script it should ask to set up 
an admin account, if an account with admin privileges doesn't already exist in 
the database.

You can log in with an admin account in the web interface, then go to Admin -> 
User Management.

I hope this helps,

regards,
oliver.



--- End Message ---
--- Begin Message ---
hi,
 Yes it does.

On 4/7/2014 5:12 PM, [email protected] wrote:
This never happened -- I've blown away the installation and started over twice.

I even blew away postgres and compiled it from source anew.  I think 
netdisco-deploy wants the admin account in postgres BEFORE I run 
netdisco-deploy?

-----Original Message-----
From: Oliver Gorwits [mailto:[email protected]]
Sent: Monday, April 07, 2014 4:23 AM
To: [email protected]
Subject: Re: [Netdisco] adding users

Hi Peter,

On 2014-04-06 20:36, [email protected] wrote:
Is this supposed to occur in the web admin interface (which I can't
get to because I can't seem to get past the opening page with
'guest')
or at a commandline in postgres?
For Netdisco 2, when you run the netdisco-deploy script it should ask to set up 
an admin account, if an account with admin privileges doesn't already exist in 
the database.

You can log in with an admin account in the web interface, then go to Admin -> 
User Management.

I hope this helps,

regards,
oliver.


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users


<<attachment: dweise.vcf>>


--- End Message ---
--- Begin Message ---
Thanks -- 

When I think of apps I've deployed before, I needed to a) stop the daemons on 
the web services and/or back-end before adding an account as central as 
'admin'; and b) rerun whatever set-up script corresponds to netdisco-deploy 
(ie, whatever sets variables and populates the database).

Are those steps de rigueur in this case?

Alternately, is there a script or procedure that resets the clock, so to speak?

-----Original Message-----
From: David Weise [mailto:[email protected]] 
Sent: Monday, April 07, 2014 5:18 PM
To: Burris, Peter H.; [email protected]; [email protected]
Subject: Re: [Netdisco] adding users

hi,
  Yes it does.

On 4/7/2014 5:12 PM, [email protected] wrote:
> This never happened -- I've blown away the installation and started over 
> twice.
>
> I even blew away postgres and compiled it from source anew.  I think 
> netdisco-deploy wants the admin account in postgres BEFORE I run 
> netdisco-deploy?
>
> -----Original Message-----
> From: Oliver Gorwits [mailto:[email protected]]
> Sent: Monday, April 07, 2014 4:23 AM
> To: [email protected]
> Subject: Re: [Netdisco] adding users
>
> Hi Peter,
>
> On 2014-04-06 20:36, [email protected] wrote:
>> Is this supposed to occur in the web admin interface (which I can't 
>> get to because I can't seem to get past the opening page with
>> 'guest')
>> or at a commandline in postgres?
> For Netdisco 2, when you run the netdisco-deploy script it should ask to set 
> up an admin account, if an account with admin privileges doesn't already 
> exist in the database.
>
> You can log in with an admin account in the web interface, then go to Admin 
> -> User Management.
>
> I hope this helps,
>
> regards,
> oliver.
>
>
> ----------------------------------------------------------------------
> --------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration Continuously 
> Automate Build, Test & Deployment Start a new project now. Try Jenkins 
> in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/netdisco-users
>




--- End Message ---
--- Begin Message ---
Hi Peter,

On 2014-04-07 22:12, [email protected] wrote:
This never happened -- I've blown away the installation and started
over twice.

I even blew away postgres and compiled it from source anew.  I think
netdisco-deploy wants the admin account in postgres BEFORE I run
netdisco-deploy?


You should not need to recompile postgres - there is a dropdb CLI command shipped with postgres, or the "DROP DATABASE ..." SQL, if all you want to do is remove the Netdisco database (i.e. the opposite of the createdb command in the installation instructions).

Yes, postgres needs a user for the Netdisco application. That's done early in the installation process with the createuser CLI command. The credentials for this user should be written by you into the deployment.yml file _before_ running netdisco-deploy.

Then for humans to actually log in to the Netdisco web interface you need a user in the application. The netdisco-deploy script will prompt to create such a user with admin rights if one does not already exist. Admin rights are not essential in the web interface, but one user should have them to control some aspects (e.g. create other users).

I hope that makes sense, but if not, please let us know.

regards,
oliver.



--- End Message ---
--- Begin Message ---
When I first installed netdisco v2, things went mostly smoothly - I build 
postgres from scratch, then configured my .curlrc file to allow proxy access, 
and ran the script to pull down App::Netdisco.  I linked the files over to 
~Netdisco/bin and ~netdisco/environments and edited deployment.yaml.  Finally, 
I ran netdisco-deploy and that populated the postgres instance I set up almost 
perfectly.  Running netdisco-web and netdisco-daemon provided a web interface I 
could view as long as my browser had the proxy disabled.  But I couldn't log 
in, and changing the authentication flag in deployment.yaml allowed guest to 
log out, but I couldn't create an admin account.

At no point in running the netdisco-deploy was I asked to create the admin 
account.

Now, having blown away my source compiled version of postgresql 9.3.2 three 
times, I installed redhat's rpm of postgresql 8.4 and fired it up.

No change.  Both my source compiled and redhat-distributed version yield the 
same error when I run the netdisco-deploy script:

Would you like to deploy or upgrade your 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/Dancer/Plugin/DBIC.pm line 62
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI 
connect('dbname=netdisco','netdisco',...) failed: FATAL:  Ident authentication 
failed for user "netdisco" at 
/home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1483. at 
/home/netdisco/perl5/bin/netdisco-db-deploy line 63
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/Dancer/Plugin/DBIC.pm line 62
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI 
connect('dbname=netdisco','netdisco',...) failed: FATAL:  Ident authentication 
failed for user "netdisco" at 
/home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1483. at 
/home/netdisco/bin/netdisco-deploy line 126

I'm frustrated - to go from nearly working to not even remotely close bewilders 
me, and I am two days behind schedule. I need help.

Peter H Burris
Network Services Division
International Trade Commission


--- End Message ---
--- Begin Message ---
Peter,

Have you tried adding the line explained here to your pg_hba.conf file?

http://search.cpan.org/~oliver/App-Netdisco-2.025000_001/lib/App/Netdisco/Manual/Deployment.pod#Enable_MD5_authentication_to_PostgreSQL

Thanks,
Joseph B.

On Apr 8, 2014, at 5:35 PM, 
<[email protected]<mailto:[email protected]>>
 wrote:

When I first installed netdisco v2, things went mostly smoothly – I build 
postgres from scratch, then configured my .curlrc file to allow proxy access, 
and ran the script to pull down App::Netdisco.  I linked the files over to 
~Netdisco/bin and ~netdisco/environments and edited deployment.yaml.  Finally, 
I ran netdisco-deploy and that populated the postgres instance I set up almost 
perfectly.  Running netdisco-web and netdisco-daemon provided a web interface I 
could view as long as my browser had the proxy disabled.  But I couldn’t log 
in, and changing the authentication flag in deployment.yaml allowed guest to 
log out, but I couldn’t create an admin account.

At no point in running the netdisco-deploy was I asked to create the admin 
account.

Now, having blown away my source compiled version of postgresql 9.3.2 three 
times, I installed redhat’s rpm of postgresql 8.4 and fired it up.

No change.  Both my source compiled and redhat-distributed version yield the 
same error when I run the netdisco-deploy script:

Would you like to deploy or upgrade your 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/Dancer/Plugin/DBIC.pm line 62
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI 
connect('dbname=netdisco','netdisco',...) failed: FATAL:  Ident authentication 
failed for user "netdisco" at 
/home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1483. at 
/home/netdisco/perl5/bin/netdisco-db-deploy line 63
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/Dancer/Plugin/DBIC.pm line 62
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI 
connect('dbname=netdisco','netdisco',...) failed: FATAL:  Ident authentication 
failed for user "netdisco" at 
/home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1483. at 
/home/netdisco/bin/netdisco-deploy line 126

I’m frustrated – to go from nearly working to not even remotely close bewilders 
me, and I am two days behind schedule. I need help.

Peter H Burris
Network Services Division
International Trade Commission

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_______________________________________________
Netdisco mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/netdisco-users


--- End Message ---
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to