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

Pages: [1] 2
1
Installation and Upgrades / Cannot save changes - samba or DNS
« on: September 03, 2020, 01:15:32 am »
I'm having problems.

Zentyal won't save any changes to the samba or dns modules.

Here's what I got from zentyal.log today:

GlobalImpl.pm:727 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: samba  at The following modules failed while saving their changes, their state is unknown: samba  at /usr/share/perl5/EBox/GlobalImpl.pm line 727
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55bd53ca25b8)', 'progress', 'EBox::ProgressIndicator=HASH(0x55bd4f9bd090)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55bd53bafcb0)', 'progress', 'EBox::ProgressIndicator=HASH(0x55bd4f9bd090)') called at /usr/share/zentyal/global-action line 32

Any ideas?

2
Installation and Upgrades / Re: Update log file location
« on: September 01, 2020, 01:21:55 am »
Sorry for the delayed reply, we are a school and everyone cambe back from summer break and I haven't been able to do any server work.

Currently I'm stuck at:

itadmin@luke:/usr/local/crashplan/bin$ sudo dpkg --configure zentyal-dns
Setting up zentyal-dns (6.1.1) ...

The dpkg log says:

2020-08-31 16:06:39 configure zentyal-dns:all 6.1.1 <none>
2020-08-31 16:06:39 status half-configured zentyal-dns:all 6.1.1

The apt log has nothing useful

and df -H says

itadmin@luke:/var/log/zentyal$ df -H
Filesystem      Size  Used Avail Use% Mounted on
udev            4.2G     0  4.2G   0% /dev
tmpfs           836M   15M  821M   2% /run
/dev/sda1       136G   47G   83G  36% /
tmpfs           4.2G   53M  4.2G   2% /dev/shm
tmpfs           5.3M     0  5.3M   0% /run/lock
tmpfs           4.2G     0  4.2G   0% /sys/fs/cgroup
/dev/sdb1       2.2T  1.6T  475G  77% /hdd
tmpfs           836M  4.1k  836M   1% /run/user/1000

I can find nothing that suggests why zentyal-dns won't upgrade. It just sits there doing nothing.

Oh, and now I've tried this, the webadmin won't work either.

Any Ideas?

and just for clarity:

itadmin@luke:/var/log/zentyal$ dpkg -l | grep -Ev '^(ii|rc)'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version                                         Architecture Description
+++-=====================================-===============================================-============-===============================================================================
iF  zentyal-dns                           6.1.1                                           all          Zentyal - DNS Server
iU  zentyal-samba                         6.1.2                                           all          Zentyal - Domain Controller and File Sharing

3
Installation and Upgrades / Restore fails on new server
« on: August 08, 2020, 12:37:18 am »
I had to replace a server. Backed up the entire system using Clonezilla, created the partitions on the new server exactly as they were (hardware is identical) and then restored the backup onto the new server.

On attempting to boot, I get a couple of ACPI errors and then an error connecting to a data drive that holds no system files and then Ubuntu panics and puts me into a recovery mode with no networking or dns and the zentyal webadmin won't start.

Any ideas where I can even start looking for what's going on?

The hardware is identical, I know the backup is good because I've restored it to the original server before and it was fine.

4
Installation and Upgrades / Update log file location
« on: August 03, 2020, 03:27:49 am »
My servers are really screwed up. I had to go back to my last good backup, from the beginning of June.

Now whenever I try to run updates, they hang, sometimes at Zentyal-samba, sometimes at zentyal-dns. When they hang, they knock out networking and DNS so I can no longer connect to the internet to download further updates or anything.

I have tried dpkg --configure -a (which also hangs) and every walk through I can find, which tell me to use --fix-missing and all of those things but nothing helps.

I want to find the log file to try to see if there is a reason the updates are failing but I don't know which log file to log at. Can anyone help?

5
FOUND THE SOLUTION!

We are running CrashPlan for our off-site backups. I stopped the CrashPlan service on the server and the Zentyal-DNS update ran through perfectly.

6
Installation and Upgrades / Update hangs at Zentyal-DNS EVERY TIME
« on: June 13, 2020, 06:15:44 am »
Every single time I try to update either of my servers, the update hangs while updating Zentyal-DNS.

This has happened every time there has been an update since version 6.

It doesn't matter whether I do the update from within webmin or from the command line, it's always the same. Things go swimmingly until it hits Zentyal-DNS.

It generally takes me about 4 hours trying different combinations of dpkg --configure -a and the apt-get reinstall and fix missing commands and eventually things slide on through and start working again.

Does anyone have any idea why this would happen every time? It happens on both of my servers

7
Other modules / Re: Zentyal 6.0 OpenVPN not Listening
« on: September 25, 2019, 11:58:33 pm »
OK, I got it working.

I was getting nothing written to any of the openvpn logs and the service was not even running.

Looking at the syslog, I found that the service was failing to start because it was looking in the wrong place for the server conf file.

Code: [Select]
tail -f -n 5 /var/log/syslog
I copied the conf file to /etc/openvpn/ which was where it was looking for it and then did

Code: [Select]
systemctl daemon-reload
sudo service openvpn start

And it magically started working.

I'm not sure this is the best fix, because if I alter the server config through Zentyal, it will not read the conf file that is being read, but it is a workaround that has me up and running!

8
Other modules / Re: Zentyal 6.0 OpenVPN not Listening
« on: September 25, 2019, 10:36:28 pm »
Thanks DonCamilo,

The broken packages check gives me

