Author Topic: [SOLVED] Zentyal 6.0: Modules States page , Logs page : broken  (Read 996 times)

BenTn

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Hi everyone,
I ask for your help because after multiple searches, I do not find how to solve my problems.
I recently migrated my server and all works.

However, when I access the «Module States» page, I am greeted by this wonderful error message in Perl:
«Sorry, an unexpected error has occurred
no value sent for required parameter 'modules' Stack: [(eval 981):22] [/usr/share/perl5/HTML/Mason/Component.pm:135] [/usr/share/perl5/HTML/Mason/Request.pm:1302] [/usr/share/perl5/HTML/Mason/Request.pm:1292] [/usr/share/perl5/HTML/Mason/Request.pm:483] [/usr/share/perl5/HTML/Mason/Request.pm:483] [/usr/share/perl5/HTML/Mason/Request.pm:433] [/usr/share/perl5/HTML/Mason/Interp.pm:342] [/usr/share/perl5/EBox/Html.pm:154] [/usr/share/perl5/EBox/CGI/Base.pm:158] [/usr/share/perl5/EBox/CGI/Base.pm:200] [/usr/share/perl5/EBox/CGI/Base.pm:199] [/usr/share/perl5/EBox/CGI/Base.pm:359] [/usr/share/perl5/EBox/CGI/Base.pm:358] [/usr/share/perl5/EBox/CGI/Run.pm:92] [/usr/share/perl5/EBox/CGI/Run.pm:68] [/usr/share/zentyal/psgi/zentyal.psgi:46] [/usr/share/perl5/Plack/App/URLMap.pm:71] [/usr/share/perl5/Plack/Component.pm:50] [/usr/share/perl5/EBox/Middleware/Auth.pm:366] [/usr/share/perl5/Plack/Component.pm:50] [/usr/share/perl5/Plack/Middleware/Conditional.pm:16] [/usr/share/perl5/Plack/Component.pm:50] [/usr/share/perl5/EBox/WebAdmin/Middleware/SubAppAuth.pm:57] [/usr/share/perl5/Plack/Component.pm:50] [/usr/share/perl5/Plack/Middleware/Session.pm:53] [/usr/share/perl5/Plack/Component.pm:50] [/usr/share/perl5/Plack/Middleware/ReverseProxy.pm:68] [/usr/share/perl5/Plack/Component.pm:50] [/usr/share/perl5/EBox/Middleware/UnhandledError.pm:78] [/usr/share/perl5/EBox/Middleware/UnhandledError.pm:77] [/usr/share/perl5/Plack/Component.pm:50] [/usr/share/zentyal/psgi/zentyal.psgi:0] [/usr/share/zentyal/psgi/zentyal.psgi:0] at /usr/share/perl5/EBox/CGI/Base.pm line 364»

And when I go to the “Logs” page, I get this message:
«Valeur invalide pour Console d'identification par défaut: /bin/bash. Choisissez une valeur dans la valeur définie: /usr/bin/dash, /usr/bin/bash, /usr/bin/sh, /usr/bin/rbash, /usr/bin/screen»

I tried the chsh command but the ebox user default is /usr/sbin/nologin.

If anyone has an idea, I’m in.

With each restart of the server I have to launch the web interface manually (systemctl start zentyal.webadmin-nginx.service zentyal.webadmin-uwsgi.service), in the logs it is the same error as for the page «Logs».

PS: Sorry for my bad english, I'm working on it but it is faster to use a translator.
« Last Edit: August 14, 2019, 02:05:18 pm by BenTn »

doncamilo

  • Zen Samurai
  • ****
  • Posts: 381
  • Karma: +101/-1
    • View Profile
Re: Zentyal 6.0: Modules States page , Logs page : broken
« Reply #1 on: August 14, 2019, 01:05:30 am »
 :)

Could you add a more extense log fragment in order to debug?

Cheers!
"Tanta salud goces como bondad abrigues en tu corazón"

Don Camilo.

"That place... is strong with the
dark side of the Force.  A domain
of evil it is.  In you must go."

Yoda.

BenTn

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Re: Zentyal 6.0: Modules States page , Logs page : broken
« Reply #2 on: August 14, 2019, 11:05:37 am »
In zentyal.log, I got this:

