Author Topic: unable to connect (to zentyal Administration)after zentyal 2.0 to 2.2 upgrade  (Read 11668 times)

topdog101

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
HI there,

I was very impressed with the new Zentyal 2.2 features and wanted to upgrade the old Zentyal that I had, I used the tool zentyal-migrate-2.0-to-2.2   , it worked like a charm but I lost connection to the Zentyal Administration .   I got unable to connect every time I tried to access the interface via https://localhost
What went wrong ?.. Anyone can help me ? -  I made full back-ups in case I will have to restore ev everything, but I don't want to do so ,unless I'm really stuck.

Thanks so much


robb

  • Guest
Can you chck if Apache is running and on what ports it is listening?
You can log into the GUI on the server itself?

topdog101

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Apache is running well ... I got:  It works !!!
about it's port I guess, I see 80
I got into the GUI interface after loging in , but I the Zentyal Administration always said : unable to connect .  I  restart using /etc/init.d/ebox restart but no way ..   
I only have two days to get things back in place if the upgrade failed. gee !!!
« Last Edit: October 05, 2011, 03:37:41 pm by topdog101 »

robb

  • Guest
Check THIS topic. Maybe it solves your problem?

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
The apache that runs well at port 80 has nothing to do with the apache of the Zentyal administration. You can check if it's listening with "netstat -tlnp | grep 443". Also try to restar it with "/etc/init.d/zentyal apache restart" and look for errors with "tail -f /var/log/zentyal/*" while you execute the restart.
Zentyal Server Lead Developer

topdog101

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
The apache that runs well at port 80 has nothing to do with the apache of the Zentyal administration. You can check if it's listening with "netstat -tlnp | grep 443". Also try to restar it with "/etc/init.d/zentyal apache restart" and look for errors with "tail -f /var/log/zentyal/*" while you execute the restart.

Sent all of the following commands ..

root@INTRANETCPU:/# netstat -tlnp | grep apache2
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2161/apache2   
 
root@INTRANETCPU:/# dpkg-reconfigure ebox
/usr/sbin/dpkg-reconfigure: ebox is broken or not fully installed

root@INTRANETCPU:/# netstat -tlnp | grep 443
root@INTRANETCPU:/# 


root@INTRANETCPU:/# /etc/init.d/zentyal apache restart
 * Restarting Zentyal module: apache                                     [ OK ]



