Author Topic: Argument must be a IP address  (Read 1446 times)

lamp08

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Argument must be a IP address
« on: November 30, 2013, 01:52:44 pm »
Добрый день.
Есть Zentyal 3.2(cначала был установлен Zentyal 3.0 на Ubuntu server 12.04,затем обновлен до zentyal 3.2).
Есть два внешних канала:PPPoE и DHCP.Проблема заключается в том ,что я не могу изменять параметры PPPoE gateway(не могу включить,изменить вес,поставить по умолчанию).При попытке изменить параметр вебинтерфейс выдает ошибку:"Argument must be a IP address" и изменения не принимаются.Вот полный вывод ошибки в debug mode(178.x.x.x это мой белый IP):
Code: [Select]
Argument must be a IP address at /usr/share/perl5/EBox/Network.pm line 778
EBox::Network::ifaceByAddress('EBox::Network=HASH(0x7f0a54f31c00)', 'ppp0/178.x.x.x') called at
/usr/share/perl5/EBox/Network/Model/GatewayTable.pm line 256
EBox::Network::Model::GatewayTable::validateRow('EBox::Network::Model::GatewayTable?=HASH(0x7f0a5500d370)', 'update',
'EBox::Network::Model::GatewayTable?=HASH(0x7f0a5500d370)', undef, 'ip', 'ppp0/178.x.x.x', 'filter', , 'name', ...) called at
/usr/share/perl5/EBox/Model/DataTable.pm line 1213 EBox::Model::DataTable::setRow('EBox::Network::Model::GatewayTable?=HASH(0x7f0a5500d370)',
undef, 'ip', 'ppp0/178.x.x.x', 'filter', , 'name', 'ppp-gw-eth1', 'default', ...) called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 225
EBox::CGI::Controller::DataTable::_editField('EBox::CGI::Controller::DataTable?=HASH(0x7f0a557a5358)', 0, 'filter', , 'ip', 'ppp0/178.x.x.x', 'name', 'ppp-gw-eth1', 'default', ...) called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 184
EBox::CGI::Controller::DataTable::editField('EBox::CGI::Controller::DataTable?=HASH(0x7f0a557a5358)', 'ip', 'ppp0/178.x.x.x', 'filter', , 'name', 'ppp-gw-eth1', 'default', 'on', ...) called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 367
EBox::CGI::Controller::DataTable::editAction('EBox::CGI::Controller::DataTable?=HASH(0x7f0a557a5358)', 'model',
'EBox::Network::Model::GatewayTable?=HASH(0x7f0a5500d370)', 'directory', 'GatewayTable?', 'json', undef) called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 516 EBox::CGI::Controller::DataTable::_process('EBox::CGI::Controller::DataTable?=HASH(0x7f0a557a5358)') called at /usr/share/perl5/EBox/CGI/ClientRawBase.pm line 178
EBox::CGI::ClientRawBase::run('EBox::CGI::Controller::DataTable?=HASH(0x7f0a557a5358)') called at /usr/share/perl5/EBox/CGI/Run.pm line 85
EBox::CGI::Run::run('EBox::CGI::Run', 'Network/Controller/GatewayTable?') called at /usr/share/zentyal/cgi/ebox.cgi line 36
ModPerl::ROOT::ModPerl::Registry::usr_share_zentyal_cgi_ebox_2ecgi::handler('Apache2::RequestRec?=SCALAR(0x7f0a54febbc8)') called at
/usr/lib/perl5/ModPerl/RegistryCooker.pm line 204 eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x7f0a552c04d8)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7f0a552c04d8)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec?=SCALAR(0x7f0a54febbc8)') called at -e line 0 eval {...} called at -e line 0
Может кто встречался с данной ошибкой?

logdog

  • Zen Hero
  • *****
  • Posts: 623
  • Karma: +29/-2
    • View Profile
Re: Argument must be a IP address
« Reply #1 on: November 30, 2013, 08:40:05 pm »

lamp08

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Argument must be a IP address
« Reply #2 on: December 02, 2013, 08:45:52 am »
Спасибо,но это я его и создал

lamp08

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Argument must be a IP address
« Reply #3 on: December 10, 2013, 02:20:55 pm »
Неужели только у меня такая проблема

lamp08

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Argument must be a IP address
« Reply #4 on: December 16, 2013, 01:51:45 pm »

