Author Topic: Lost https access to Administration  (Read 4840 times)

apicito

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Lost https access to Administration
« on: December 03, 2010, 10:18:56 am »
After install php5 for webserver service I lost access to https control panel.
In remote access run http but no https.
In local, graphical screen get user and password but not enter in administration panel. Return to the login page.
Event sistem send mail with: "error : Zentyal backup failed: Configuration backup skipped because the following modules have unsaved changes: network. The rest of the backup will not be affected" and later "info : Zentyal backup succeeded".
How I can recover https admin panel?

apicito

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Lost https access to Administration
« Reply #1 on: December 07, 2010, 12:33:04 pm »
Any command line tool for save "unsaved changes" because server send message in remote backup service:
"error : Zentyal backup failed: Configuration backup skipped because the following modules have unsaved changes: sysinfo,network,antivirus,apache,ca,objects,services,software,usercorner,users. The rest of the backup will not be affected"
and Backup success.
It´s posible i lose my https connection because apache have "unsaved changes"?
Nobody can help me?
Reinstall is required?

Josep

  • Zen Samurai
  • ****
  • Posts: 255
  • Karma: +6/-0
    • View Profile
Re: Lost https access to Administration
« Reply #2 on: December 07, 2010, 03:37:55 pm »
You could try saving all unsaved changes. Not sure about this, so use at your own risk.
From the sell prompt, create a file named SaveAllModules.pm.
Code: [Select]
nano SaveAllModules.pm
Paste the following contents:
Code: [Select]
root@zenbox:~/Desktop# more SaveAllModules.pm
#!/usr/bin/perl
use strict;
use warnings;

use EBox;
use EBox::Config;
use EBox::Global;
EBox::init();

print "Saving all modules\n";
my $global = EBox::Global->getInstance();
$global->saveAllModules();
print "Modules saved\n";

Change it to be executable and run it:
Code: [Select]
chmod +x SaveAllModules.pm
./SaveAllModules.pm

I have tried in my system, and so far it is working :-)

apicito

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Lost https access to Administration
« Reply #3 on: December 09, 2010, 10:06:09 am »
Thanks for your solution, works well. The unsaved changes is solved.
But that was not the access problem to the administration panel.
I access only thru local and remote terminal, but no web interface. I don´t know how to rebuild the access to the web panel.
Any idea?
Reinstall is required?

apicito

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Lost https access to Administration
« Reply #4 on: December 09, 2010, 10:27:35 am »
I have configuration and full backup previous to problem.
What i need restore for solve it?

Josep

  • Zen Samurai
  • ****
  • Posts: 255
  • Karma: +6/-0
    • View Profile
Re: Lost https access to Administration
« Reply #5 on: December 09, 2010, 01:37:56 pm »
According to this link http://trac.zentyal.org/wiki/Document/HowTo/WhatToDoWhenRestoringABackupFails you may try to restore the configuration with
Code: [Select]
$ sudo /usr/share/ebox/ebox-restore-backup <BACKUP_FILE>
or restore the entire system with
Code: [Select]
$ sudo /usr/share/ebox/ebox-restore-backup --data-restore <BACKUP_FILE>

apicito

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Lost https access to Administration
« Reply #6 on: December 09, 2010, 02:48:55 pm »
thanks for response.
I need selective restore of module for not overwrite changed informaticon: LDAP, shares, etc.
I think use:
Code: [Select]
#/usr/share/ebox/ebox-restore-backup --force-dependencies --module MODULE1_TO_RESTORE BACKUP_FILEBut i don´t  know which module restore for obtain https access to control panel.
other case, i can restore parcial folders from full backup with:
Code: [Select]
duplicity restore --file-to-restore -t 3D <file or directory to restore> <remote URL and arguments> <destination>But i don´t  know wich folders.

Josep

  • Zen Samurai
  • ****
  • Posts: 255
  • Karma: +6/-0
    • View Profile
Re: Lost https access to Administration
« Reply #7 on: December 09, 2010, 05:15:52 pm »
As far as I know, the GUI is part of the Zentyal's core system and not any particular module.
If your problem is that you have changes in your modules that you want to preserve, but your configuration backups are a little bit old, then ... I don't know.
Have you checked whether the GUI is actually running or not?
Is Apache running?
Is there some process that is using port 443 (check with "netstat -ant4 |grep 443)?

Anyway, you may want to change the port of your GUI in /var/lib/ebox/conf/apache2.conf, line "Listen ..."

apicito

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Lost https access to Administration
« Reply #8 on: December 10, 2010, 09:57:59 am »
Thanks josep. I lost (and you) a lot of time trying to recover the system.
I do not understand that part of the system is configured in ebox and which in the base system.
I'm starting with linux and my knowledge does not go so far.
The easiest is to reinstall.
Thanks again for your help.

Josep

  • Zen Samurai
  • ****
  • Posts: 255
  • Karma: +6/-0
    • View Profile
Re: Lost https access to Administration
« Reply #9 on: December 10, 2010, 10:02:28 am »
That's exactly how we learn ;-)
Good luck.