Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gchr

Pages: [1]
1
Installation and Upgrades / Re: Trying to install 3.0 RC1
« on: November 30, 2013, 10:18:58 am »
Some progresses here and there but also some surprises like this one:
Code: [Select]
Sep  3 00:41:37 zentyaltest kernel: [21627.401159] init: zentyal.s4sync main process (13299) killed by PIPE signal
Sep  3 00:41:37 zentyaltest kernel: [21627.401261] init: zentyal.s4sync main process ended, respawning
that is flooding syslog  :-\

Hello christian

I know thiw is an old post of yours  but I am experiencing the same 'log flooding' (reported in http://forum.zentyal.org/index.php/topic,18952.msg74200.html#msg74200 )
Have you found an explanation/solution to that?

Regards,
George

2
Every 35 seconds I get in syslog:
Code: [Select]
Nov 28 21:03:13 zenbox kernel: [81587.879237] init: zentyal.s4sync main process (12634) terminated with status 255
Nov 28 21:03:13 zenbox kernel: [81587.879299] init: zentyal.s4sync main process ended, respawning
Nov 28 21:03:48 zenbox kernel: [81622.801888] init: zentyal.s4sync main process (12683) terminated with status 255
Nov 28 21:03:48 zenbox kernel: [81622.801974] init: zentyal.s4sync main process ended, respawning


and for each 'respawning' above I get this in zentyal.log
Code: [Select]
2013/11/28 21:06:28 DEBUG> Sudo.pm:180 EBox::Sudo::_root - /usr/share/perl5/EBox/EventDaemon.pm (pid: 30017) - /etc/init.d/bind9 status
2013/11/28 21:06:28 DEBUG> Sudo.pm:180 EBox::Sudo::_root - /usr/share/perl5/EBox/EventDaemon.pm (pid: 30017) - cat /opt/samba4/var/run/samba.pid
2013/11/28 21:06:29 DEBUG> Sudo.pm:180 EBox::Sudo::_root - /usr/share/perl5/EBox/EventDaemon.pm (pid: 30017) - cat /var/run/apache2.pid
2013/11/28 21:06:43 DEBUG> Sudo.pm:180 EBox::Sudo::_root - /usr/share/zentyal-samba/s4sync (pid: 12978) - ldbsearch -H /opt/samba4/private/sam.ldb -s base -b '' -d0 | grep -v ^GENSEC
2013/11/28 21:06:43 DEBUG> LDB.pm:225 EBox::LDB::dn - # record 1
dn:
configurationNamingContext: CN=Configuration,DC=home,DC=lan
defaultNamingContext: DC=home,DC=lan
rootDomainNamingContext: DC=home,DC=lan
schemaNamingContext: CN=Schema,CN=Configuration,DC=home,DC=lan
subschemaSubentry: CN=Aggregate,CN=Schema,CN=Configuration,DC=home,DC=lan
supportedCapabilities: 1.2.840.113556.1.4.800
supportedCapabilities: 1.2.840.113556.1.4.1670
supportedCapabilities: 1.2.840.113556.1.4.1791
supportedCapabilities: 1.2.840.113556.1.4.1935
supportedCapabilities: 1.2.840.113556.1.4.2080
supportedLDAPVersion: 2
supportedLDAPVersion: 3
vendorName: Samba Team (http://samba.org)
isSynchronized: TRUE
dsServiceName: CN=NTDS Settings,CN=ZENBOX,CN=Servers,CN=Default-First-Site-Nam
 e,CN=Sites,CN=Configuration,DC=home,DC=lan
serverName: CN=ZENBOX,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Config
 uration,DC=home,DC=lan
dnsHostName: zenbox.home.lan
ldapServiceName: home.lan:zenbox$@HOME.LAN
currentTime: 20131128190643.0Z
supportedControl: 1.2.840.113556.1.4.841
supportedControl: 1.2.840.113556.1.4.319
supportedControl: 1.2.840.113556.1.4.473
supportedControl: 1.2.840.113556.1.4.1504
supportedControl: 1.2.840.113556.1.4.801
supportedControl: 1.2.840.113556.1.4.801
supportedControl: 1.2.840.113556.1.4.805
supportedControl: 1.2.840.113556.1.4.1338
supportedControl: 1.2.840.113556.1.4.529
supportedControl: 1.2.840.113556.1.4.417
supportedControl: 1.2.840.113556.1.4.2064
supportedControl: 1.2.840.113556.1.4.1413
supportedControl: 1.2.840.113556.1.4.1413
supportedControl: 1.2.840.113556.1.4.1413
supportedControl: 1.2.840.113556.1.4.1413
supportedControl: 1.2.840.113556.1.4.1413
supportedControl: 1.2.840.113556.1.4.1339
supportedControl: 1.2.840.113556.1.4.1340
supportedControl: 1.2.840.113556.1.4.1413
supportedControl: 1.2.840.113556.1.4.1341
namingContexts: DC=home,DC=lan
namingContexts: CN=Configuration,DC=home,DC=lan
namingContexts: CN=Schema,CN=Configuration,DC=home,DC=lan
namingContexts: DC=DomainDnsZones,DC=home,DC=lan
namingContexts: DC=ForestDnsZones,DC=home,DC=lan
highestCommittedUSN: 114689
domainFunctionality: 2
forestFunctionality: 2
domainControllerFunctionality: 4
isGlobalCatalogReady: TRUE

# returned 1 records
# 1 entries
# 0 referrals

my modules:
Code: [Select]
ii  zentyal-bwmonitor                      3.2                                     Zentyal - Bandwidth Monitor
ii  zentyal-ca                             3.2                                     Zentyal - Certification Authority
ii  zentyal-captiveportal                  3.2                                     Zentyal - Captive Portal
ii  zentyal-common                         3.2.1                                   Zentyal - Common Library
ii  zentyal-core                           3.2.4                                   Zentyal - Core
ii  zentyal-dhcp                           3.2.1                                   Zentyal - DHCP Service
ii  zentyal-dns                            3.2.4                                   Zentyal - DNS Service
ii  zentyal-ebackup                        3.2                                     Zentyal - Backup
ii  zentyal-firewall                       3.2                                     Zentyal - Firewall
ii  zentyal-ftp                            3.2.1                                   Zentyal - FTP
ii  zentyal-gateway                        3.2                                     Zentyal - Gateway Suite
ii  zentyal-infrastructure                 3.2                                     Zentyal - Network Infrastructure Suite
ii  zentyal-l7-protocols                   3.2                                     Zentyal - Layer-7 Filter
ii  zentyal-monitor                        3.2                                     Zentyal - Monitor
ii  zentyal-network                        3.2.3                                   Zentyal - Network Configuration
ii  zentyal-ntp                            3.2                                     Zentyal - NTP Service
ii  zentyal-objects                        3.2                                     Zentyal - Network Objects
ii  zentyal-openvpn                        3.2.1                                   Zentyal - VPN Service
ii  zentyal-samba                          3.2.10                                  Zentyal - File Sharing and Domain Services
ii  zentyal-services                       3.2                                     Zentyal - Network Services
ii  zentyal-software                       3.2.1                                   Zentyal - Software Management
ii  zentyal-squid                          3.2.2                                   Zentyal - HTTP Proxy (Cache and Filter)
ii  zentyal-trafficshaping                 3.2.1                                   Zentyal - Traffic Shaping
ii  zentyal-users                          3.2.4                                   Zentyal - Users and Computers
ii  zentyal-webserver                      3.2                                     Zentyal - Web Server


Any ideas?



4
Installed:

$ dpkg -l zentyal-*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  zentyal-bwmoni 2.2.2          Zentyal - Bandwidth Monitor
ii  zentyal-ca     2.2.2          Zentyal - Certification Authority
ii  zentyal-common 2.2.1          Zentyal - Common Library
ii  zentyal-core   2.2.3          Zentyal - Core
ii  zentyal-dhcp   2.2.1          Zentyal - DHCP Service
ii  zentyal-dns    2.2.1          Zentyal - DNS Service
ii  zentyal-ebacku 2.2.1          Zentyal - Backup
ii  zentyal-firewa 2.2            Zentyal - Firewall
ii  zentyal-ftp    2.2.1          Zentyal - FTP
ii  zentyal-infras 2.2            Zentyal - Network Infrastructure Suite
ii  zentyal-monito 2.2            Zentyal - Monitor
ii  zentyal-networ 2.2.3          Zentyal - Network Configuration
ii  zentyal-ntp    2.2            Zentyal - NTP Service
ii  zentyal-object 2.2            Zentyal - Network Objects
ii  zentyal-openvp 2.2            Zentyal - VPN Service
ii  zentyal-remote 2.2.2          Zentyal - Cloud Client
ii  zentyal-samba  2.2            Zentyal - File Sharing Service
ii  zentyal-servic 2.2            Zentyal - Network Services
ii  zentyal-softwa 2.2.2          Zentyal - Software Management
ii  zentyal-squid  2.2.1          Zentyal - HTTP Proxy (Cache and Filter)
ii  zentyal-users  2.2.3          Zentyal - Users and Groups
ii  zentyal-webser 2.2.2          Zentyal - Web Server

in DHCP -> eth1 (internal) -> Dynamic DNS options

When I set "Static domain" as "Custom" and select my <dynamic domain> from the list DHCP starts and works fine.
When I set "Static domain" as "Same as Dynamic domain" and save, then DHCP doesn't start and in syslog I get:
Code: [Select]
Nov  2 00:38:49 zenbox dhcpd: /etc/dhcp3/dhcpd.conf line 44: unknown key home.lan.
Nov  2 00:38:49 zenbox dhcpd:                     key home.lan.;
Nov  2 00:38:49 zenbox dhcpd:                                  ^
Nov  2 00:38:49 zenbox dhcpd: /etc/dhcp3/dhcpd.conf line 48: unknown key home.lan.
Nov  2 00:38:49 zenbox dhcpd:                     key home.lan.;
Nov  2 00:38:49 zenbox dhcpd:                                  ^
Nov  2 00:38:49 zenbox dhcpd: /etc/dhcp3/dhcpd.conf line 78: unknown key home.lan.
Nov  2 00:38:49 zenbox dhcpd:                     key home.lan.;
Nov  2 00:38:49 zenbox dhcpd:                                  ^
Nov  2 00:38:49 zenbox dhcpd: /etc/dhcp3/dhcpd.conf line 82: unknown key home.lan.
Nov  2 00:38:49 zenbox dhcpd:                     key home.lan.;
Nov  2 00:38:49 zenbox dhcpd:                                  ^
Nov  2 00:38:49 zenbox dhcpd: Configuration file errors encountered -- exiting
Nov  2 00:38:49 zenbox init: ebox.dhcpd3 main process (27351) terminated with status 1

Am I doing something wrong?
Any ideas?

5
Just trying to answer my own questions...

I found out that by issuing
Code: [Select]
rndc freeze
rndc thaw
all zones changes (from .jnl files) are flushed into db.* files

But , shouldn't this be happening when restarting DNS from dashboard or after "saving" changes in DNS in the dynamic zone?
The answer is "no", because "flush-zones-on-shutdown" is not defined as 'yes' in named.conf.options(.mas)

BTW, I thought my buggy "Service" entries were not removed, because db.<mydomain> was not updated on every "save changes". Now that I can flush DNS changes manually, I'm sure they are removed.

So , for me there are no more issues in DNS for the time being.

Regards,
George

6
Hi sixtone!

Thank you for your effort!

I patched and rebooted.
I removed TXT entries by re-creating and removing them as suggested.

But I think something odd is still going going on.
I have two "buggy" SRV entries in my /var/lib/bind/db.home.lan file.
Code: [Select]
$ORIGIN home.lan.
_ldap._tcp SRV 0 0 389 ns
SRV 0 0 389 zenbox
I recreate them, save changes, delete them and again save changes.
They are still there! The strange thing is that, after each "save"  the file /var/lib/bind/db.home.lan is NOT regenerated.
The "last modification" timestamp remains the same.
I don't see any errors in syslog, messages or zentyal.log
Code: [Select]
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': deleting rrset at 'home.lan' A
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': adding an RR at 'home.lan' NS
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': deleting rrset at 'fritzbox.home.lan' A
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': adding an RR at 'fritzbox.home.lan' A
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': deleting rrset at 'fritz.home.lan' CNAME
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': adding an RR at 'fritz.home.lan' CNAME
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': deleting rrset at 'fritz.box.home.lan' CNAME
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': adding an RR at 'fritz.box.home.lan' CNAME
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': deleting rrset at 'ns.home.lan' A
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': adding an RR at 'ns.home.lan' A
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': deleting rrset at 'tpl.home.lan' A
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': adding an RR at 'tpl.home.lan' A
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': deleting rrset at 'zenbox.home.lan' A
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': adding an RR at 'zenbox.home.lan' A
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': deleting rrset at 'zentyal.home.lan' CNAME
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': adding an RR at 'zentyal.home.lan' CNAME
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#36332: updating zone 'home.lan/IN': deleting rrset at 'home.lan' MX
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#45699: updating zone '123.168.192.in-addr.arpa/IN': deleting rrset at '252.123.168.192.in-addr.arpa' PTR
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#45699: updating zone '123.168.192.in-addr.arpa/IN': adding an RR at '252.123.168.192.in-addr.arpa' PTR
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#45699: updating zone '123.168.192.in-addr.arpa/IN': deleting rrset at '200.123.168.192.in-addr.arpa' PTR
Oct 30 00:47:04 zenbox named[26869]: client 127.0.0.1#45699: updating zone '123.168.192.in-addr.arpa/IN': adding an RR at '200.123.168.192.in-addr.arpa' PTR
Oct 30 00:47:05 zenbox named[26869]: shutting down

I have two questions:
Should /var/lib/bind/db.home.lan be regenerated after each save?
Is there a command I can issue to force the regeneration of db.home.lan from db.mas?

Thank you for your time.

7
Upgraded to:

DHCP Service    2.2.1    
DNS Service    2.2.1
and rebooted.

When I go to DNS -> "TXT records" of my dynamic domain and press the delete icon (garbage can)  for a previously entered TXT entry, the following message appears on top of page :
Code: [Select]
An internal error has occurred. This is most probably a bug, relevant information can be found in the logs. Please look for the details in the /var/log/zentyal/zentyal.log file and take a minute to submit a bug report so we can fix the issue as soon as possible.
...and In zentyal.log:
2011/10/28 14:27:41 ERROR> Union.pm:393 EBox::Types::Union::AUTOLOAD - Method printableValueByName is not defined in type select

After that "save changes" appears, I apply it but
/var/lib/bind/db.<mydomain> remains the same e.g the deleted TXT is still there.

Regards,
George

PS: ticket http://trac.zentyal.org/ticket/3412

8
This post is here as a note for future reference for myself and anyone who might have the same problem.

After a full reinstall with 2.2-1 installer, the issue was the same.

i.e I couldn't add hostnames and aliases in my domain because nsupdate was failing.
Dynamic leases were working fine.

I noticed in /var/log/syslog :
Code: [Select]
Oct 15 20:46:35 zenbox named[3009]: listening on IPv4 interface eth1, 192.168.123.200#53
Oct 15 20:46:35 zenbox named[3009]: couldn't mkdir '/var/run/named': Permission denied
Oct 15 20:46:35 zenbox named[3009]: generating session key for dynamic DNS
Oct 15 20:46:35 zenbox named[3009]: couldn't mkdir '/var/run/named': Permission denied
Oct 15 20:46:35 zenbox named[3009]: could not create /var/run/named/session.key
Oct 15 20:46:35 zenbox named[3009]: failed to generate session key for dynamic DNS: permission denied
Oct 15 20:46:35 zenbox kernel: [  442.228246] type=1503 audit(1318700795.020:31):  operation="mkdir" pid=3011 parent=1 profile="/usr/sbin/named" requested_mask="c::" denied_mask="c::" fsuid=110 ouid=110 name="/var/run/named/"

I realized that /var/run/named was missing!
I created it and gave write & exec permissions to bind:bind

UPDATE:
After a reboot  /var/run/named was missing again!
I followed http://lists.zentyal.org/pipermail/zentyal-devel/2011-September/000072.html and replaced paths in /etc/init/ebox.bind9.conf with  /var/run/named

After rebooting  /var/run/named is ok


9
Hello,

I'm running 2.2 in a new installation with these components:
Component    Installed version   
Backup    2.2.1   
Bandwidth Monitor    2.2.2   
Certification Authority    2.2.1   
Cloud Client    2.2.1   
DHCP Service    2.2   
DNS Service    2.2   
FTP    2.2.1   
File Sharing Service    2.2   
Firewall    2.2   
HTTP Proxy (Cache and Filter)    2.2   
Layer-7 Filter    2.2   
Monitor    2.2   
NTP Service    2.2   
Network Configuration    2.2.1   
Network Objects    2.2   
Network Services    2.2   
Traffic Shaping    2.2   
Users and Groups    2.2   
VPN Service    2.2   
Web Server    2.2.1

I have tried to add some hosts and an alias to 'ns' hostname in DNS module.
When saving the changes i get in zentyal.log :
Code: [Select]
2011/10/10 20:56:35 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: dns
2011/10/10 20:56:36 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command nsupdate -l -t 10 /var/lib/zentyal/tmp/eJFPOsRjW6 failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2
2011/10/10 20:56:36 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command nsupdate -l -t 10 /var/lib/zentyal/tmp/mlF_a3yslP failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2
2011/10/10 20:56:36 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command nsupdate -l -t 10 /var/lib/zentyal/tmp/PjQfk_txMk failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2

the forementioned tmp/... files contain respectively:
Code: [Select]
gchr@zenbox:~$ sudo cat /var/lib/zentyal/tmp/eJFPOsRjW6
update delete zen.home.lan
send

gchr@zenbox:~$ sudo cat /var/lib/zentyal/tmp/mlF_a3yslP
zone home.lan
update delete home.lan A
update add home.lan 259200 NS ns.home.lan
update delete fritz.home.lan A
update add fritz.home.lan 259200 A 192.168.1.253
update delete ns.home.lan A
update add ns.home.lan 259200 A 192.168.123.200
update delete home.lan MX
send

gchr@zenbox:~$ sudo cat /var/lib/zentyal/tmp/PjQfk_txMk
zone 123.168.192.in-addr.arpa
update delete 200.123.168.192.in-addr.arpa. PTR
update add 200.123.168.192.in-addr.arpa. 259200 PTR ns.home.lan.
send

I'm not considering myself as a linux expert but I think it has something to do with permissions of zone(?) files in /var/lib/bind

Code: [Select]
gchr@zenbox:~$ sudo ls -l /var/lib/bind/
total 68
-rw-r--r-- 1 bind bind   232 2011-10-10 20:56 db.1.168.192
-rw-r--r-- 1 bind bind   495 2011-10-10 20:14 db.123.168.192
-rw-r--r-- 1 bind bind 19648 2011-10-10 20:48 db.123.168.192.jnl
-rw-r--r-- 1 bind bind   600 2011-10-10 20:16 db.home.lan
-rw-r--r-- 1 bind bind 26114 2011-10-10 20:48 db.home.lan.jnl

Any suggestions?
Thank you in advance!

10
Installation and Upgrades / Re: VPN through the Zentyal Firewall
« on: August 17, 2011, 10:45:27 pm »
I ran the following command line and I think it worked.
insmod / lib/modules/2.6.32-33-generic-pae/kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko
Hi Alex!
Thanks for the tip!!!

I had to fully load all of the following (as indicated by jsalamero), to work for me:
Code: [Select]
sudo insmod /lib/modules/2.6.32-33-generic-pae/kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko
sudo insmod /lib/modules/2.6.32-33-generic-pae/kernel/net/netfilter/nf_conntrack_proto_gre.ko
sudo insmod /lib/modules/2.6.32-33-generic-pae/kernel/net/netfilter/nf_conntrack_pptp.ko
sudo insmod /lib/modules/2.6.32-33-generic-pae/kernel/net/ipv4/netfilter/nf_nat_pptp.ko

11
Installation and Upgrades / Re: VPN through the Zentyal Firewall
« on: August 06, 2011, 06:11:39 pm »
Hello jsalamero,
I'm having the same problem with assisalex

But, trying to 'sudo insmod nf_nat_proto_gre' I get :
insmod: can't read 'nf_nat_proto_gre': No such file or directory
and for the other modules,too.

Any suggestions?

Pages: [1]