root@INTRANETCPU:/# tail -f /var/log/zentyal/
tail: error reading `/var/log/zentyal/': Is a directory
tail: /var/log/zentyal/: cannot follow end of this type of file; giving up on this name
tail: no files remaining
root@INTRANETCPU:/# tail -f /var/log/zentyal/*
==> /var/log/zentyal/access.log <==
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/js/table-helper.js HTTP/1.1" 200 29009 "https://192.168.10.10/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/images/title.png HTTP/1.1" 200 6578 "https://192.168.10.10/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/js/scriptaculous/builder.js HTTP/1.1" 200 4744 "https://192.168.10.10/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/js/scriptaculous/effects.js HTTP/1.1" 200 38471 "https://192.168.10.10/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/js/scriptaculous/dragdrop.js HTTP/1.1" 200 31056 "https://192.168.10.10/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/js/scriptaculous/controls.js HTTP/1.1" 200 34787 "https://192.168.10.10/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/js/scriptaculous/slider.js HTTP/1.1" 200 10162 "https://192.168.10.10/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/js/scriptaculous/sound.js HTTP/1.1" 200 2456 "https://192.168.10.10/" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/images/bkgwhite.png HTTP/1.1" 200 451 "https://192.168.10.10/dynamic-data/css/public.css" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"
192.168.10.15 - - [05/Oct/2011:17:03:24 +0300] "GET /data/images/error.png HTTP/1.1" 200 988 "https://192.168.10.10/dynamic-data/css/public.css" "Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" "-"

==> /var/log/zentyal/error.log <==
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x7f938bf2a868)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7f938bf2a868)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7f938f62c988)') called at -e line 0
eval {...} at -e line 0
$VAR1 = bless( {
                 '-file' => '/usr/share/perl5/EBox/OpenVPN/Daemon.pm',
                 '-text' => 'Can\'t call method "elementByName" on an undefined value',
                 '-line' => '90',
                 '-package' => 'Error'
               }, 'Error::Simple' );

==> /var/log/zentyal/redis-server.log <==
[4094] 05 Oct 16:17:34 * DB saved on disk
[1092] 05 Oct 16:17:35 * Background saving terminated with success
[1092] 05 Oct 16:22:36 * 10 changes in 300 seconds. Saving...
[1092] 05 Oct 16:22:36 * Background saving started by pid 4283
[4283] 05 Oct 16:22:44 * DB saved on disk
[1092] 05 Oct 16:22:45 * Background saving terminated with success
[1092] 05 Oct 17:00:11 * 1 changes in 900 seconds. Saving...
[1092] 05 Oct 17:00:11 * Background saving started by pid 5055
[5055] 05 Oct 17:00:11 * DB saved on disk
[1092] 05 Oct 17:00:11 * Background saving terminated with success

==> /var/log/zentyal/zentyal.log <==
2011/10/05 15:17:09 ERROR> Service.pm:721 EBox::Module::Service::__ANON__ - Error restarting service: Can't call method "valueByName" on an undefined value at /usr/share/perl5/EBox/Network.pm line 2257.
2011/10/05 16:17:37 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: events
2011/10/05 16:17:38 ERROR> Service.pm:721 EBox::Module::Service::__ANON__ - Error restarting service: Can't call method "valueByName" on an undefined value at /usr/share/perl5/EBox/Network.pm line 2257.
2011/10/05 16:17:39 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: events
2011/10/05 16:17:39 ERROR> Service.pm:721 EBox::Module::Service::__ANON__ - Error restarting service: Can't call method "valueByName" on an undefined value at /usr/share/perl5/EBox/Network.pm line 2257.
2011/10/05 16:57:39 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: apache
2011/10/05 17:02:25 ERROR> Run.pm:114 EBox::CGI::Run::run - Unable to import cgi: EBox::CGI::webaccess Eval error: Can't locate EBox/CGI/webaccess.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . ) at (eval 323) line 2.
BEGIN failed--compilation aborted at (eval 323) line 2.
2011/10/05 17:02:26 ERROR> Base.pm:365 EBox::CGI::Base::__ANON__ - Exception: Can't call method "valueByName" on an undefined value
2011/10/05 17:02:36 ERROR> Base.pm:365 EBox::CGI::Base::__ANON__ - Exception: Can't call method "valueByName" on an undefined value


NOW : I can  access ZENTYAL Administration with the folowing error :     Can't call method "elementByName" on an undefined value at /usr/share/perl5/EBox/OpenVPN/Daemon.pm line 90.



« Last Edit: October 05, 2011, 04:06:31 pm by topdog101 »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Hi topdog101,

To diagnose this, we would need more information, a dump of your configuration before and after the migration.

You can find the Zentyal 2.0 dump at /var/lib/ebox/redis_dump.yaml

To get the current 2.2 dump, execute the following in a root shell (sudo -s):

EDITOR=cat /usr/share/zentyal/redisvi  > current_redis_dump.yaml

You can send me both files by email: jacalvo at zentyal.com

Thanks!
Zentyal Server Lead Developer

topdog101

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Hi topdog101,

To diagnose this, we would need more information, a dump of your configuration before and after the migration.

You can find the Zentyal 2.0 dump at /var/lib/ebox/redis_dump.yaml

To get the current 2.2 dump, execute the following in a root shell (sudo -s):

EDITOR=cat /usr/share/zentyal/redisvi  > current_redis_dump.yaml

You can send me both files by email: jacalvo at zentyal.com

Thanks!


Thanks Jacalvo ... I just sent the two files by email !! just in case I am still listing the content of the after upgrade

root@INTRANETCPU:/# EDITOR=cat /usr/share/zentyal/redisvi
---
key: /ebox/.
type: set
value:
- modules
- state
---
key: /ebox/modules/.
type: set
value:
- logs
- global
---
key: /ebox/modules/global/.
type: set
value:
- modules
---
key: /ebox/modules/global/modules/.
type: set
value:
- logs
---
key: /ebox/modules/global/modules/logs/.
type: set
value:
- changed
---
key: /ebox/modules/global/modules/logs/changed
type: string
value: '1'
---
key: /ebox/modules/logs/.
type: set
value:
- configureLogTable
---
key: /ebox/modules/logs/configureLogTable/.
type: set
value:
- order
- keys
---
key: /ebox/modules/logs/configureLogTable/keys/.
type: set
value:
- conf5893
- domain.idx
- conf11
---
key: /ebox/modules/logs/configureLogTable/keys/domain.idx
type: hash
value:
  openvpn: '{"conf11":1}'
  radius: '{"conf5893":1}'
---
key: /ebox/modules/logs/configureLogTable/keys/conf11/.
type: set
value:
- enabled
- lifeTime
- domain
- readOnly
---
key: /ebox/modules/logs/configureLogTable/keys/conf11/domain
type: string
value: openvpn
---
key: /ebox/modules/logs/configureLogTable/keys/conf11/enabled
type: string
value: '1'
---
key: /ebox/modules/logs/configureLogTable/keys/conf11/lifeTime
type: string
value: '168'
---
key: /ebox/modules/logs/configureLogTable/keys/conf11/readOnly
type: string
value: '0'
---
key: /ebox/modules/logs/configureLogTable/keys/conf5893/.
type: set
value:
- enabled
- lifeTime
- domain
- readOnly
---
key: /ebox/modules/logs/configureLogTable/keys/conf5893/domain
type: string
value: radius
---
key: /ebox/modules/logs/configureLogTable/keys/conf5893/enabled
type: string
value: '1'
---
key: /ebox/modules/logs/configureLogTable/keys/conf5893/lifeTime
type: string
value: '168'
---
key: /ebox/modules/logs/configureLogTable/keys/conf5893/readOnly
type: string
value: '0'
---
key: /ebox/state/.
type: set
value:
- software
- apache
---
key: /ebox/state/apache/.
type: set
value:
- progress_indicator
---
key: /ebox/state/apache/progress_indicator/.
type: set
value:
- '7972'
---
key: /ebox/state/apache/progress_indicator/7972/.
type: set
value:
- id
- message
- ticks
- started
- retValue
- finished
- executable
- totalTicks
---
key: /ebox/state/apache/progress_indicator/7972/executable
type: string
value: /bin/true
---
key: /ebox/state/apache/progress_indicator/7972/finished
type: string
value: '1'
---
key: /ebox/state/apache/progress_indicator/7972/id
type: string
value: '7972'
---
key: /ebox/state/apache/progress_indicator/7972/message
type: string
value: logs
---
key: /ebox/state/apache/progress_indicator/7972/retValue
type: string
value: '0'
---
key: /ebox/state/apache/progress_indicator/7972/started
type: string
value: '1'
---
key: /ebox/state/apache/progress_indicator/7972/ticks
type: string
value: '1'
---
key: /ebox/state/apache/progress_indicator/7972/totalTicks
type: string
value: '10000'
---
key: /ebox/state/software/.
type: set
value:
- auto_upgrade
---
key: /ebox/state/software/auto_upgrade/.
type: set
value:
- package_num
- timestamp
---
key: /ebox/state/software/auto_upgrade/package_num
type: string
value: '0'
---
key: /ebox/state/software/auto_upgrade/timestamp
type: string
value: '1317840256'
Not modified.




« Last Edit: October 06, 2011, 08:24:26 am by topdog101 »

topdog101

  • Zen Apprentice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Hi,

May be I am repeating myself..  Just wanted to say thanks this solved my problem : http://forum.zentyal.org/index.php/topic,8263.new.html#new

thanks again.

Topdog101