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 - JPB

Pages: [1] 2 3 ... 6
1
Installation and Upgrades / Re: Yet another Z4 File ACL issue
« on: February 02, 2015, 09:49:59 pm »
The logfile show these "enrepu" being the sharename and the directory under /home/samba/shares

Code: [Select]
2015/02/02 22:28:49 ERROR> Samba.pm:1300 EBox::Samba::_postServiceHook - Error setting security descriptor on file enrepu/_LNZ2F~0.PDF: Failed to open: NT_STATUS_OBJECT_NAME_NOT_FOUND at /usr/share/perl5/EBox/Samba.pm line 1298, <GEN0> line 2256.
2015/02/02 22:30:55 ERROR> Samba.pm:1300 EBox::Samba::_postServiceHook - Error setting security descriptor on file enrepu/_I2KZI~2.PDF: Failed to open: NT_STATUS_OBJECT_NAME_NOT_FOUND at /usr/share/perl5/EBox/Samba.pm line 1298, <GEN0> line 2256.

How can I fix these ?

2
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?

3
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]

4
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)

5
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

6
News and Announcements / [SOLVED]
« on: April 17, 2014, 12:35:24 pm »
I found a Solution on http://ubuntuforums.org/showthread.php?t=1608698 thanx to  matt_symes
Quote
There is a way to manually remove a package from dpkg.
This is assuming you have tried _all_ other methods.
i.e Purging and removing the package from dpkg.

As unless you know what you are doing you can do serious damage. If you want to be sure, it might be worth trying it in a VM first.
And make a backup the /var/lib/dpkg directory. I dont want to break your setup. Use at your own risk. Also i used this under debian.

1. dpkg -P suricata

If this does not work

2. dpkg -L suricata

This will list the files that suricatauses.

Navigate to.

3. /var/lib/dpkg/info

Delete the file.

4. suricata.postrm

Run

5. apt-get remove --purge suricata

Remove all files and directories you found with dpkg -L  <<<---Careful don't delete directories only files!!

Then run

6. apt-get update.

Kind regards.

7
Installation and Upgrades / Re: Upgrade from 3.3 to 3.4 - Messup!
« on: April 17, 2014, 12:33:09 pm »
I found a Solution on http://ubuntuforums.org/showthread.php?t=1608698 thanx to  matt_symes
Quote
There is a way to manually remove a package from dpkg.
This is assuming you have tried _all_ other methods.
i.e Purging and removing the package from dpkg.

As unless you know what you are doing you can do serious damage. If you want to be sure, it might be worth trying it in a VM first.
And make a backup the /var/lib/dpkg directory. I dont want to break your setup. Use at your own risk. Also i used this under debian.

1. dpkg -P suricata

If this does not work

2. dpkg -L suricata

This will list the files that suricatauses.

Navigate to.

3. /var/lib/dpkg/info

Delete the file.

4. suricata.postrm

Run

5. apt-get remove --purge suricata

Remove all files and directories you found with dpkg -L  <<<---Careful don't delete directories only files!!

Then run

6. apt-get update.

Kind regards.

8
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)

9
News and Announcements / BIG mess!!!
« on: April 17, 2014, 10:52:01 am »
After making the edit above in prev post and running apt-get update && apt-get upgrade results in:
Code: [Select]
...
...
...
Extracting templates from packages: 96%E: Could not open file descriptor -1
E: Prior errors apply to /var/cache/apt/archives/libdatetime-locale-perl_1%3a0.45-2_all.deb
E: Prior errors apply to /var/cache/apt/archives/libdatetime-perl_2%3a1.03-1_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/libfm-data_1.1.2-0ubuntu1_all.deb
E: Prior errors apply to /var/cache/apt/archives/libfm-gtk-data_1.1.2-0ubuntu1_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/libpam-ldap_184-8.5ubuntu3_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/libtommath0_0.42.0-1build1_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/mtr_0.85-1_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/python-tz_2012c-1_all.deb
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 100%
Setting up bash (4.2-5ubuntu3) ...
Installing new version of config file /etc/bash.bashrc ...
Installing new version of config file /etc/skel/.bashrc ...
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
(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
Preparing to replace dash 0.5.7-2ubuntu2 (using .../dash_0.5.7-3ubuntu1_amd64.deb) ...
Unpacking replacement dash ...
Processing triggers for man-db ...
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)

10
I just browsed through the repo and the 3.4 branch is not there: http://ppa.launchpad.net/zentyal/

It seem like they dropped the ppa.launchpad but did not include edit for it in the /etc/apt/sources.list edit in the upgrade script. It did add the line
Code: [Select]
deb http://archive.zentyal.org/zentyal 3.4 main extraLooks like it supersede the ppa I did a rem # on that line and ran the update again - holding thumbs!

11
News and Announcements / Zentyal upgrade failed
« on: April 17, 2014, 10:33:24 am »
Error log show these after Upgrade was pressed and it went through it all

Code: [Select]
Errors were encountered while processing:
 suricata
 zentyal-ips

Zentyal upgrade failed. Full log at /var/log/zentyal/upgrade.log.

I also found this error running apt-get update
Code: [Select]
W: Failed to fetch http://ppa.launchpad.net/zentyal/3.4/ubuntu/dists/saucy/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/zentyal/3.4/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found

12
News and Announcements / Re: Zentyal 3.4 available!
« on: April 17, 2014, 10:25:20 am »
Error log show these after Upgrade was pressed and it went through it all

Code: [Select]
Errors were encountered while processing:
 suricata
 zentyal-ips

Zentyal upgrade failed. Full log at /var/log/zentyal/upgrade.log.

I also found this error running apt-get update
Code: [Select]
W: Failed to fetch http://ppa.launchpad.net/zentyal/3.4/ubuntu/dists/saucy/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/zentyal/3.4/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found

13
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

14
Installation and Upgrades / Re: Problems getting to my GW Router
« on: January 14, 2014, 06:31:38 pm »
You did mark eth1 (your interface that is connected with your modem) as external? Since this is a MUST for Zentyal acting as a gateway.
Then for your internal LAN Zentyal will be the Gateway.
Funny 1, Indeed a funny question - If I did not then my default roue and postroute will not be like in my question, I also don't have issues getting to the Internet but only to get to the single device serving as my GW.

15
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.

Pages: [1] 2 3 ... 6