Author Topic: Upgrade Now Button - Not Working  (Read 1850 times)

OprSysOp

  • Guest
Upgrade Now Button - Not Working
« on: November 23, 2018, 04:52:08 pm »
Good morning,

I have been trying to use the "Upgrade Now" button on the interface within my Zentyal community edition. I have completely updated the components and my core version is at 5.1.3. When I select the button I receive the message "This will upgrade your Zentyal 5.1 to Zentyal 6.0 Development Edition." I click on "continue".

Within SECONDS, I receive the message "Upgrade finished! You will be redirected to Zentyal 6.0 after closing this dialog but please note that it is highly recommended to reboot your server before resuming normal operations." Then I click "Close" and am redirected back to the page with the same "Upgrade Now" button. I reboot the server from the Zentyal Interface and when it comes back up I can see that it is STILL the same core version but then it shows that there are 478 system updates available.

I have clicked the option to "Update all packages" several times over the past couple of days. It has never worked. The system will hang for hours and never finish. I had previously also tried to run the updates via CLI however when I finished this, I was no longer able to log on with the credentials that I have on the system.

How can I update to the new version of Zentyal or do I need to rebuild from scratch?

Thanks.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: Upgrade Now Button - Not Working
« Reply #1 on: November 24, 2018, 04:07:01 am »
Did you follow the progress via the command line ?
Code: [Select]
tail -f /var/log/zentyal/upgrade.log
If so, what did it say when progress stopped?

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: Upgrade Now Button - Not Working
« Reply #2 on: November 24, 2018, 07:08:21 pm »
Here's a hunch,  you have IDS/IPS enabled?  Turn it off.  Try again.

OprSysOp

  • Guest
Re: Upgrade Now Button - Not Working
« Reply #3 on: November 26, 2018, 03:44:41 pm »
Hi,

I don't use IDS/IPS. The only use for that server is OpenVPN.

The log just shows that the program hung downloading update 278, no errors. The 'error.log' showed a bunch that were similar to
 
Code: [Select]
2018/11/24 10:40:45 [error] 9841#9841: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 174.$
2018/11/24 10:42:51 [error] 9841#9841: *59 upstream prematurely closed connection while reading response header from upstream, $

The VPN is actually working perfectly - it just won't update.

OprSysOp

  • Guest
Re: Upgrade Now Button - Not Working
« Reply #4 on: November 26, 2018, 07:49:40 pm »
I've managed to get the update to work by doing a small batch at a time. The update button was puking at the sheer number of updates it looked like. So using a combination of the Zentyal interface and the the CLI when that started complaining everything is reporting that its all updated.

Unfortunately, I can not connect to the VPN now. I re-issued the certs just to be sure it wasn't something there. There is no error in the interface, it just won't connect, here's the log:
Quote
Mon Nov 26 13:32:39 2018 OpenVPN 2.3.2 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Aug 22 2013
Enter Management Password:
Mon Nov 26 13:32:39 2018 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Mon Nov 26 13:32:39 2018 Need hold release from management interface, waiting...
Mon Nov 26 13:32:40 2018 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Mon Nov 26 13:32:40 2018 MANAGEMENT: CMD 'state on'
Mon Nov 26 13:32:40 2018 MANAGEMENT: CMD 'log all on'
Mon Nov 26 13:32:40 2018 MANAGEMENT: CMD 'hold off'
Mon Nov 26 13:32:40 2018 MANAGEMENT: CMD 'hold release'
Mon Nov 26 13:32:40 2018 Socket Buffers: R=[65536->65536] S=[65536->65536]
Mon Nov 26 13:32:40 2018 UDPv4 link local: [undef]
Mon Nov 26 13:32:40 2018 UDPv4 link remote: [AF_INET]<PUBLIC IP AND PORT FOR VPN>
Mon Nov 26 13:32:40 2018 MANAGEMENT: >STATE:1543257160,WAIT,,,
Mon Nov 26 13:32:40 2018 MANAGEMENT: >STATE:1543257160,AUTH,,,
Mon Nov 26 13:32:40 2018 TLS: Initial packet from [AF_INET]<PUBLIC IP AND PORT FOR VPN>, sid=540847a9 910e6c92
Mon Nov 26 13:32:40 2018 VERIFY OK: depth=1, C=CA, ST=Undefined, L=Gatineau, O=company Inc., CN=company Inc. Authority Certificate
Mon Nov 26 13:32:40 2018 VERIFY X509NAME OK: C=CA, ST=Undefined, L=Gatineau, O=company Inc., CN=vpn-company.company.com
Mon Nov 26 13:32:40 2018 VERIFY OK: depth=0, C=CA, ST=Undefined, L=Gatineau, O=Oproma Inc., CN=vpn-company.company.com
Mon Nov 26 13:33:33 2018 SIGTERM received, sending exit notification to peer
Mon Nov 26 13:33:37 2018 SIGTERM[soft,exit-with-notification] received, process exiting
Mon Nov 26 13:33:37 2018 MANAGEMENT: >STATE:1543257217,EXITING,exit-with-notification,,

I've removed any identifiable information from the above. Nothing else has changed although I did notice that the interface for our OTHER internal  OpenVPN (that works) is showing the
Code: [Select]
VPN interface address 10.10.100.1/32 While the other one that has been updated has NO information in that section. I did not see how to add it.

OprSysOp

  • Guest
Re: Upgrade Now Button - Not Working
« Reply #5 on: November 26, 2018, 09:04:01 pm »
I've had to revert to my original install. I don't know why the button that is supposed to work does not. When I checked the server after I did the manual update above it did not even see that it was on Zentyal, looked like the program was there and the components were installed but the whole interface which on my WORKING (not updated server) says
Code: [Select]
You can access the Zentyal Web Interface at:

 * https://10.100.0.68:8443
Just looked like a normal Ubuntu 18.04 interface without any reference at all to the Zentyal components. I would really love to have an update path for these systems.