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. need help troubleshooting a new netdisco2 install (Mike Beal)
2. Re: need help troubleshooting a new netdisco2 install
(Oliver Gorwits)
3. Re: need help troubleshooting a new netdisco2 install
(Jeremy Bresley)
4. Re: need help troubleshooting a new netdisco2 install
(Oliver Gorwits)
5. Re: need help troubleshooting a new netdisco2 install
(Daniel Tuecks)
--- Begin Message ---
I have tried this install numerous times and keep running into the same problem
that no one else seems to have. So I am consistently doing something wrong. Can
anyone see where I'm going wrong, or point me in the right direction to track
it down?
(Sorry for the long post, I want to include all the details.)
I can get everything installed, but I can't get past the web logon page. No
matter what I use for credentials, nothing will let me through. I have tried
manually editing the users table, adding a new user, blanking all the
passwords, but still can't get logged in.
New install of Ubuntu 12.04 LTS x64. Here are my steps...
Install the OS
Set static IP
Install all the updates
sudo apt-get install libdbd-pg-perl
sudo apt-get install libsnmp-info-perl
sudo useradd -m -p x -s /bin/bash netdisco
sudo apt-get install postgresql
sudo su - postgres
createuser -DRSP netdisco
createdb -O netdisco netdisco (that's a capital Oh, not a number zero)
exit (no longer working as postgres user)
sudo su - netdisco
curl -L http://cpanmin.us/ | perl - --notest --verbose --local-lib ~/perl5
App::Netdisco
mkdir ~/bin
ln -s ~/perl5/bin/{localenv,netdisco-*} ~/bin/
~/bin/netdisco-daemon status (should give status message and no errors)
mkdir ~/environments
cp ~/perl5/lib/perl5/auto/share/dist/App-Netdisco/environments/deployment.yml
~/environments
chmod +w ~/environments/deployment.yml
vim ~/environments/deployment.yml
name: 'netdisco'
host: '<ip address of server goes here>'
user: 'netdisco'
pass: '<netdisco password goes here>'
uncomment domain suffix '.example.com' and change it to '.<my local domain
goes here>'
uncomment no_auth: false and set it to true
exit
sudo vim /etc/postgresql/9.1/main/postgresql.conf
add: listen_addresses = '<ip of server goes here>'
sudo vim /etc/postgresql/9.1/main/pg_hba.conf
append: host all all <ip of server goes here>/32 trust
reboot
sudo su - netdisco
~/bin/netdisco-deploy
Is all the above in place? Y
Deploy or upgrade schema? Y
Download MAC prefixes? Y
Download MIB files? Y
At this point, the web page is working, services are starting on the server,
everything looks good, but I can't login.
You'll notice netdisco-deploy didn't ask me about granting admin access to the
web user. Even though this is a new install, I only get that prompt if I edit
line 100 of netdisco-deploy, and change the 'and' conditional to 'or'. I did
that, re-ran netdisco-deploy, and the guest user was created. I'm not very
adept at postgres, but I think that's where my problem is. Anyone have any
ideas on how to troubleshoot this?
Thanks
--- End Message ---
--- Begin Message ---
Hi Mike,
Sorry to hear about your issue. You're on the right track that it's
sort of related to netdisco-deploy.
We've been discussing the logic on the IRC channel and identified that
it's a bit... weak :-}
Put simply, you should either have:
* no_auth:true and *no* users in in the database, then run
netdisco-deploy
OR
* no_auth:false and users in the database (the case for upgrading from
Netdisco 1, usually)
If using the first scenario, once you have admin access to the web
site, you can manage users through the Admin Tasks menu and disable
no_auth.
What's really missing, we know, is a command-line way to manage users,
like Netdisco 1 has.
I hope that helps,
regards,
oliver.
On 2013-11-30 00:31, Mike Beal wrote:
I have tried this install numerous times and keep running into the
same problem that no one else seems to have. So I am consistently
doing something wrong. Can anyone see where I'm going wrong, or point
me in the right direction to track it down?
(Sorry for the long post, I want to include all the details.)
I can get everything installed, but I can't get past the web logon
page. No matter what I use for credentials, nothing will let me
through. I have tried manually editing the users table, adding a new
user, blanking all the passwords, but still can't get logged in.
New install of Ubuntu 12.04 LTS x64. Here are my steps…
Install the OS
Set static IP
Install all the updates
sudo apt-get install libdbd-pg-perl
sudo apt-get install libsnmp-info-perl
sudo useradd -m -p x -s /bin/bash netdisco
sudo apt-get install postgresql
sudo su - postgres
createuser -DRSP netdisco
createdb -O netdisco netdisco (that's a capital Oh, not a number
zero)
exit (no longer working as postgres user)
sudo su - netdisco
curl -L http://cpanmin.us/ | perl - --notest --verbose --local-lib
~/perl5 App::Netdisco
mkdir ~/bin
ln -s ~/perl5/bin/{localenv,netdisco-*} ~/bin/
~/bin/netdisco-daemon status (should give status message and no
errors)
mkdir ~/environments
cp
~/perl5/lib/perl5/auto/share/dist/App-Netdisco/environments/deployment.yml
~/environments
chmod +w ~/environments/deployment.yml
vim ~/environments/deployment.yml
name: 'netdisco'
host: '<ip address of server goes here>'
user: 'netdisco'
pass: '<netdisco password goes here>'
uncomment domain suffix '.example.com' and change it to '.<my local
domain goes here>'
uncomment no_auth: false and set it to true
exit
sudo vim /etc/postgresql/9.1/main/postgresql.conf
add: listen_addresses = '<ip of server goes here>'
sudo vim /etc/postgresql/9.1/main/pg_hba.conf
append: host all all <ip of server goes here>/32 trust
reboot
sudo su - netdisco
~/bin/netdisco-deploy
Is all the above in place? Y
Deploy or upgrade schema? Y
Download MAC prefixes? Y
Download MIB files? Y
At this point, the web page is working, services are starting on the
server, everything looks good, but I can't login.
You'll notice netdisco-deploy didn't ask me about granting admin
access to the web user. Even though this is a new install, I only get
that prompt if I edit line 100 of netdisco-deploy, and change the
'and' conditional to 'or'. I did that, re-ran netdisco-deploy, and
the
guest user was created. I'm not very adept at postgres, but I think
that's where my problem is. Anyone have any ideas on how to
troubleshoot this?
Thanks
--- End Message ---
--- Begin Message ---
On 11/30/2013 2:59 AM, Oliver Gorwits wrote:
Hi Mike,
What's really missing, we know, is a command-line way to manage users,
like Netdisco 1 has.
Until a CLI tool or easy way to import users through the GUI is created,
would it be possible to add instructions on how to manually add users to
the DB into the documentation? At least a workaround until a tool can
be written.
Jeremy "TheBrez" Bresley
--- End Message ---
--- Begin Message ---
> On 30 Nov 2013, at 16:03, Jeremy Bresley <[email protected]> wrote:
>
>> On 11/30/2013 2:59 AM, Oliver Gorwits wrote:
>> Hi Mike,
>>
>> What's really missing, we know, is a command-line way to manage users,
>> like Netdisco 1 has.
> Until a CLI tool or easy way to import users through the GUI is created,
> would it be possible to add instructions on how to manually add users to
> the DB into the documentation? At least a workaround until a tool can
> be written.
The SQL is mentioned here:
https://metacpan.org/pod/release/OLIVER/App-Netdisco-2.019003/lib/App/Netdisco/Manual/Configuration.pod#no_auth
I'll make a note to add some docs in the next release. Thanks for the request.
Regards
Oliver
>
> Jeremy "TheBrez" Bresley
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
--- Begin Message ---
... and if you'd like to add a password to that user, remember to store
your password as md5.
update users set password = md5('mypassword') where username = 'myusername';
Daniel
2013/11/30 Oliver Gorwits <[email protected]>
>
>
> > On 30 Nov 2013, at 16:03, Jeremy Bresley <[email protected]> wrote:
> >
> >> On 11/30/2013 2:59 AM, Oliver Gorwits wrote:
> >> Hi Mike,
> >>
> >> What's really missing, we know, is a command-line way to manage users,
> >> like Netdisco 1 has.
> > Until a CLI tool or easy way to import users through the GUI is created,
> > would it be possible to add instructions on how to manually add users to
> > the DB into the documentation? At least a workaround until a tool can
> > be written.
>
> The SQL is mentioned here:
>
>
> https://metacpan.org/pod/release/OLIVER/App-Netdisco-2.019003/lib/App/Netdisco/Manual/Configuration.pod#no_auth
>
> I'll make a note to add some docs in the next release. Thanks for the
> request.
>
> Regards
> Oliver
>
>
>
> >
> > Jeremy "TheBrez" Bresley
> >
> >
> ------------------------------------------------------------------------------
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into
> your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Netdisco mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/netdisco-users
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/netdisco-users
>
--- End Message ---
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users