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.


Topics - JPB

Pages: [1] 2 3
1
Installation and Upgrades / Yet another Z4 File ACL issue
« on: February 02, 2015, 10:25:46 am »
Err Message

Code: [Select]
ERROR> Samba.pm:1300 EBox::Samba::_postServiceHook - Error setting security descriptor on file
My Scenario started by uninstalling Domain Controller and File Sharing and re-installing it due to some error there.

Upon re-installing the old shares did not exist and so did the users not exist
If I then add the shares and point them to the original directories the error above occur, even once I added some ACL entries.
My guess is that the old File stored extended File ACL stored is what stops this from happening. How can I reset this?

2
After Power failure I am getting this in my logfile Attached

Please HELP me fix this ! Urgent

Code: [Select]
[size=12pt][font=courier]root@chaos:~# netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name
tcp        0      0 127.0.0.1:10023         0.0.0.0:*               LISTEN      0          10615       1129/postgrey.pid -
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      105        11431       1047/mysqld
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      106        12302       1722/redis-server 1
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      126        10891       1277/memcached
tcp        0      0 127.0.0.1:6380          0.0.0.0:*               LISTEN      107        12091       1744/redis-server 1
tcp        0      0 192.168.70.254:53       0.0.0.0:*               LISTEN      112        16365       2821/named
tcp        0      0 192.168.3.254:53        0.0.0.0:*               LISTEN      112        16363       2821/named
tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      112        16361       2821/named
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      112        16359       2821/named
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          10480       970/sshd
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      112        16432       2821/named
tcp        0      0 0.0.0.0:538             0.0.0.0:*               LISTEN      0          10859       1267/gdomap
tcp        0      0 0.0.0.0:8443            0.0.0.0:*               LISTEN      0          10518       1036/nginx.conf
tcp        0      0 0.0.0.0:33537           0.0.0.0:*               LISTEN      127        11240       1616/beam.smp
tcp6       0      0 :::5672                 :::*                    LISTEN      127        11988       1616/beam.smp
tcp6       0      0 :::4369                 :::*                    LISTEN      127        10919       1337/epmd
tcp6       0      0 :::22                   :::*                    LISTEN      0          10482       970/sshd
udp        0      0 0.0.0.0:538             0.0.0.0:*                           0          10858       1267/gdomap
udp        0      0 0.0.0.0:7889            0.0.0.0:*                           0          14995       2684/dhcpd
udp        0      0 127.0.0.1:11211         0.0.0.0:*                           126        10892       1277/memcached
udp        0      0 192.168.70.254:53       0.0.0.0:*                           112        16364       2821/named
udp        0      0 192.168.3.254:53        0.0.0.0:*                           112        16362       2821/named
udp        0      0 127.0.1.1:53            0.0.0.0:*                           112        16360       2821/named
udp        0      0 127.0.0.1:53            0.0.0.0:*                           112        16358       2821/named
udp        0      0 0.0.0.0:67              0.0.0.0:*                           0          15984       2684/dhcpd
udp        0      0 192.168.70.254:123      0.0.0.0:*                           0          16963       3157/ntpd
udp        0      0 192.168.3.254:123       0.0.0.0:*                           0          16962       3157/ntpd
udp        0      0 127.0.1.1:123           0.0.0.0:*                           0          16961       3157/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*                           0          16960       3157/ntpd
udp        0      0 0.0.0.0:123             0.0.0.0:*                           0          16953       3157/ntpd
udp6       0      0 :::123                  :::*                                0          16954       3157/ntpd
udp6       0      0 :::22653                :::*                                0          14996       2684/dhcpd[/font][/size]

