Urbackup Server broken?

backup
v7

(fpausp) #1

NethServer Version: 7.4 latest

I think my urbackup-server is broken, how can I fix this:

Package nethserver-urbackup-0.1.2-1.ns7.sdl.noarch already installed and latest version
Nothing to do

(Markus Neuberger) #2

Is the service running?

systemctl status urbackup-server

If not, start it with systemctl start urbackup-server

Are there error entries in /var/log/messages or /var/log/urbackup.log?


(fpausp) #3
[root@neth1 ~]# systemctl status urbackup-server

â—Ź urbackup-server.service - UrBackup Client/Server Network Backup System
   Loaded: loaded (/usr/lib/systemd/system/urbackup-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2018-03-23 08:45:11 CET; 1 day 3h ago
  Process: 977 ExecStart=/usr/bin/urbackupsrv run --config /etc/sysconfig/urbackup-server --no-consoletime (code=exited, status=44)
 Main PID: 977 (code=exited, status=44)
[root@neth1 ~]# cat /var/log/messages | grep urbackup

Mar 22 13:31:02 neth1 urbackupsrv: 2018-03-22 13:31:02: ERROR: Unable to change logfile ownership
Mar 22 13:31:02 neth1 urbackupsrv: ERROR: Unable to change user, probably because process uid is not root. Errno: 0
Mar 22 13:31:02 neth1 systemd: urbackup-server.service: main process exited, code=exited, status=44/n/a
Mar 22 13:31:02 neth1 systemd: Unit urbackup-server.service entered failed state.
Mar 22 13:31:02 neth1 systemd: urbackup-server.service failed.
Mar 23 08:45:10 neth1 urbackupsrv: 2018-03-23 08:45:10: ERROR: Unable to change logfile ownership
Mar 23 08:45:10 neth1 urbackupsrv: ERROR: Unable to change user, probably because process uid is not root. Errno: 0
Mar 23 08:45:11 neth1 systemd: urbackup-server.service: main process exited, code=exited, status=44/n/a
Mar 23 08:45:11 neth1 systemd: Unit urbackup-server.service entered failed state.
Mar 23 08:45:11 neth1 systemd: urbackup-server.service failed.


[root@neth1 ~]# cat /var/log/urbackup.log

2018-03-22 13:31:02: ERROR: Unable to change user, probably because process uid is not root. Errno: 0
2018-03-23 08:45:10: ERROR: Unable to change user, probably because process uid is not root. Errno: 0


[root@neth1 ~]# systemctl start urbackup-server

[root@neth1 ~]# systemctl status urbackup-server
â—Ź urbackup-server.service - UrBackup Client/Server Network Backup System
   Loaded: loaded (/usr/lib/systemd/system/urbackup-server.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2018-03-24 12:10:57 CET; 4s ago
 Main PID: 5040 (urbackupsrv)
   CGroup: /system.slice/urbackup-server.service
           └─5040 /usr/bin/urbackupsrv run --config /etc/sysconfig/urbackup-server --no-consoletime

(fpausp) #4

Thank you Markus. Hopefully it works stable now…


(Markus Neuberger) #5

You’re welcome. You may check if it starts after a reboot…


(fpausp) #6

Yes, I just like to backup the client ap002 first… :grinning:


(fpausp) #7

Same problem after reboot, service is not running. By the way, I use an Ibay for Urbackup. Any Ideas ?


(Markus Neuberger) #8

I can’t reproduce it.
As a workaround you may start the service via cron or /etc/rc.local until the problem is solved.
Which modules do you have installed?


(fpausp) #9


(Markus Neuberger) #10

I reproduced your setup in a VM but urbackup still starts on boot.
Do you use some custom templates?


(fpausp) #11

Just next-server option for dhcp to be able to work with the FOG Cloneserver…


(fpausp) #12

The next problem:

cat /etc/e-smith/templates-custom/etc/dhcpd.conf/99fog

gives me just an empty file ???


(fpausp) #13

sorry, this was a corpse in the cellar :sweat_smile:

cat /etc/e-smith/templates-custom/etc/dnsmasq.conf/99fog

# The boot filename, Server name, Server Ip Address
dhcp-boot=undionly.kpxe,,192.168.nnn.nnn

(Marc) #14

Do you see any additional error with journalctl -u urbackup-server ?


(Markus Neuberger) #15

My urbackup-server config to compare:

[root@testserver ~]# config show urbackup-server
urbackup-server=service
    BroadcastDiscoveryUDPPort=35623
    FixedIP=
    InternetClientTCPPort=55415
    Name=urbackup
    PublicAccess=private
    TCPPorts=55413,55414
    access=
    status=enabled

You may try remove and install again as a last instance:

yum -y autoremove nethserver-urbackup
yum -y install nethserver-urbackup

(fpausp) #16
[root@neth1 ~]# journalctl -u urbackup-server

-- Logs begin at Sat 2018-03-24 12:27:14 CET, end at Sat 2018-03-24 14:46:33 CET. --
Mar 24 12:27:28 neth1.nnn.at systemd[1]: Started UrBackup Client/Server Network Backup System.
Mar 24 12:27:28 neth1.nnn.at systemd[1]: Starting UrBackup Client/Server Network Backup System...
Mar 24 12:27:31 neth1.nnn.at urbackupsrv[971]: 2018-03-24 12:27:31: ERROR: Unable to change logfile ownership
Mar 24 12:27:31 neth1.nnn.at urbackupsrv[971]: ERROR: Unable to change user, probably because process uid is not root
Mar 24 12:27:32 neth1.nnn.at systemd[1]: urbackup-server.service: main process exited, code=exited, status=44/n/a
Mar 24 12:27:32 neth1.nnn.at systemd[1]: Unit urbackup-server.service entered failed state.
Mar 24 12:27:32 neth1.nnn.at systemd[1]: urbackup-server.service failed.

(fpausp) #17
[root@neth1 ~]# config show urbackup-server

urbackup-server=service
    BroadcastDiscoveryUDPPort=35623
    FixedIP=
    InternetClientTCPPort=55415
    Name=urbackup
    PublicAccess=private
    TCPPorts=55413,55414
    access=
    status=enabled

Do I lost my backups with this, I think not ?


(Markus Neuberger) #18

I hope not your backups in the samba ibay but your urbackup config. And it won’t help if some other software causes the problem.


(fpausp) #19

OK, anyway thank you for your help.

I am thinking abt to install urbackup on my FOG Server because the backups are growing and growing… On the FOG Server I backup just the config.