EBox::Loggerd::_parseLog('EBox::Loggerd=HASH(0x56511995c1e0)', '/var/log/syslog') called at /usr/share/perl5/EBox/Loggerd.pm line 172
EBox::Loggerd::_mainloop('EBox::Loggerd=HASH(0x56511995c1e0)') called at /usr/share/perl5/EBox/Loggerd.pm line 67
EBox::Loggerd::run('EBox::Loggerd=HASH(0x56511995c1e0)') called at /usr/share/zentyal/loggerd line 10
2019/08/14 11:13:52 WARN> Loggerd.pm:154 EBox::Loggerd::_parseLog - Error processing line Aug 14 11:13:47 osrv-ad dhcpd[5754]: DHCPACK on 192.168.2.53 to c8:ff:28:09:60:f5 (PORT-INT01) via eth0 of /var/log/syslog:
2019/08/14 11:28:52 DEBUG> Select.pm:363 EBox::Types::Select::_paramIsValid - Valeur invalide pour Console d'identification par défaut: /bin/bash.
Choisissez une valeur dans la valeur définie: /usr/bin/dash, /usr/bin/rbash, /usr/bin/screen, /usr/bin/tmux, /usr/bin/bash, /usr/bin/sh at Valeur invalide pour Console d'identification par défaut: /bin/bash.
Choisissez une valeur dans la valeur définie: /usr/bin/dash, /usr/bin/rbash, /usr/bin/screen, /usr/bin/tmux, /usr/bin/bash, /usr/bin/sh at /usr/share/perl5/EBox/Types/Select.pm line 363
EBox::Types::Select::_paramIsValid('EBox::Types::Select=HASH(0x56511fdeba68)', 'HASH(0x56511fde8348)') called at /usr/share/perl5/EBox/Types/Abstract.pm line 457
EBox::Types::Abstract::setMemValue('EBox::Types::Select=HASH(0x56511fdeba68)', 'HASH(0x56511fde8348)') called at /usr/share/perl5/EBox/Types/Select.pm line 423
EBox::Types::Select::_setValue('EBox::Types::Select=HASH(0x56511fdeba68)', '/bin/bash') called at /usr/share/perl5/EBox/Types/Abstract.pm line 62
EBox::Types::Abstract::new('EBox::Types::Select', 'defaultValue', '/bin/bash', 'help', 'Cela sera appliquer uniquement pour les nouveaux utilisateurs M-` partir de maintenant.', 'disableCache', 1, 'printableName', 'Console d'identification par dM-ifaut', 'HTMLViewer', '/ajax/viewer/selectViewer.mas', 'editable', 1, 'fieldName', 'login_shell', 'HTMLSetter', '/ajax/setter/selectSetter.mas', 'populate', 'CODE(0x56511fd81ef0)', 'type', 'select') called at /usr/share/perl5/EBox/Types/Basic.pm line 32
EBox::Types::Basic::new('EBox::Types::Select', 'defaultValue', '/bin/bash', 'help', 'Cela sera appliquer uniquement pour les nouveaux utilisateurs M-` partir de maintenant.', 'disableCache', 1, 'printableName', 'Console d'identification par dM-ifaut', 'HTMLViewer', '/ajax/viewer/selectViewer.mas', 'editable', 1, 'fieldName', 'login_shell', 'HTMLSetter', '/ajax/setter/selectSetter.mas', 'populate', 'CODE(0x56511fd81ef0)', 'type', 'select') called at /usr/share/perl5/EBox/Types/Select.pm line 68
EBox::Types::Select::new('EBox::Types::Select', 'fieldName', 'login_shell', 'printableName', 'Console d'identification par dM-ifaut', 'disableCache', 1, 'populate', 'CODE(0x56511fd81ef0)', 'editable', 1, 'defaultValue', '/bin/bash', 'help', 'Cela sera appliquer uniquement pour les nouveaux utilisateurs M-` partir de maintenant.') called at /usr/share/perl5/EBox/Samba/Model/PAM.pm line 111
EBox::Samba::Model::PAM::_table('EBox::Samba::Model::PAM=HASH(0x56511fd7b758)') called at /usr/share/perl5/EBox/Model/DataTable.pm line 104
EBox::Model::DataTable::_setupTable('EBox::Samba::Model::PAM=HASH(0x56511fd7b758)') called at /usr/share/perl5/EBox/Model/DataTable.pm line 92
EBox::Model::DataTable::table('EBox::Samba::Model::PAM=HASH(0x56511fd7b758)') called at /usr/share/perl5/EBox/Model/DataForm.pm line 718
EBox::Model::DataForm::_defaultRow('EBox::Samba::Model::PAM=HASH(0x56511fd7b758)') called at /usr/share/perl5/EBox/Model/DataForm.pm line 198
EBox::Model::DataForm::row('EBox::Samba::Model::PAM=HASH(0x56511fd7b758)') called at /usr/share/perl5/EBox/Model/DataForm.pm line 650
EBox::Model::DataForm::AUTOLOAD('EBox::Samba::Model::PAM=HASH(0x56511fd7b758)') called at /usr/share/perl5/EBox/Samba.pm line 251
EBox::Samba::actions('EBox::Samba=HASH(0x56511e8d64e8)') called at /usr/share/perl5/EBox/Module/Service.pm line 290
EBox::Module::Service::configured('EBox::Samba=HASH(0x56511e8d64e8)') called at /usr/share/perl5/EBox/Logs.pm line 253
EBox::Logs::getLogsModules('EBox::Logs=HASH(0x56511dbbc7d0)') called at /usr/share/perl5/EBox/Logs.pm line 276
EBox::Logs::getAllTables('EBox::Logs=HASH(0x56511dbbc7d0)') called at /usr/share/perl5/EBox/Logs.pm line 305
EBox::Logs::getTableInfo('EBox::Logs=HASH(0x56511dbbc7d0)', 'leases') called at /usr/share/perl5/EBox/MyDBEngine.pm line 310
EBox::MyDBEngine::insert('EBox::MyDBEngine=HASH(0x56511dc3f868)', 'leases', 'HASH(0x56511fd8fa08)') called at /usr/share/perl5/EBox/DHCPLogHelper.pm line 91
EBox::DHCPLogHelper::processLine('EBox::DHCPLogHelper=HASH(0x56511fbbc0f0)', '/var/log/syslog', 'Aug 14 11:28:47 osrv-ad dhcpd[5754]: DHCPACK on 192.168.2.53 to c8:ff:28:09:60:f5 (PORT-INT01) via eth0', 'EBox::MyDBEngine=HASH(0x56511dc3f868)') called at /usr/share/perl5/EBox/Loggerd.pm line 152
eval {...} at /usr/share/perl5/EBox/Loggerd.pm line 151
EBox::Loggerd::_parseLog('EBox::Loggerd=HASH(0x56511995c1e0)', '/var/log/syslog') called at /usr/share/perl5/EBox/Loggerd.pm line 172
EBox::Loggerd::_mainloop('EBox::Loggerd=HASH(0x56511995c1e0)') called at /usr/share/perl5/EBox/Loggerd.pm line 67
EBox::Loggerd::run('EBox::Loggerd=HASH(0x56511995c1e0)') called at /usr/share/zentyal/loggerd line 10
2019/08/14 11:28:52 WARN> Loggerd.pm:154 EBox::Loggerd::_parseLog - Error processing line Aug 14 11:28:47 osrv-ad dhcpd[5754]: DHCPACK on 192.168.2.53 to c8:ff:28:09:60:f5 (PORT-INT01) via eth0 of /var/log/syslog:
2019/08/14 11:32:25 DEBUG> Select.pm:363 EBox::Types::Select::_paramIsValid - Valeur invalide pour Console d'identification par défaut: /bin/bash.
2019/08/14 11:32:25 ERROR> Base.pm:364 EBox::CGI::Base::run - no value sent for required parameter 'modules'
« Last Edit: August 14, 2019, 11:33:18 am by BenTn »

BenTn

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Re: [SOLVED] Zentyal 6.0: Modules States page , Logs page : broken
« Reply #3 on: August 14, 2019, 02:11:55 pm »
I finally found the source of all my problems.
I recently installed the package «usrmerge», which replace some system directory by symlink had 4 lines in /etc/shells. These 4 lines was the problem.

doncamilo

  • Zen Samurai
  • ****
  • Posts: 381
  • Karma: +101/-1
    • View Profile
Re: [SOLVED] Zentyal 6.0: Modules States page , Logs page : broken
« Reply #4 on: August 14, 2019, 09:42:25 pm »
Great!  :)

Could you please to document it here?
I would like to understand it!

Regards!
"Tanta salud goces como bondad abrigues en tu corazón"

Don Camilo.

"That place... is strong with the
dark side of the Force.  A domain
of evil it is.  In you must go."

Yoda.