3
Running an upgrade  Plse help to fix
Code: [Select]
root@chaos:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up zentyal-openchange (4.0.4) ...
/var/lib/dpkg/info/zentyal-openchange.postinst: line 12: syntax error near unexpected token `)'
/var/lib/dpkg/info/zentyal-openchange.postinst: line 12: `    triggered)'
dpkg: error processing package zentyal-openchange (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 zentyal-openchange
E: Sub-process /usr/bin/dpkg returned an error code (1)

4
Installation and Upgrades / I have no Idea how to solve this issue !
« on: November 09, 2014, 11:47:25 pm »
Please help me I get this whenever i Save changes
Code: [Select]

Some modules reported error when saving changes . More information on the logs in /var/log/zentyal/

The following modules failed while saving their changes, their state is unknown: samba jabber mailfilter squid mail openchange The following modules failed while saving their changes, their state is unknown: samba jabber mailfilter squid mail openchange at The following modules failed while saving their changes, their state is unknown: samba jabber mailfilter squid mail openchange at /usr/share/perl5/EBox/GlobalImpl.pm line 742 EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x4a1f9d0)', 'progress', 'EBox::ProgressIndicator=HASH(0x2ce37a0)') called at /usr/share/perl5/EBox/Global.pm line 95 EBox::Global::AUTOLOAD('EBox::Global=HASH(0x4a1f418)', 'progress', 'EBox::ProgressIndicator=HASH(0x2ce37a0)') called at /usr/share/zentyal/global-action line 32 eval {...} at /usr/share/zentyal/global-action line 30

