Author Topic: saving webadmin module stuck on 100%  (Read 1381 times)

foeke

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
saving webadmin module stuck on 100%
« on: January 30, 2023, 01:28:33 pm »
I just started using Zentyal and used to use ClearOS (CentOS based Zentyal like distibution).
I installed a fresh 7.0 on a customers server. Everything worked, until I was configuring the OVPN certificates/connections. I did that before on the exact same server for a test run.
When saving, you get the popup with how many things need to be changed/updated. The last part is the "saving webadmin module" and then it gets stuck when it looks like it's done.
If I refresh the page, the changes are undone and I need to save the changes again. (to no avail)
The dashboard did say some modules required a restart, so I did that. But that didn't solve the "saving webadmin module" issue.
I did find I was not the only one with this issue.
https://github.com/zentyal/zentyal/issues/2102
But I can't believe this has not been solved half a year later.



turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #1 on: January 31, 2023, 10:54:39 am »
You're right, you are being affected by that 'old' bug. However, if the change button doesn't disappear, don't worry, the actions were applied. You can confirm it by checking the log file '/var/log/zentyal/zentyal.log'.

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".

foeke

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #2 on: January 31, 2023, 12:45:26 pm »
I'm afraid the actions have not been applied. In the test environment I got an extra line in the certificates. And that isn't being made.
I've added the log file. Last thing I did was clicking that "save changes option" and wait like a minute to be sure.
Then I downloaded the log.
When I try to attach the log file (399kb) I get the error here, that the drive is full.

So I'll past the content from today.
2023/01/31 07:37:08 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: webadmin
2023/01/31 12:15:28 WARN> Auth.pm:277 EBox::Middleware::Auth::_login - Failed login from: 192.168.34.104
2023/01/31 12:15:28 DEBUG> PAM.pm:83 Authen::Simple::PAM::check - Successfully authenticated user 'adminwolff' using service 'zentyal'.
2023/01/31 12:15:34 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:15:34 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:15:34 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:15:45 INFO> Index.pm:187 EBox::Dashboard::CGI::Index::masonParameters - dashboard1
2023/01/31 12:16:00 INFO> GlobalImpl.pm:617 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall webadmin
2023/01/31 12:16:01 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: firewall
2023/01/31 12:16:02 INFO> GlobalImpl.pm:660 EBox::GlobalImpl::saveAllModules - Saving configuration: webadmin
2023/01/31 12:16:02 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: webadmin
2023/01/31 12:16:17 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:16:17 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:16:17 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:16:46 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:16:46 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:16:46 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:16 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:16 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:16 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:46 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:46 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:46 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:50 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:50 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:50 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:17:51 INFO> Index.pm:187 EBox::Dashboard::CGI::Index::masonParameters - dashboard1
2023/01/31 12:18:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:18:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:18:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:18:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:18:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:18:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:19:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:19:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:19:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:19:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:19:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:19:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:20:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:20:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:20:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:20:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:20:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:20:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:21:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:21:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:21:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:21:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:21:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:21:52 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:22:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $proto in uc at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:22:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $addr in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.
2023/01/31 12:22:22 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $port in concatenation (.) or string at /usr/share/perl5/EBox/OpenVPN/Client.pm line 565.



Not often does google give so few hits when I search for (parts of) the error.

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #3 on: February 01, 2023, 11:17:37 am »
Hi,

