Menu

#24 Failed login : username or password is invalid

v1.0 (example)
open
nobody
None
5
2015-08-27
2015-01-13
Gerard
No

Hello

First, sorry my english is bad (I'm french :-))

I installed last version of webacula following some tutorials on Centos 6.5. I have bacula 7.
When I try to log in webacula it displays the "Username or password is incorrect". I changed the root password in the webacula_users mysql table. But still the same error message.
I don't know where I can search to find where is the problem. No error in httpd error_log, no php error displayed (diplay_erros = on in php.ini).
Any idea ?

Thanks

Gerard

Related

Support Requests: #24

Discussion

  • Rude

    Rude - 2015-01-15

    I`ve got the same issue. I'm using webacula 7.0.0 with ubuntu 14.04 with latest stable bacula. No errors, nothing.

     
  • JM

    JM - 2015-02-25

    Any updates on this? Does anyone have a fix?

    Thanks

     
  • redowk

    redowk - 2015-08-26

    same problem with 7.0.0 on centos 7 x64

     
    • Rude

      Rude - 2015-08-26

      I'm using it on Centos7 with bacula 7 and it's work like a charm, it's a
      bit trikyer to make it work when you get to the login page. If it does not
      work out-of-the-box you need to recover your passwd by email. If you want

      On Wed, Aug 26, 2015 at 1:37 AM, redowk redowk@users.sf.net wrote:

      same problem with 7.0.0 on centos 7 x64

      Status: open
      Group: v1.0 (example)
      Created: Tue Jan 13, 2015 03:04 PM UTC by Gerard
      Last Updated: Wed Feb 25, 2015 01:04 PM UTC
      Owner: nobody

      Hello

      First, sorry my english is bad (I'm french :-))

      I installed last version of webacula following some tutorials on Centos
      6.5. I have bacula 7.
      When I try to log in webacula it displays the "Username or password is
      incorrect". I changed the root password in the webacula_users mysql table.
      But still the same error message.
      I don't know where I can search to find where is the problem. No error in
      httpd error_log, no php error displayed (diplay_erros = on in php.ini).
      Any idea ?

      Thanks

      Gerard

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/webacula/support-requests/24/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #24


      Last edit: Rude 2015-08-26
  • Rude

    Rude - 2015-08-26

    for some reason root passwd does not work out of the box, so we need to recover it by email.

    mysql -u root -p
    use bacula;
    update webacula_users set email=’your email here';
    

    It might be better to use mailbox like gmail because it does not blok emails from fake sender like root@localhost or send it to root@localhost :)

     
    • redowk

      redowk - 2015-08-26

      thanks!
      I tried that but I get an error "unable to send email" when i try to recover password.
      Today I'll go back a snapshot and try following your tutorial to install webacula, maybe i done something wrong.
      Thanks again for your help!

       
  • Rude

    Rude - 2015-08-26

    do you have postfix installed ?

     
  • redowk

    redowk - 2015-08-26

    oh thought it used php sendmail() to send alerts!
    does it require postfix.
    will give it a try!
    I can always snapshot back and forward

     
  • redowk

    redowk - 2015-08-26

    postfix was already installed.

    Package 2:postfix-2.10.1-6.el7.x86_64 already installed and latest version
    Nothing to do

    i get this trace:

    An error occurred
    Message :
    
    Unable to send mail.
    Trace:
    
    #0 /usr/share/php/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
    #1 /usr/share/php/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
    #2 /usr/share/webacula/library/MyClass/SendEmail.php(35): Zend_Mail->send()
    #3 /usr/share/webacula/application/controllers/AuthController.php(181): MyClass_SendEmail->mySendEmail('webacula', 'Webacula passwo...', 'mail@tiagomarqu...', 'root', 'New Webacula pa...', 'Hello,??This is...')
    #4 /usr/share/webacula/application/controllers/AuthController.php(208): AuthController->emailForgotPassword('mail@tiagomarqu...', 'root', 'a4087c2e76b66b4...')
    #5 /usr/share/php/Zend/Controller/Action.php(516): AuthController->forgotPasswordAction()
    #6 /usr/share/php/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('forgotPasswordA...')
    #7 /usr/share/php/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #8 /usr/share/webacula/html/index.php(258): Zend_Controller_Front->dispatch()
    #9 {main}
    
    System Information:
    
        DB Bacula : PDO_MYSQL 5.5.41
        Version for Bacula Catalog database : 14
        Director :
        Bconsole :
        Webacula version : 7.0.0, build 2014.10.05
        Zend Framework : 1.12.13
        PHP : 5.4.16
        id : uid=48(apache) gid=48(apache) groups=48(apache),133(bacula)
    
        
     

    Last edit: redowk 2015-08-26
  • Rude

    Rude - 2015-08-26

    get rid of your old Zend located in webacula/library/Zend , download static zend framework
    wget https://packages.zendframework.com/releases/ZendFramework-1.12.3/ZendFramework-1.12.3-minimal.tar.gz (download only ver 1.12.3!!!!!!)
    tar -xzf ZendFramework-1.12.3-minimal.tar.gz
    mkdir Zend
    cp -Rf ZendFramework-1.12.3-minimal/library/Zend/* Zend/.

    and try again

     
  • redowk

    redowk - 2015-08-26

    problem persists, with zen 1.12.3 (as per your reply)
    I'll start from scratch and follow your guide.

    btw, to others with same problem, here is the link: http://www.rude.ninja/?p=294

    thanks again

    attached is the trace with zend 1.12.3 for the record

     

    Last edit: redowk 2015-08-26
  • Rude

    Rude - 2015-08-26

    Did you install required packages, ./check_system_requirements.php.

     
    • redowk

      redowk - 2015-08-26

      all except for postgres:

      ./check_system_requirements.php

      Webacula check System Requirements...

      sh: psql: command not found
      Current MySQL version = 5.5.44 OK
      Current Sqlite version = 3.7.17 OK

      Current PHP version = 5.4.16 OK

      php pdo installed. OK
      php gd installed. OK
      php xml installed. OK
      php dom installed. OK

      php pdo_mysql installed. OK
      Warning. PHP extension pdo_pgsql not installed.
      php pdo_sqlite installed. OK
      php-dom, php-xml installed. OK

       
  • redowk

    redowk - 2015-08-26

    after some digging:
    apache log:
    sendmail: fatal: parameter inet_interfaces: no local interface found for ::1

    my problem seems to be related to the loopback interface.
    https://www.centos.org/forums/viewtopic.php?f=14&t=42362
    It also seems to be a centos 7 problem:
    https://www.centos.org/forums/viewtopic.php?f=50&t=51777

    This is clearly not related to this ticket so I'll stop adding info here.

    Thanks Rude.

     
  • redowk

    redowk - 2015-08-26

    ok solved it, just for the record:

    vi /etc/postfix/main.cf
    inet_interfaces = <your ip="">
    service postfix restart

     
  • Rude

    Rude - 2015-08-27

    So, the problem was with your postfix and because of it you wasn't able to recover your passwd by email ?

     
  • redowk

    redowk - 2015-08-27

    yes.
    its because postfix config is set to "localhost" but defaults to ipv6 (::1) and i dont use ipv6, though it should resolve to ipv4 as fallback or something, but doesn't.

     

Log in to post a comment.