5
Installation and Upgrades / Upgrade from 3.3 to 3.4 - Messup!
« on: April 17, 2014, 11:55:36 am »
After pressing the "Magic" button to Upgrade from 3.3 to 3.4 I got an Error that IPS did not install - depends on suricata.  I did all of the following even tried to remove all apt archives and fetched from another source server!  Someone more clevir than me need to help please!
Code: [Select]
sudo dpkg --configure -a
Code: [Select]
root@chaos:~# sudo dpkg --configure -a
dpkg: error processing suricata (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
dpkg: dependency problems prevent configuration of zentyal-ips:
 zentyal-ips depends on suricata; however:
  Package suricata is not configured yet.

dpkg: error processing zentyal-ips (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
Code: [Select]
root@chaos:/var/cache/apt/archives# apt-get install suricata
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apache2-mpm-prefork apache2.2-bin autotools-dev bc cups-filters foomatic-db foomatic-db-engine foomatic-filters gnustep-make gobjc-4.6 hplip-data
  libapache-singleton-perl libapache2-authcookie-perl libbind9-80 libconfig++8 libconfig8 libcupscgi1 libcupsfilters1 libcupsmime1 libcupsppdc1 libdconf0
  libdm0 libdns81 libexif12 libexporter-cluster-perl libgd2-xpm libgnustep-base1.22 libgphoto2-2 libgphoto2-port0 libhpmud0 libieee1284-3 libisc83
  libisccc80 libisccfg82 liblcms1 liblua5.1-0 liblwres80 libnet-cups-perl libobjc3 libsane libsane-common libsane-hpaio libsnmp-base libsnmp15
  libtcmalloc-minimal0 libtommath0 libv4l-0 libv4lconvert0 linux-headers-3.8.0-30 linux-headers-3.8.0-30-generic php-mdb2 php-mdb2-driver-mysql php5-ldap
  poppler-utils python-apport python-dbus python-dbus-dev python-gi python-gnupginterface python-gobject-2 python-imaging python-keyring
  python-launchpadlib python-lazr.restfulclient python-lazr.uri python-oauth python-pexpect python-problem-report python-reportlab python-wadllib
  python-zope.interface samba4
Use 'apt-get autoremove' to remove them.
Recommended packages:
  oinkmaster
The following packages will be upgraded:
  suricata
1 upgraded, 0 newly installed, 0 to remove and 343 not upgraded.
2 not fully installed or removed.
Need to get 785 kB of archives.
After this operation, 1 501 kB disk space will be freed.
Get:1 http://cz.archive.ubuntu.com/ubuntu/ saucy/universe suricata amd64 1.4.3-1 [785 kB]
Fetched 785 kB in 5s (132 kB/s)
E: Could not open file descriptor -1
debconf: apt-extracttemplates failed: No such file or directory
(Reading database ... 335809 files and directories currently installed.)
Preparing to replace suricata 1.1.1-1 (using .../suricata_1.4.3-1_amd64.deb) ...
 * NFQUEUE support not found !
 * Please ensure the nfnetlink_queue module is loaded or built in kernel
invoke-rc.d: initscript suricata, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
 * NFQUEUE support not found !
 * Please ensure the nfnetlink_queue module is loaded or built in kernel
invoke-rc.d: initscript suricata, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/suricata_1.4.3-1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
 * NFQUEUE support not found !
 * Please ensure the nfnetlink_queue module is loaded or built in kernel
invoke-rc.d: initscript suricata, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 5
Errors were encountered while processing:
 /var/cache/apt/archives/suricata_1.4.3-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Code: [Select]
root@chaos:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apache2-mpm-prefork apache2.2-bin autotools-dev bc cups-filters foomatic-db foomatic-db-engine foomatic-filters gnustep-make gobjc-4.6 hplip-data
  libapache-singleton-perl libapache2-authcookie-perl libbind9-80 libconfig++8 libconfig8 libcupscgi1 libcupsfilters1 libcupsmime1 libcupsppdc1 libdconf0
  libdm0 libdns81 libexif12 libexporter-cluster-perl libgd2-xpm libgnustep-base1.22 libgphoto2-2 libgphoto2-port0 libhpmud0 libieee1284-3 libisc83
  libisccc80 libisccfg82 liblcms1 liblua5.1-0 liblwres80 libnet-cups-perl libobjc3 libsane libsane-common libsane-hpaio libsnmp-base libsnmp15
  libtcmalloc-minimal0 libtommath0 libv4l-0 libv4lconvert0 linux-headers-3.8.0-30 linux-headers-3.8.0-30-generic php-mdb2 php-mdb2-driver-mysql php5-ldap
  poppler-utils python-apport python-dbus python-dbus-dev python-gi python-gnupginterface python-gobject-2 python-imaging python-keyring
  python-launchpadlib python-lazr.restfulclient python-lazr.uri python-oauth python-pexpect python-problem-report python-reportlab python-wadllib
  python-zope.interface samba4
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  suricata
Recommended packages:
  oinkmaster
The following packages will be upgraded:
  suricata
1 upgraded, 0 newly installed, 0 to remove and 342 not upgraded.
3 not fully installed or removed.
Need to get 0 B/785 kB of archives.
After this operation, 1 501 kB disk space will be freed.
Do you want to continue [Y/n]? y
E: Could not open file descriptor -1
debconf: apt-extracttemplates failed: No such file or directory
Setting up grep (2.14-3) ...
(Reading database ... 335809 files and directories currently installed.)
Preparing to replace suricata 1.1.1-1 (using .../suricata_1.4.3-1_amd64.deb) ...
 * NFQUEUE support not found !
 * Please ensure the nfnetlink_queue module is loaded or built in kernel
invoke-rc.d: initscript suricata, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
 * NFQUEUE support not found !
 * Please ensure the nfnetlink_queue module is loaded or built in kernel
invoke-rc.d: initscript suricata, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/suricata_1.4.3-1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
 * NFQUEUE support not found !
 * Please ensure the nfnetlink_queue module is loaded or built in kernel
invoke-rc.d: initscript suricata, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 5
Errors were encountered while processing:
 /var/cache/apt/archives/suricata_1.4.3-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

6
I run Zentyal Community Edition 3.3
Code: [Select]
root@chaos:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.4 LTS
Release:        12.04
Codename:       precise

My problem is to update the Anti-Virus, Please suggest a solution.  All else was updated via apt-get update and apt-get upgrade

Code: [Select]
root@chaos:~# apt-get install zentyal-antivirus
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 zentyal-antivirus : Depends: libclamav-xs-perl but it is not installable
E: Unable to correct problems, you have held broken packages.
root@chaos:~# ^C
root@chaos:~# apt-get install libclamav-xs-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libclamav-xs-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libclamav-xs-perl' has no installation candidate

7
Installation and Upgrades / Problems getting to my GW Router
« on: January 13, 2014, 01:51:40 pm »
I have been running zentyal since the start.
This time i seem to have boxed myself in my setup is like this


Internet -> DSL Modem [IP=192.168.3.1]  ->  Zentyal [192.168.3.254]
Code: [Select]
root@chaos:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1

iptables looks like this
Code: [Select]
:premodules - [0:0]
-A POSTROUTING ! -s 192.168.3.254/32 -o eth1 -j SNAT --to-source 192.168.3.254
...
-A fnospoof -s 192.168.3.0/24 ! -i eth1 -j fdrop
...
-A inospoof -s 192.168.3.0/24 ! -i eth1 -j idrop
My access is from the internal network on eth0 [192.168.70.1/24]
Something block my HTTP(s) access to the device however i can do pings to it.
Code: [Select]
root@chaos:~# ping 192.168.3.1
PING 192.168.3.1 (192.168.3.1) 56(84) bytes of data.
64 bytes from 192.168.3.1: icmp_req=1 ttl=64 time=0.695 ms

How can I change my config (hopefully via the Zentyal GUI) to connect to my GW modem/router on 192.168.3.1 to re-configure/get status?
Currently i need to add the IP range to my PC and plug it into the switch - which mean the internet is off for that time as the Zentyal is my main router device.

8
Installation and Upgrades / PPTP server but no client?
« on: October 14, 2013, 10:11:20 pm »
Am I correct? ,by adding the pptp component you get a pptp server on zentyal but not a pptp client, althow all the gooddies sit there under the bonnet I simply cant make another interface pptp to a seperate network.

Background.  How can I make a PPtP connection to a network from my network gateway Zentyal box.  The software is there but the GUI does not seem to cater for the event.
Its like adding a PPPOE connection.
What ppl dont know is that PPPOE gateways can make more than one PPPOE connection if the device is in bridge mode.  But once i have bound one ETH to a pppoe then the ability to add yet another interface is gone - althow legal.
Likewise Microsoft allow you to make many "dialup" or ppp-type connections via modems and other devices as you please.

9
Installation and Upgrades / Converting VirtualBox .vdi to qcow2 for
« on: October 01, 2012, 07:56:56 pm »
After some Googling I found some users with some success in converting VirtualBox to qcow for the use in KVM on Zentyal 3

on the bottom of page Convert Virtualbox vdi to KVM qcow I found a One-Liner but it also states that the tool used was a newer version that ships in Zentyal 3.0
Quote
qemu-img convert -f vdi oldImage.vdi -O qcow2 newImage.qcow
Works for me also.
qemu-img version 1.0.50

How can I update my Older copy of the tool
Quote
qemu-img version 1.0, Copyright (c) 2004-2008 Fabrice Bellard
usage: qemu-img command [command options]
QEMU disk image utility

10
Installation and Upgrades / mail error after update to 2.2
« on: September 25, 2012, 02:05:01 pm »
Some old users accounts seem to have corrupted entries in the Ldap DB
During the Upgrade from 2.0 -> 2.2 I recieved a few errors and had to re-install Zentyl packages after fixing dependencies and re-run the post-upgrade scripts.  All settings seemed fine but this one below.  This however is a showstopper and I cannot get the mailserver to restart.

I tried to delete the mail account then the whole user but an error pop up about the quota.  As far as I can seethis record never got processed to be updated! or has some corrupted info in.   I presume I can delete this user fromthe Ldap database with [referencial Integrity] but I dont know how

2012/09/25 14:02:14 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: mail
2012/09/25 14:02:17 ERROR> Ldap.pm:699 EBox::Ldap::_errorOnLdap - $VAR1 = {
          'changes' => [
                         'delete',
                         [
                           'mail',
                           'gladwin@ame.local',
                           'mailbox',
                           'ame.local/gladwin/',
                           'userMaildirSize',
                           '0',
                           'mailHomeDirectory',
                           '/var/vmail/',
                           'objectClass',
                           'couriermailaccount',
                           'objectClass',
                           'usereboxmail',
                           'objectClass',
                           'fetchmailUser'
                         ]
                       ]
        };
2012/09/25 14:02:17 ERROR> Ldap.pm:701 EBox::Ldap::_errorOnLdap - Unknown error at EBox::MailUserLdap::delUserAccount attribute 'quota' not allowed
2012/09/25 14:02:17 ERROR> GlobalImpl.pm:612 EBox::GlobalImpl::__ANON__ - Failed to save changes in module mail: Unknown error at EBox::MailUserLdap::delUserAccount attribute 'quota' not allowed
2012/09/25 14:02:17 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: zarafa
2012/09/25 14:02:20 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: logs
2012/09/25 14:02:20 ERROR> GlobalImpl.pm:664 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: mail

11
on the Asterisk module:

Does this version of asterisk support the "return to transferee" and then "return to operator" features.
It seem that this feature, which is default for the hardware bases PBX's, is optional patch for asterisk.
Does the Zentyal compile for asterisk include these?

I did not think that anyone can run a PBX without these features.

12
Installation and Upgrades / pptp blocked!
« on: November 21, 2011, 09:43:32 am »
I had some PPTP vpn connections to servers outside on the Internet but since I upgraded to 2.2 they don't connect.
My guess is with the introduction of PPTP (1723 TCP/GRE) is now blocked from Inside my network to the Internet
What is the most elegant way of making sure this is not happening?

13
I recieve mail from my server cheetah with the heading
"Cron <root@cheetah> test $(date +%w) -ne 0 &&  /usr/share/ebox-ebackup/ebox-remote-ebackup --incremental"
and content:
Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 567, <GEN13> line 1.
Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 567, <GEN15> line 1.
Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 567, <GEN17> line 1.
Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 567, <GEN19> line 1.
Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 567, <GEN21> line 1.
Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 567, <GEN23> line 1.
Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 567, <GEN25> line 1.


What is the cause? and Solution?

14
For some reason, they say its to be able to recover from desasters, some Linux users partition drives rather stupid. This layout is created by the Distribution CD.

Code: [Select]
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c3dfd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          32      248832   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              32      121602   976510977    5  Extended
/dev/sda5              32      121602   976510976   8e  Linux LVM
Code: [Select]
root@chaos:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/chaos-root
                      895G  653G  197G  77% /
none                  3.9G  272K  3.9G   1% /dev
none                  3.9G     0  3.9G   0% /dev/shm
none                  3.9G  4.2M  3.9G   1% /var/run
none                  3.9G  4.0K  3.9G   1% /var/lock
none                  3.9G     0  3.9G   0% /lib/init/rw
none                  895G  653G  197G  77% /var/lib/ureadahead/debugfs
/dev/sda1             228M  144M   73M  67% /boot

The problem is a few months down the line the / {root} partition fills up and voila big mess!

To fix the problem takes an anormous amount of time and Knowledge.

PPL keep it simple, Make backup, and Make One Pasrtition so that isf something Fill up its NOT the tmp directory or the root one!
If the Whole disk fills up then ok, the chances for this is somewhat smaller than the cylinders allocated by the Distribution.!!!

It happened 3x in RL running environments it will happen again.  PPL think about this find a nother solution if you absolutely HAVE to partition is pieces!

15
Installation and Upgrades / Sending all VoIP Out via different Gateway
« on: September 20, 2011, 07:21:12 am »
I need to split all VoiP traffic to a Seperate provider but I dont know how to accomplish this.
I have one Internal Network on eth0 where the VoIP come from
I have my STD ISP on eth1
I have my VoIP ISP on eth2

I added some trafic shaping rules for all VoIP services on both External interfaces, but my trunk from my dedicated VoIP server go through my default Gateway. Because of the Shaping its not to shabby but in high traffic it fails as the line is not shaped for voice on the provider side.  The eth2 provider does shape it also.

I made a Service called VoIP with these ports in

Protocol    Source port    Destination port
UDP    4569    4569    
UDP    2727    2727    
UDP    10000:20000    10000:20000    
UDP    5060    5060    
UDP    5036    5036    

And tried to use Loadbalance to redirect.

Is there any help on this?  ???

Pages: [1] 2 3