zen.ibm

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Argument must be a IP address
« Reply #5 on: March 22, 2014, 03:59:40 pm »
Похожая проблема Zentyal 3.3, 2 WAN: eth2 - PPPoE и eth1 - DHCP, основной PPPoE. Пока eth1 не задано, а есть только eth2, все в порядке, когда включаю eth1, в шлюзах не могу поставить шлюз с PPPoE как основной, пишет Argument must be a IP address. С включенным debug выдет:
Code: [Select]
2014/03/22 18:20:00 DEBUG> Network.pm:777 EBox::Network::ifaceByAddress - Argument must be a IP address at Trace begun at /usr/share/perl5/EBox/Exceptions/Base.pm line 79
EBox::Exceptions::Base::stacktrace('EBox::Exceptions::External=HASH(0xba45c2f8)') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 119
EBox::Exceptions::Base::log('EBox::Exceptions::External=HASH(0xba45c2f8)') called at /usr/share/perl5/EBox/Exceptions/External.pm line 43
EBox::Exceptions::External::new('EBox::Exceptions::External', 'Argument must be a IP address') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 91
EBox::Exceptions::Base::throw('EBox::Exceptions::External', 'Argument must be a IP address') called at /usr/share/perl5/EBox/Network.pm line 777
EBox::Network::ifaceByAddress('EBox::Network=HASH(0xb91c73f0)', 'ppp0/94.x.x.x') called at /usr/share/perl5/EBox/Network/Model/GatewayTable.pm line 262
EBox::Network::Model::GatewayTable::validateRow('EBox::Network::Model::GatewayTable=HASH(0xb91e8b8c)', 'update', 'EBox::Network::Model::GatewayTable=HASH(0xb91e8b8c)', undef, 'ip', 'ppp0/94.x.x.x', 'filter', '', 'name', 'ppp-gw-eth2', 'default', 'on', 'auto', undef, 'interface', undef, 'weight', 1, 'id', 'gtw28', 'enabled', 'on') called at /usr/share/perl5/EBox/Model/DataTable.pm line 1203
EBox::Model::DataTable::setRow('EBox::Network::Model::GatewayTable=HASH(0xb91e8b8c)', undef, 'ip', 'ppp0/94.x.x.x', 'filter', '', 'name', 'ppp-gw-eth2', 'default', 'on', 'auto', undef, 'interface', undef, 'weight', 1, 'id', 'gtw28', 'enabled', 'on') called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 225
EBox::CGI::Controller::DataTable::_editField('EBox::CGI::Controller::DataTable=HASH(0xb82d82b4)', 0, 'filter', '', 'ip', 'ppp0/94.x.x.x', 'name', 'ppp-gw-eth2', 'default', 'on', 'auto', undef, 'interface', undef, 'weight', 1, 'id', 'gtw28', 'enabled', 'on') called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 184
EBox::CGI::Controller::DataTable::editField('EBox::CGI::Controller::DataTable=HASH(0xb82d82b4)', 'ip', 'ppp0/94.x.x.x', 'filter', '', 'name', 'ppp-gw-eth2', 'default', 'on', 'auto', undef, 'interface', undef, 'weight', 1, 'id', 'gtw28', 'enabled', 'on') called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 388
EBox::CGI::Controller::DataTable::editAction('EBox::CGI::Controller::DataTable=HASH(0xb82d82b4)', 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb91e8b8c)', 'directory', 'GatewayTable') called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 702
EBox::CGI::Controller::DataTable::_process('EBox::CGI::Controller::DataTable=HASH(0xb82d82b4)') called at /usr/share/perl5/EBox/CGI/ClientRawBase.pm line 167
eval {...} at /usr/share/perl5/EBox/CGI/ClientRawBase.pm line 165
EBox::CGI::ClientRawBase::run('EBox::CGI::Controller::DataTable=HASH(0xb82d82b4)') called at /usr/share/perl5/EBox/CGI/Run.pm line 86
eval {...} at /usr/share/perl5/EBox/CGI/Run.pm line 59
EBox::CGI::Run::run('EBox::CGI::Run', 'Network/Controller/GatewayTable') called at /usr/share/zentyal/cgi/ebox.cgi line 37
eval {...} at /usr/share/zentyal/cgi/ebox.cgi line 25
ModPerl::ROOT::ModPerl::Registry::usr_share_zentyal_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xb845a0a8)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xb952eda4)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xb952eda4)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xb845a0a8)') called at -e line 0
eval {...} at -e line 0

zen.ibm

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Argument must be a IP address
« Reply #6 on: March 24, 2014, 08:12:39 pm »
Проблема решена. Была версия 3.3.3
Code: [Select]
sudo apt-get update
sudo apt-get upgrade
Стала версия 3.3.7
И никаких проблем