Didnt find much about it here.
But ... i did a permission reset, deleted the content of the backup folders. After this did backup from two clients at the same time, worked good. Hope it stays like that.
Didnt find much about it here.
But ... i did a permission reset, deleted the content of the backup folders. After this did backup from two clients at the same time, worked good. Hope it stays like that.
Have to look in the doku, but i enabled it in configure script.
Anyways, one small problem remains. Permission problem for the size check of TM sparsebundle file. Have to look into that.
But ... got a failed TM backup error again .. bummer
So, timemachine backups where running flawless. For now quite happy.
Didnt configure Netatalks 3 Spotlight, will do maybe later.
Btw. i think the build options from the maintainer are not complete, for omv there should be acl support and some more compiled in
Thanks!
Would be my small wish for 2.0 to have a option to disable
Hmm, this was around the 3.17 release. Not sure if the mentionend batches are in 3.17 already...
Anyways, tried with the 3.17 release, compiled fine, init scripts installed, running, works fine.
Blackmagic Speed test: 108MB write, 110MB read ... so far so good
Thanks for the info. Conversation was before 3.17?
Asking because 3.17 has already the new compile flags for debian (systemd/sysv).
Did compile the 3.17 and the 3.18dev (git) without problems...
P.S. VMs are for pussies .. compile on the production server ... better then latenight crime tv
Btw. how can i block the netatalk plugin, so its not selected by (user)error. Any way to do this?
(Dont want to override my manual netatalk 3 installation)
Is there a possibility to disable the annoying "Leave Page" Javascript Dialog?
It blocks the closure of the browser which is quite annoying sometimes (cancels system shutdown on client)
Ok, will try. Thanks.
Thinking about dumping the AFP Gui and installing Netatalk 3 manually...
On my Backup Box which runs since months there is a new problem with one client. Neither the OMV machine (1.19) nor the OS X (10.9.x) client got changed, no major upgrades.
Sometimes, and only sometimes the TS backup fails with the following error:
In the afp logs there are just the usual (dsi_stream) errors (which are a feature of the old netatalk 2.2 afaik):
May 24 14:47:27 bus afpd[28306]: AFP3.3 Login by nk
May 24 14:47:27 bus afpd[28306]: afp_disconnect: trying primary reconnect
May 24 14:47:27 bus afpd[2700]: Reconnect: transfering session to child[3656]
May 24 14:47:27 bus afpd[2700]: Reconnect: killing new session child[28306] after transfer
May 24 14:47:27 bus afpd[3656]: afp_dsi_transfer_session: succesfull primary reconnect
May 24 14:47:27 bus afpd[3656]: dsi_stream_read: len:0, unexpected EOF
May 24 14:47:27 bus afpd[3656]: dsi_stream_read: len:0, unexpected EOF
May 24 14:47:27 bus afpd[3656]: dsi_disconnect: entering disconnected state
May 24 14:47:28 bus afpd[28241]: afp_disconnect: primary reconnect succeeded
May 24 14:47:28 bus afpd[28312]: AFP3.3 Login by nk
May 24 14:47:28 bus afpd[28312]: afp_disconnect: trying primary reconnect
May 24 14:47:28 bus afpd[2700]: Reconnect: transfering session to child[3656]
May 24 14:47:28 bus afpd[2700]: Reconnect: killing new session child[28312] after transfer
May 24 14:47:28 bus afpd[3656]: afp_dsi_transfer_session: succesfull primary reconnect
May 24 14:47:28 bus afpd[28247]: afp_disconnect: primary reconnect succeeded
May 24 14:47:28 bus afpd[28252]: afp_disconnect: primary reconnect succeeded
May 24 14:47:28 bus afpd[28258]: afp_disconnect: primary reconnect succeeded
May 24 14:47:28 bus afpd[28264]: afp_disconnect: primary reconnect succeeded
May 24 14:47:28 bus afpd[28270]: afp_disconnect: primary reconnect succeeded
May 24 14:47:29 bus afpd[28276]: afp_disconnect: primary reconnect succeeded
May 24 14:47:29 bus afpd[28283]: afp_disconnect: primary reconnect succeeded
May 24 14:47:29 bus afpd[28289]: afp_disconnect: primary reconnect succeeded
May 24 14:47:29 bus afpd[28294]: afp_disconnect: primary reconnect succeeded
May 24 14:47:29 bus afpd[28300]: afp_disconnect: primary reconnect succeeded
May 24 14:47:29 bus afpd[28306]: afp_disconnect: primary reconnect succeeded
May 24 14:47:30 bus afpd[28312]: afp_disconnect: primary reconnect succeeded
May 24 14:47:51 bus afpd[3656]: AFP logout by nk
May 24 14:47:51 bus afpd[3656]: AFP statistics: 460158.42 KB read, 266990.92 KB written
May 24 14:47:51 bus afpd[3656]: done
Alles anzeigen
Its on Ethernet, so no wifi issues.
Any ideas?
Thanks! Unfortunately a bug in the init scripts of debian makes life more difficult .. stopping the bt on omv host stops also bt in a container. For now (not enough time) i abandon the hybrid idea and use transmission just inside lxc (no enabled bt plugin in omv). Works fine with sickbeard and allows me for having ip based traffic shaping on the fw.
For more info see also here: HOWTO: PlexConnect with own IP via LXC
Btw. there is a bug in the start-stop-daemon / init scripts. If you have running lets say sshd on the host and inside the container you have also sshd running - "service sshd stop" on the host will stop also the sshd inside the container. This is because the pid is not handled by the init scripts and so a host init script kills all instances, even those inside containers (the container instances are also in the host ps list). Bug is known since 2011 (maybe before) and still unfixed ... bummer
p.s. used sshd just for example, didnt check if the bug affects this service
Thanks Volker. Can confirm that it works with 2.x
While playing around with LXC i discovered the following bug in the Network Gui (Tab Interfaces):
Bridge works fine:
br0 Link encap:Ethernet HWaddr deleted
inet addr:deleted Bcast:deleted Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:802775 errors:0 dropped:0 overruns:0 frame:0
TX packets:623299 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:383569563 (365.8 MiB) TX bytes:213400595 (203.5 MiB)
eth0 Link encap:Ethernet HWaddr deleted
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1597725 errors:0 dropped:4487 overruns:0 frame:0
TX packets:1111809 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1438828388 (1.3 GiB) TX bytes:292313367 (278.7 MiB)
Interrupt:18
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:811924 errors:0 dropped:0 overruns:0 frame:0
TX packets:811924 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240997809 (229.8 MiB) TX bytes:240997809 (229.8 MiB)
Alles anzeigen
when i start the first lxc container it still works:
vethOdrHYA Link encap:Ethernet HWaddr deleted
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1494 errors:0 dropped:0 overruns:0 frame:0
TX packets:191366 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:652809 (637.5 KiB) TX bytes:20474688 (19.5 MiB)
but when i start another one:
vethY1e0UR Link encap:Ethernet HWaddr deleted
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1100 (1.0 KiB) TX bytes:683 (683.0 B)
i get the following error:
Device 'vethY1e0UR' not supported
Error #6003:
exception 'OMVException' with message 'Device 'vethY1e0UR' not supported' in /usr/share/openmediavault/engined/rpc/network.inc:254
Stack trace:
#0 [internal function]: OMVRpcServiceNetwork->enumerateDevicesList(Array, Array)
#1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('enumerateDevice...', Array, Array)
#3 /usr/sbin/omv-engined(500): OMVRpc::exec('Network', 'enumerateDevice...', Array, Array, 1)
#4 {main}
Alles anzeigen
Nobody?
Getting close. Transmission running under own ip in lxc container. Downloaddirs shared with OMV. Config too.
Still need to find out how the plugin handles the starting/reloading/stopping of transmission and how it gets the data for the "Torrents" Tab
Want to try to put transmission inside lxc container for ip seperation & traffic shaping.
One question:
How does the Bittorren plugin update the transmission settings? Does it stop transmission, write into the settings.json file and start transmission again? (Imho no).
Or via Api? If so does it contact transmission via localhost or OMV Ip? Possible to change?
I have an idea how it could be possible to use transmission in lxc with bittorent plugin. Need to experiment.
Thanks!
ha you got me. will try to make a nice version during the next days.
jaja i know im already happy that i did note the steps this night so i could post this. And as you can see, my bad habits to do that stuff as root user ... LOL
If there will be a howto section here i promise to make it more presentable
Next project will be Transmission inside LXC (for own ip to do better traffic shaping)
PlexConnect & Apple TV need to have ports 80 & 443. Instead of using port redirection i opted to do this via LXC container.
Heres a HowTo for OMV 1.19+. Please note that im using static DHCP mappings, you have to change the network sections if you want to use manual IP. And its a plain config, so if needed please take care to harden your LXC container (iptables, ssh and so on).
Word of wisdom: you shouldnt do that like me as root, use sudo instead
----
# prepare Network for lxc:
# edit /etc/network/interfaces (example for ipv4 & dhcp static lease only, adjust if needed)
--- snip ---
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet manual
#iface eth0 inet6 manual
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 0
bridge_maxwait 0
#bridge_hello 0
#bridge_maxage 0
#bridge_stp off
--- snap ---
# restart network
service network restart
# check network settings
ifconfig
# lxc install
# Install required packages
apt-get install lxc
# Install optional packages
apt-get install bridge-utils libvirt-bin debootstrap
# edit /etc/fstab:
--- snip ---
cgroup /sys/fs/cgroup cgroup defaults 0 0
--- snap ---
# check fstab entry:
mount /sys/fs/cgroup
# check lxc config:
lxc-checkconfig
# The lxc-checkconfig program is reporting "Cgroup memory controller: missing". If you want memory control via cgroups then you need to recompile the linux kernel (or simply add cgroup_enable=memory to the kernel command line on jessie or later).
# Template installation (the Templates included in Wheezy dont work):
wget https://github.com/simonvander…debian-wheezy-robvdhoeven -O /usr/share/lxc/templates/lxc-debian-wheezy
chown root:root /usr/share/lxc/templates/lxc-debian-wheezy
chmod +x /usr/share/lxc/templates/lxc-debian-wheezy
# create Plexconnect container
lxc-create -n plexconnect -t debian-wheezy
# edit /var/lib/lxc/plexconnect/config
--- snip ---
lxc.utsname = plexconnect
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = xx:xx:xx:xx:xx:xx # {mac address for container}
# if not using static dhcp leases you will need this sections too:
#lxc.network.ipv4 = xxx.xxx.xxx.xxx/xx # {ip address for plexconnect container / netmask }
#lxc.network.ipv4.gateway = xxx.xxx.xxx.xxx # {ip address of gateway }
--- snap ---
# start container
lxc-start -n plexconnect -d
# container status
lxc-info -n plexconnect
# make plexconnect container autostart
ln -s /var/lib/lxc/plexconnect/config /etc/lxc/auto/plexconnect
# login to container
lxc-console -n plexconnect
# from here everything is done inside the plexconnect container
# login as root/root
# change root password
pwd root
# edit /etc/network/interfaces (example for dhcp static lease, change for manual ip if needed)
--- snip ---
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
--- snap ---
# restart network
service networking restart
# check network config
ifconfig
# install python & git
apt-get install python git
# install plexconnect
cd /opt
git clone https://github.com/iBaa/PlexConnect.git
# create certificate for ATV
cd /opt/PlexConnect/
cd assets/certificates/
openssl req -new -nodes -newkey rsa:2048 -out trailers.pem -keyout trailers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com"
openssl x509 -in trailers.pem -outform der -out trailers.cer && cat trailers.key >> trailers.pem
# start PlexConnect to create basic settings
./PlexConnect.py
<Ctrl-C>
# edit /opt/PlexConnect/Settings.cfg
# for more info: https://github.com/iBaa/PlexCo…d-use-and-troubleshooting
--- snip ---
ip_pms = xxx.xxx.xxx.xxx # {IP of Plex Host = OMV IP}
enable_plexgdm = False
--- snap ---
# start PlexConnect
./PlexConnect_daemon.bash start
./PlexConnect_daemon.bash status
# for ATV configuration see https://github.com/iBaa/PlexConnect/wiki/Install-Guide
# stop PlexConnect
./PlexConnect_daemon.bash stop
# Create Auto Startup File for PlexConnect
# edit /etc/init.d/plexconnect
--- snip ---
#!/bin/bash
### BEGIN INIT INFO
# Provides: plexconnect
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: This is the Plex Connect daemon
# Description: This script starts PlexConnect in debian
### END INIT INFO
. /lib/lsb/init-functions
NAME=PlexConnect
INSTDIR="/opt/PlexConnect"
DAEMON="$INSTDIR/PlexConnect.py"
DAEMON_OPTS="2>&1 >/dev/null"
DAEMON_USER="root"
PIDFILE=/var/run/PlexConnect.pid
test -x "$DAEMON" || exit 5
case $1 in
start)
if [ -e $PIDFILE ]; then
status_of_proc -p $PIDFILE "$DAEMON $DAEMON_OPTS" "$NAME process" && status="0" || status="$?"
if [ $? = "0" ]; then
log_success_msg "Starting the process $NAME"
exit # Exit
fi
fi
# Start the daemon.
# Start the daemon with the help of start-stop-daemon
# Log the message appropriately
if start-stop-daemon --start --quiet --oknodo --background --make-pidfile --pidfile $PIDFILE --startas $DAEMON -p $PIDFILE -- ${DAEMON_OPTS}; then
log_success_msg "Starting the process $NAME"
else
log_failure_msg "Starting the process $NAME"
fi
;;
stop)
# Stop the daemon.
if [ -e $PIDFILE ]; then
status_of_proc -p $PIDFILE "$DAEMON DAEMON_OPTS" "Stoppping the $NAME process" && status="0" || status="$?"
if [ "$?" = 0 ]; then
start-stop-daemon --stop --signal 2 --quiet --oknodo --pidfile $PIDFILE && /bin/rm $PIDFILE
log_success_msg ""Stopping the $NAME process""
fi
else
log_failure_msg "$NAME process is not running"
fi
;;
restart)
# Restart the daemon.
$0 stop && sleep 2 && $0 start
;;
status)
# Check the status of the process.
if [ -e $PIDFILE ]; then
status_of_proc -p $PIDFILE "$DAEMON $DAEMON_OPTS" "$NAME process" && exit 0 || exit $?
log_success_msg "$NAME process is running"
else
log_failure_msg "$NAME process is not running"
fi
;;
reload)
$0 restart
;;
*)
# For invalid arguments, print the usage message.
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 2
;;
esac
Alles anzeigen
--- snap ---
chmod +x /etc/init.d/plexconnect
update-rc.d plexconnect defaults
# start plexconnect
/etc/init.d/plexconnect start
-----
Have Fun!
Btw. it was my first experience with LXC, maybe there is room for improvement