Quote
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                  Version                           Architecture Description
+++-=====================================-=================================-============-===============================================================================
hi  libapt-pkg5.0:amd64                   1.2.29                            amd64        package management runtime library

And I'm really not sure what that means.

The OpenVPN seems to be updated correctly, if I'm reading it right.

Quote
zentyal-openvpn:
  Installed: 6.0
  Candidate: 6.0
  Version table:
 *** 6.0 500
        500 http://archive.zentyal.org/zentyal 6.0/main amd64 Packages
        500 http://archive.zentyal.org/zentyal 6.0/main i386 Packages
        100 /var/lib/dpkg/status

But I think I might have found the issue. Syslog tells me:
 
Code: [Select]
Sep 25 13:32:44 genesis systemd[1]: openvpn@OpenVPN-KCS.service: Service hold-off time over, scheduling restart.
Sep 25 13:32:44 genesis systemd[1]: openvpn@OpenVPN-KCS.service: Scheduled restart job, restart counter is at 420.
Sep 25 13:32:44 genesis systemd[1]: Stopped OpenVPN connection to OpenVPN-KCS.
Sep 25 13:32:44 genesis systemd[1]: Starting OpenVPN connection to OpenVPN-KCS...
Sep 25 13:32:44 genesis ovpn-OpenVPN-KCS[20939]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/OpenVPN-KCS.conf
Sep 25 13:32:44 genesis ovpn-OpenVPN-KCS[20939]: Use --help for more information.
Sep 25 13:32:44 genesis systemd[1]: openvpn@OpenVPN-KCS.service: Main process exited, code=exited, status=1/FAILURE
Sep 25 13:32:44 genesis systemd[1]: openvpn@OpenVPN-KCS.service: Failed with result 'exit-code'.
Sep 25 13:32:44 genesis systemd[1]: Failed to start OpenVPN connection to OpenVPN-KCS.

Which suggests that it's looking for OpenVPN-KCS.conf (the server conf file) in /etc/openvpn. That file is actually in /etc/openvpn/OpenVPN-KCS.d though

How do I redirect openvpn to look in the right place for the conf file?

9
Other modules / Re: Zentyal 6.0 OpenVPN not Listening
« on: September 24, 2019, 10:08:39 pm »
DonCamilo, your answer was fantastic, I really appreciate it.

I installed the VPN module through the Zentyal front end and enabled it in the modules section.

I did create the service and added firewall rules, the response I get from iptables says
Code: [Select]
iaccept    udp  --  anywhere             anywhere             udp dpt:openvpn state NEW
iaccept    udp  --  anywhere             anywhere             udp dpt:openvpn
iaccept    udp  --  anywhere             anywhere             udp dpt:openvpn state NEW

All openvpn logs are completely empty. Not a single character in them.
Code: [Select]
sudo zs openvpn statusSays
Code: [Select]
Zentyal: status module openvpn:                 [ STOPPED ]

Code: [Select]
sudo ss -ulpn | grep openvpngives no response.

I cannot figure it out!

10
Other modules / Zentyal 6.0 OpenVPN not Listening
« on: September 24, 2019, 07:36:55 pm »
I'm tearing my hair out here.

I've tried installing and reinstalling the VPN module multiple times but it doesn't appear to be listening on port 1194.

It is also writing nothing to the VPN log files. They are completely empty.

Code: [Select]
nmap -sU localhost -p 1194
Gives me:

Quote
Starting Nmap 7.01 ( https://nmap.org ) at 2019-09-24 10:35 PDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000068s latency).
Other addresses for localhost (not scanned): ::1
PORT     STATE  SERVICE
1194/udp closed openvpn

Does anyone have any idea what might be going wrong?

11
Email and Groupware / How to mass add mailboxes for current users
« on: February 15, 2019, 10:35:27 pm »
Hi all,

I have just added the mail module to my Zentyal 5.1 installation here at our school.

However, I cannot find anywhere where I can create mailboxes for all of my current users without going into each account and creating them manually.

Is there a way to do this as a batch process?

Many thanks,

Peter

12
The solution from J. A. Calvo

Code: [Select]
wget http://archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg5.0_1.2.29_amd64.deb
sudo dpkg --install --force-downgrade libapt-pkg5.0_1.2.29_amd64.deb

Did not work for me, I got a 404 error.

Mrme's solution worked though and I am now up and running. Thank you!

Code: [Select]
wget https://launchpad.net/ubuntu/+archive/primary/+files/libapt-pkg5.0_1.2.29_amd64.deb
sudo dpkg --install --force-downgrade libapt-pkg5.0_1.2.29_amd64.deb

13
Other modules / Re: Denying DHCP leases by MAC Address
« on: April 20, 2018, 08:54:03 pm »
Thanks Julio, it worked!

14
Other modules / Re: Denying DHCP leases by MAC Address
« on: February 27, 2018, 10:21:27 pm »
Thank You Julio  I appreciate the help. I'm trying it out and will get back to you with what happens. DHCP leases are set for a week at the moment so we will see when that time is up if they can renew the lease or not

15
Other modules / Denying DHCP leases by MAC Address
« on: February 21, 2018, 09:10:35 pm »
Hi,

I am using Zentyal server at my school and unfortunately, no matter how many times I change the WiFi password, the students always manage to find out what it is and clog up our rather slow internet connection with their phones.

I'd like to be able to find a way to deny them access to the network in a way that they can't get around and am wondering if it is possible to deny them IP Addresses through DHCP by their MAC address.

Does anyone know how this can be done, or if there is a better way of booting them off my network (or stopping them from getting on it in the first place)?

Pages: [1] 2