If you believe it does not apply all the changes, you can temporarily undo the code part that causes the bug and wait until Zentyal fixes it. The bug is in [this](https://github.com/zentyal/zentyal/commit/faf0951e119bd0a7c3689fc09d646ec77c7bd17c#diff-b7d97a6d1679955fe2edc2d26171bbdcb8fae53e2e8e8c3dd65674ef3060a855) commit. Basically, you just need to undo the change in /usr/share/perl5/EBox/WebAdmin.pm of your Zentyal server, and then, restart the Webadmin module as follows:

Code: [Select]
sudo zs webadmin restart

Hope it helps.

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".

foeke

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #4 on: February 03, 2023, 03:58:18 pm »
Done that, but didn't make a difference.
Isn't the error trying to say there is something wrong in the Client.pm? Some variable file from the VPN part?
I tried to disable and remove all things VPN related. But that didn't help. I even gained a problem in that I revoked the certificate for the VPN (delete was no option). Then I enabled it again, and now I got two. One valid, one revoked but with the same name. And an error saying I have two certificates with the same name. But no option to change this?

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #5 on: February 07, 2023, 12:08:33 pm »
Those messages are just warnings, not errors, so they can be omitted if there isn't any error when the OpenVPN module is restarted (sudo zs openvpn restart). Perhaps, those messages are caused by the OpenVPN widget in the Zentyal GUI dashboard.

What you really need to do is test the VPN connections with a client to confirm the stability of the module.

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".

shazman

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #6 on: February 09, 2023, 04:25:49 am »
Good day, I am installing Zentyal 7.0 (fresh install) and I am getting the same issue. I installed it 4 times same issue (saving webadmin module 100%). Where you able to find a fix?

Thank your very much.
« Last Edit: February 09, 2023, 05:06:05 am by shazman »

foeke

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #7 on: February 09, 2023, 10:03:10 am »
Unfortunately not.
Do you have this after you installed everything and are setting things up? Or during the install?
When trying to find a solution, I saw, this was also happening (the error during the final stages of the install).
For me everything did worked until I was setting up the certificates/vpn.
But I am not sure if I am chasing a red herring here.
Might be something completely different.
I did see a message that some things needed a reboot (I'm not used to rebooting after an update on a Linux Machine, but maybe the message meant restart the service instead of restart the machine) before this started.
So there might have been an other issue already.
I'm also going to do a new install to see if I can reproduce it. It's very annoying this is on a production server (I have an identical machine here to be sure). Otherwise I would have done a reinstall. This is not convincing my customer that never had any issue with the former OS (they didn't notice ClearOS wasn't getting any updates, because, why would they) that this is an improvement.
May I ask what hardware platform you are using?

shazman

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #8 on: February 09, 2023, 11:18:59 am »
I am getting this when I finished installing it. I tried restarting the service and doing dpkg --configure -a. I got it to work without changing the domain name. As soon as I change the domain name even with the fresh install it freezes at the same point.
Hardware:
AMD Ryzen 5
8GB Ram
240GB NVME M.2 (OS drive)
3TB Data drive

foeke

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #9 on: February 10, 2023, 12:21:38 pm »
A little update, I did a fresh install with the exact same outcome. I am going to count the steps backward untill I found what the difference is with my initial testserver where this issue didn't occur.

Fex

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #10 on: March 08, 2023, 07:47:16 pm »
Problem persists for me.
Tried to reproduce the error with the fewest steps possible, running on a VM on Proxmox, 4 cores, 8GB RAM.

  • Installed from 7.0 development iso
  • Finished install, booted into the GUI. Logged in and I've skipped install (no modules installed)
  • From terminal, apt update && apt upgrade . Then reboot.
  • Logged in again, and changed the hostname (via gui), Saved changes
  • That´s it. Stuck on Saving webmin module. No errors on any files in /var/log/zentyal


Fex

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #11 on: March 08, 2023, 09:19:41 pm »
Well, I could make it work following https://github.com/zentyal/zentyal/issues/2100#issuecomment-1241931846

Installed with network cable out.
Logged in on the web admin, skipped installation of modules.

Plugged in cable.
In Zentyal, installed module Network

From terminal:
sudo apt update && apt upgrade

reboot

Now everything works

Gilberto Ferreira

  • Zen Hero
  • *****
  • Posts: 516
  • Karma: +12/-1
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #12 on: March 13, 2023, 03:49:38 pm »
Well, I could make it work following https://github.com/zentyal/zentyal/issues/2100#issuecomment-1241931846

Installed with network cable out.
Logged in on the web admin, skipped installation of modules.

Plugged in cable.
In Zentyal, installed module Network

From terminal:
sudo apt update && apt upgrade

reboot

Now everything works

This works to me!
Thanks a lot!

foeke

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: saving webadmin module stuck on 100%
« Reply #13 on: April 19, 2023, 02:48:27 pm »
Well, I could make it work following https://github.com/zentyal/zentyal/issues/2100#issuecomment-1241931846

Installed with network cable out.
Logged in on the web admin, skipped installation of modules.

Plugged in cable.
In Zentyal, installed module Network

From terminal:
sudo apt update && apt upgrade

reboot

Now everything works

Thanks for the effort. But my issue it with a server that is in production now. A reinstall would be an issue to put it mildly.