Welcome, Guest. Please login or register.

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Installation / Re: nedi.pl script fails @ mysal login but my mysql login works.
« Last post by rickli on October 07, 2017, 10:22:07 PM »
I meant become root first (sudo) and then try again. Should work, even without DB password...
12
Installation / Re: nedi.pl script fails @ mysal login but my mysql login works.
« Last post by jbruyet on October 06, 2017, 08:48:20 PM »
I tried that too. No joy:

Code: [Select]
jobee@NeDi:/opt/nedi$ ./nedi.pl -i

Initialize NeDi DB!!!
------------------------------------------------------------------------
mysql admin user: root
mysql admin pass:
DBI connect('dbname=mysql;host=localhost','root',...) failed: Access denied for user 'root'@'localhost' at ./inc/libdb.pm line 37.
jobee@NeDi:/opt/nedi$

This is Ubuntu 16.04.3 LTS. Should I try it with a different version of Ubuntu? Or a different distribution?

Thanks,

Joe B
13
Installation / Re: nedi.pl script fails @ mysal login but my mysql login works.
« Last post by rickli on October 06, 2017, 07:49:14 PM »
More recent Debian/Ubuntu systems changed how root access behaves. Try initialize as root. I bet you won't even need DB password then...

14
Installation / Re: Ubuntu installation script references wrong files?
« Last post by rickli on October 06, 2017, 07:46:46 PM »
Oops, typo. It should be php-ldap, but it's only needed for using AD...
15
Installation / nedi.pl script fails @ mysal login but my mysql login works.
« Last post by jbruyet on October 06, 2017, 07:01:15 PM »
Hey all, when I run the nedi.pl script my mysql login fails:

Code: [Select]
jobee@NeDi:/opt/nedi$ ./nedi.pl -i

Initialize NeDi DB!!!
------------------------------------------------------------------------
mysql admin user: root
mysql admin pass: Pass123
DBI connect('dbname=mysql;host=localhost','root',...) failed: Access denied for user 'root'@'localhost' at ./inc/libdb.pm line 37.
jobee@NeDi:/opt/nedi$

I can log in to mysql using the same credentials, create a new user, grant that user all privileges and flush privileges. But even using THAT user for the nedi.pl script fails although the error is a little different:

Code: [Select]
Initialize NeDi DB!!!
------------------------------------------------------------------------
mysql admin user: jobee
mysql admin pass:
DB Version      : 10.0.31-MariaDB-0ubuntu0.16.04.2
----------------------------------------------------------------------
Old DB 'nedi' dropped!
Creating 'nedi' for nedi@localhost:
DBD::mysql::db do failed: Access denied for user 'jobee'@'localhost' to database 'nedi' at ./inc/libdb.pm line 135, <STDIN> line 2.
DBD::mysql::db do failed: Access denied for user 'jobee'@'localhost' to database 'nedi' at ./inc/libdb.pm line 135, <STDIN> line 2.
jobee@NeDi:/opt/nedi$ ./nedi.pl -i

Any ideas, suggestions or recommendations on what is going on here? I've wiped and reinstalled three times now thinking maybe I missed a step somewhere but not that I can tell. I'm using the instructions on this page https://help.ubuntu.com/community/NediHowTo. Is there a step missing here that will fix my problem?

Thanks,

Joe B


16
Installation / Re: Ubuntu installation script references wrong files?
« Last post by jbruyet on October 06, 2017, 06:44:45 PM »
Yep, that last file isn't php-dap, it's php.dap. All of these dependencies install correctly now.

Thanks,

Joe B
17
Installation / Re: Ubuntu installation script references wrong files?
« Last post by jbruyet on October 05, 2017, 09:56:34 PM »
I erased that VM and started over (I love my VMware). That last file is giving me this error:

Code: [Select]
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-dap
jobee@NeDi:~$

I was going to search for it but my fingers tried to install it on their own. Ubuntu gave me this message:

Code: [Select]
jobee@NeDi:~$ sudo apt-get install php.dap
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'phpldapadmin' for regex 'php.dap'
The following additional packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php libapache2-mod-php7.0 libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 libxslt1.1 php-common php-ldap php-xml php7.0-cli
  php7.0-common php7.0-json php7.0-ldap php7.0-opcache php7.0-readline php7.0-xml ssl-cert
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear openssl-blacklist
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php libapache2-mod-php7.0 libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0 libxslt1.1 php-common php-ldap php-xml php7.0-cli
  php7.0-common php7.0-json php7.0-ldap php7.0-opcache php7.0-readline php7.0-xml phpldapadmin ssl-cert
0 upgraded, 24 newly installed, 0 to remove and 3 not upgraded.
Need to get 6,046 kB of archives.
After this operation, 26.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Will installing this give me what I need? I see ldap admin in there so I thought I should ask first.

Thanks,

Joe B
18
Installation / Re: Ubuntu installation script references wrong files?
« Last post by rickli on October 05, 2017, 06:53:30 PM »
I admit, the install instruction is getting dated. I'll update this in the coming days (as 1.6 approaches the public release). I've swtiched to nginx and php-fpm as it appears to be the leaner solution these days. Here's what I used on my Debian system:

apt install libdbd-mysql-perl libnet-snmp-perl libnet-telnet-perl libsocket6-perl librrds-perl libalgorithm-diff-perl libcrypt-rijndael-perl libcrypt-hcesha-perl libcrypt-des-perl libdigest-hmac-perl libio-pty-perl libwww-perl libnet-ntp-perl libnet-dns-perl perl-doc mariadb-client mariadb-server  snmp rrdtool nginx openssl php-fpm php-mysql php-snmp php-gd php-mcrypt php-dap
19
Installation / Re: Initialize NeDi database failed
« Last post by jbruyet on October 03, 2017, 09:24:13 PM »
I found and installed libapache2-mod-log-sql-dbi but still no joy -- when I run nedi.pl -i I get the same error.

Thanks,

Joe B
20
Installation / Initialize NeDi database failed
« Last post by jbruyet on October 03, 2017, 08:29:23 PM »
I'm following the installation instructions and made it to the database initialization. I ran the nedi.pl -i command and here's the error:

Code: [Select]
Can't locate DBI.pm in @INC (you may need to install the DBI module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at ./inc/libdb.pm line 17.
BEGIN failed--compilation aborted at ./inc/libdb.pm line 17.
Compilation failed in require at ./nedi.pl line 69.

I posted an earlier problem regarding the available versions of PHP in Ubuntu -- the installation instructions say to use php5 but Ubuntu only has php and php7.0. I decided to go ahead with this install in the hope that by using the 7.0 PHP and the 7.0 PHP mysql they would work with each other. Is this error related to that issue or is this something else?

Thanks,

Joe B
Pages: 1 [2] 3 4 ... 10