Espresso.Bin Firewall

After installing Armbian I was running into network issues which could be solved with:

systemctl unmask systemd-networkd; systemctl start systemd-networkd

https://wiki.archlinux.org/title/Systemd-networkd#Wired_adapter_using_a_static_IP

root@ebin:/etc/systemd/network# cat 10-br0.network

[Match]
Name=br0

[Network]
Address=10.1.10.9/24
Gateway=10.1.10.1
DNS=10.1.10.1
#DNS=8.8.8.8
[Match]
Name = br0

[Network]
Address = 192.168.179.23 / 24
Gateway = 192.168.179.1
DNS = 192.168.179.1
# DNS = 8.8.8.8

solr – managed-schema field definitions

name type description active flags deactive flags
ignored_* string catchall for all undefined metadata multiValued
id string unique id field stored, required multiValued
_version_ plong internal solr field indexed, stored
text text_general content field for facetting multiValued docValues, stored
content text_general main content field as extracted by tika stored, multiValued, indexed docValues
author string author retrieved from tika multiValued, indexed, docValues stored
*author string dynamic field for authors retrieved from tika multiValued, indexed, docValues stored
title string title retrieved from tika multiValued, indexed, docValues stored
*title string dynamic title field retrieved from tika multiValued, indexed, docValues stored
date string date retrieved from tika multiValued, indexed, docValues stored
content_type plongs content_type retrieved from tika multiValued, indexed, docValues stored
stream_size string stream_size retrieved from tika multiValued, indexed, docValues stored
cat string category defined by user through manifoldcf multiValued, docValues stored

Additional copyField statements to insert data in fields:

  • source=”content” dest=”text”
  • source=”*author” dest=”author”
  • source=”*title” dest=”title”

docker web dev

To simplify the development I tried docker for building the runtime environment. Here are the major steps to get it running.

Prerequisites

The docker installation is straight forward as described on the docker home page:

un-install old version

aptitude remove docker docker-engine docker.io

add reporitory

aptitude update

aptitude install apt-transport-https ca-certificates curl gnupg2 software-properties-common

add docker official key

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

check fingerprint

apt-key fingerprint 0EBFCD88

add repository

add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"

aptitude update

install docker from repo

aptitude install docker-ce

check if everything works

docker run hello-world

install docker compose

curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

and check everything works

docker-compose --version

Docker Cheat Sheet

## List Docker CLI commands
docker
docker container –help

## Display Docker version and info
docker –version
docker version
docker info

## Execute Docker image
docker run hello-world

## List Docker images
docker image ls

## List Docker containers (running, all, all in quiet mode)
docker container ls
docker container ls –all
docker container ls -aq

Development Environment

create folder for docker environment

mkdir dockerproject

create yaml file for docker compose

vi docker-compose.yaml

At least the following sections should be available:

  • app
  • main application configuration

  • web
  • Webserver configuration is required

  • database
  • database configuration is required

and here comes an exmaple


version: '3'
services:
app:
build:
context: ./
dockerfile: app.dockerfile
working_dir: /var/www
volumes:
- ./../laravel:/var/www
environment:
- "DB_PORT=3306"
- "DB_HOST=database"
web:
build:
context: ./
dockerfile: web.dockerfile
working_dir: /var/www
volumes:
- ./../laravel:/var/www
ports:
- 8080:80
database:
image: mysql:5.6
volumes:
- dbdata:/var/lib/mysql
environment:
- "MYSQL_DATABASE=homestead"
- "MYSQL_USER=homestead"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
ports:
- "33061:3306"
volumes:
dbdata:

and now the app configuration


FROM php:7.1.3-fpm

RUN apt-get update
RUN apt-get install -y libmcrypt-dev
RUN apt-get install -y mysql-client
RUN apt-get install -y libmagickwand-dev --no-install-recommends
RUN pecl install imagick
RUN docker-php-ext-enable imagick
RUN docker-php-ext-install mcrypt pdo_mysql
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN mv composer.phar /usr/local/bin/composer
RUN apt-get install -y git
RUN apt-get update && apt-get install -y zlib1g-dev
RUN docker-php-ext-install zip

the web configuration


FROM nginx:1.10

ADD vhost.conf /etc/nginx/conf.d/default.conf

mirror – setup

Software Installations for Min Server

  • fetchmail
  • postfix
  • cups
  • dnsmasq
  • logwatch
  • smartmontools
  • ClamAV
  • fail2ban
  • dovecot
  • shellInABox
  • nagios
  • cacti
  • rsyslog
  • Mysql
  • netsnmp
  • spamassassin
  • git
  • apache
  • webalizer
  • wordpress
  • nextcloud
  • glype
  • gitlist
  • roundcube
  • gitlist
  • libreoffice
  • php
  • imagemagick
  • amavis
  • spamd
  • managesieve
  • VPN Tunnel
  • ntpd
  • nfs
  • samba
  • music streamer
  • video streamer

Nagios Components

  • postfix
  • dovecot
  • apache
  • dnsmasq
  • cups
  • mysql
  • clamav
  • nextclou
  • wordpress
  • rsyslog
  • ntpd
  • git
  • smartd
  • shellinanbox
  • spamd
  • nfs
  • minidlna
  • samba
  • timemachine
  • afpd
  • cups

actual to do:

  • shinken als nagios Ersatz
  • samba/timemaschine
  • shellinabox

git cli

To backup my arduino sketches I will use a remote git repository hosted on my own server. So lets start

  • git init – initialize a new local repository
  • git clone @: – check out/clone from a remote reporitory

The local repo is devided into a working copy, the index as interim stage und the head which is a link to the last commit.

  • git add – add a file to local repository
  • git commit -m “
  • git push origin master – sync local repository with remote repo

If the local repo was not cloned but should be linked to a remote repository use:

  • git remote add origin

To sync the local repository use:

  • git pull – fetch remote changes and merge them with the local files
  • git add – inform git about solved merge problems after solving

Summary:

git init

git add .

git commit -am “

git remote add origin @:

git push -u origin master

second network card with same driver

I do own three network cards with a RTL 8139 chipset and finally managed to get them work with my installation by simply adding a new file:

/etc/modprobe.d/8139too.config

alias eth1 8139too
alias eth2 8139too

The interface eth0 is reserved for the internal network card of the board.

cubieboard 4 boot log

dmesg
d
[ 11.439987] mmcblk1boot1: unknown partition table
[ 11.441793] mmcblk1boot0: unknown partition table
[ 11.442148] *******************mmc init ok *******************
[ 11.517693] registered taskstats version 1
[ 11.529095] [LCD]lcd_module_init
[ 11.539863] [LCD]lcd_module_init finish
[ 11.551706] [HDMI] debug to check 111 !!
[ 11.562820] [DISP] disp_get_hdmi,line:41: screen_id 0 do not support HDMI TYPE!
[ 11.577698] [DISP] bsp_disp_set_hdmi_func,line:1316: get hdmi0 failed!
[ 11.592387] axp15_bldo2: incomplete constraints, leaving on
[ 11.605623] axp15_bldo1: incomplete constraints, leaving on
[ 11.618686] axp15_aldo1: incomplete constraints, leaving on
[ 11.631655] axp15_dcdc4: incomplete constraints, leaving on
[ 11.644556] axp15_dcdc1: incomplete constraints, leaving on
[ 11.657322] axp22_ldoio1: incomplete constraints, leaving on
[ 11.670145] axp22_dc5ldo: incomplete constraints, leaving on
[ 11.682952] axp22_eldo3: incomplete constraints, leaving on
[ 11.695088] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 11.709757] axp22_eldo2: incomplete constraints, leaving on
[ 11.715476] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 11.715487] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 11.735375] sd 1:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 11.769094] axp22_dldo2: incomplete constraints, leaving on
[ 11.781993] axp22_aldo3: incomplete constraints, leaving on
[ 11.794739] axp22_aldo2: incomplete constraints, leaving on
[ 11.807489] axp22_rtc: incomplete constraints, leaving on
[ 11.820045] axp22_dcdc5: incomplete constraints, leaving on
[ 11.832722] axp22_dcdc4: incomplete constraints, leaving on
[ 11.845235] axp22_dcdc3: incomplete constraints, leaving on
[ 11.857699] axp22_dcdc1: incomplete constraints, leaving on
[ 11.870299] otg_wakelock_init: No USB transceiver found
[ 11.882602] rtc_gettime(323): read time 1970-1-2 1:34:40
[ 11.894765] rtc0 rtc0: setting system clock to 1970-01-02 01:34:40 UTC (92080)
[ 11.909685] input: sunxi-ths as /devices/virtual/input/input2
[ 11.923122] suxi_ths: Kernel Thermal management registered
[ 11.936149] suxi_ths: Kernel Thermal management registered
[ 11.949374] sunxi_ths_bind : thermal-budget-0
[ 11.954160] ths_zone trip = 60, adjust lower = 0, upper = 1
[ 11.972754] ths_zone trip = 75, adjust lower = 1, upper = 2
[ 11.984968] ths_zone trip = 85, adjust lower = 2, upper = 5
[ 11.997026] ths_zone trip = 95, adjust lower = 5, upper = 9
[ 12.008985] ths_zone trip = 105, adjust lower = 0, upper = 0
[ 12.020994] sunxi_ths_bind : thermal-budget-0
[ 12.025790] ths_zone trip = 105, adjust lower = 0, upper = 9
[ 12.043501] CPU Budget:Register notifier
[ 12.053559] CPU Budget:register Success
[ 12.063455] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0
[ 12.084640] ALSA device list:
[ 12.093596] #0: snddaudio
[ 12.102211] #1: sndhdmi
[ 12.139930] sdb: sdb1
[ 12.148989] sd 1:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 12.163368] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 12.174579] EXT3-fs (mmcblk0p2): error: couldn’t mount because of unsupported optional features (240)
[ 12.335673] EXT2-fs (mmcblk0p2): error: couldn’t mount because of unsupported optional features (244)
[ 13.033739] EXT4-fs (mmcblk0p2): ext4_orphan_cleanup: deleting unreferenced inode 442
[ 13.048007] EXT4-fs (mmcblk0p2): 1 orphan inode deleted
[ 13.058949] EXT4-fs (mmcblk0p2): recovery complete
[ 13.089856] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 13.104004] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 13.117889] devtmpfs: mounted
[ 13.127275] Freeing init memory: 384K
[ 13.766695] udevd[1291]: starting version 175
[ 15.132877] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 17.735103] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 17.765545] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 17.780232] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 18.368390] usb 7-1: Device not responding to set address.
[ 18.584995] usb 7-1: Device not responding to set address.
[ 18.804979] usb 7-1: device not accepting address 3, error -71
[ 18.995084] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 19.026582] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 19.042398] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 19.245842] axp15_cldo1: Failed to create debugfs directory
[ 19.261345] axp22_ldoio1: Failed to create debugfs directory
[ 19.598058] gmac0: probed
[ 19.607602] gmac0 gmac0: eth0: eth0: PHY ID 001cc915 at 0 IRQ poll (gmac0-0:00)
[ 19.875144] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 19.905564] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 19.921042] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 21.815118] usb 7-1: reset SuperSpeed USB device number 3 using xhci-hcd
[ 21.845629] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 21.862887] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 23.044991] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 23.052964] usb 7-1: USB disconnect, device number 3
[ 23.067619] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 23.073675] sd 1:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 23.084634] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 23.093926] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 23.505100] usb 7-1: new SuperSpeed USB device number 4 using xhci-hcd
[ 23.530952] scsi2 : usb-storage 7-1:1.0
[ 23.605041] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 24.535587] scsi 2:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 24.548689] sd 2:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 24.558695] sd 2:0:0:0: [sdb] Write Protect is off
[ 24.568858] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 24.575115] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 24.587405] sd 2:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 24.597398] sdb: sdb1
[ 24.604656] sd 2:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 24.615587] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 30.194941] eth0: no IPv6 routers present
[ 34.145095] usb 7-1: reset SuperSpeed USB device number 4 using xhci-hcd
[ 34.165582] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bc0
[ 34.174657] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bec
[ 34.545064] usb 7-1: reset SuperSpeed USB device number 4 using xhci-hcd
[ 34.565485] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bc0
[ 34.574552] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bec
[ 34.995094] usb 7-1: reset SuperSpeed USB device number 4 using xhci-hcd
[ 35.015479] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bc0
[ 35.024552] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c1bec
[ 35.034152] usb 7-1: can’t restore configuration #1 (error=-71)
[ 35.041179] usb 7-1: USB disconnect, device number 4
[ 35.055573] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[ 35.061634] sd 2:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 35.530516] usb 7-1: Device not responding to set address.
[ 35.744974] usb 7-1: Device not responding to set address.
[ 35.954964] usb 7-1: device not accepting address 5, error -71
[ 37.035006] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 37.043010] hub 7-0:1.0: unable to enumerate USB device on port 1
[ 37.435038] usb 7-1: new SuperSpeed USB device number 7 using xhci-hcd
[ 37.460866] scsi3 : usb-storage 7-1:1.0
[ 38.465556] scsi 3:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 38.479721] sd 3:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 38.489223] sd 3:0:0:0: [sdb] Write Protect is off
[ 38.494703] sd 3:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 38.502111] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 38.513844] sd 3:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 38.523764] sdb: sdb1
[ 38.527913] sd 3:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 38.537345] sd 3:0:0:0: [sdb] Attached SCSI disk
[ 38.785062] usb 7-1: reset SuperSpeed USB device number 7 using xhci-hcd
[ 38.810778] usb 7-1: device descriptor read/8, error -71
[ 38.924944] usb 7-1: reset SuperSpeed USB device number 7 using xhci-hcd
[ 38.952977] usb 7-1: device descriptor read/8, error -71
[ 39.245084] usb 7-1: reset SuperSpeed USB device number 7 using xhci-hcd
[ 39.265439] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 39.274515] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 45.474981] usb 7-1: device not accepting address 7, error -22
[ 46.824968] usb 7-1: device not accepting address 7, error -22
[ 47.694955] usb 7-1: device not accepting address 7, error -22
[ 48.294964] usb 7-1: device not accepting address 7, error -22
[ 48.301672] usb 7-1: USB disconnect, device number 7
[ 48.316579] sd 3:0:0:0: [sdb] Synchronizing SCSI cache
[ 48.322584] sd 3:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 48.333784] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7c0
[ 48.343334] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee5bc7ec
[ 48.965044] usb 7-1: new SuperSpeed USB device number 8 using xhci-hcd
[ 49.001123] scsi4 : usb-storage 7-1:1.0
[ 50.015553] scsi 4:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 50.036437] sd 4:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 50.053548] sd 4:0:0:0: [sdb] Write Protect is off
[ 50.066435] sd 4:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 50.079449] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 50.098012] sd 4:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 50.115066] sdb: sdb1
[ 50.125887] sd 4:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 50.142555] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 50.945091] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 50.975463] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 50.991544] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 52.825087] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 52.855126] usb 7-1: device descriptor read/8, error -71
[ 52.974952] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 53.005117] usb 7-1: device descriptor read/8, error -71
[ 53.320769] usb 7-1: Device not responding to set address.
[ 53.544987] usb 7-1: Device not responding to set address.
[ 53.764959] usb 7-1: device not accepting address 8, error -71
[ 53.955056] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 53.985493] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 54.001274] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 54.265073] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 54.295536] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 54.311364] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 54.755090] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 54.785496] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 54.801380] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 56.205078] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 56.235438] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 56.251404] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 56.755084] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 56.785516] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 56.801427] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 57.265064] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 57.295440] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 57.311411] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 62.205098] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 62.235478] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 62.251410] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 63.285076] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 63.315517] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 63.331304] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 63.805090] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 63.835485] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 63.851273] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 64.365059] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 64.395512] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 64.411227] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 64.895097] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 64.925127] usb 7-1: device descriptor read/8, error -71
[ 65.044945] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 65.075106] usb 7-1: device descriptor read/8, error -71
[ 65.645068] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 65.675554] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 65.691592] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 66.165147] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 66.196887] usb 7-1: device descriptor read/8, error -71
[ 66.314955] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 66.345098] usb 7-1: device descriptor read/8, error -71
[ 66.645058] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 66.675606] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 66.692491] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 67.095081] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 67.125445] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 67.141635] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 68.915063] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 68.945504] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 68.961645] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 69.245076] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 69.275505] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 69.291488] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 70.655107] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 70.685469] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 70.701843] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 71.035074] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 71.070996] usb 7-1: device descriptor read/8, error -71
[ 71.184954] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 71.215101] usb 7-1: device descriptor read/8, error -71
[ 71.515065] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 71.545464] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 71.561490] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 75.225127] usb 7-1: reset SuperSpeed USB device number 8 using xhci-hcd
[ 75.255457] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 75.271656] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 81.235010] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 81.664970] usb 7-1: device not accepting address 8, error -22
[ 82.274961] usb 7-1: device not accepting address 8, error -22
[ 82.884991] usb 7-1: device not accepting address 8, error -22
[ 83.494957] usb 7-1: device not accepting address 8, error -22
[ 83.508485] usb 7-1: USB disconnect, device number 8
[ 83.529653] sd 4:0:0:0: [sdb] Synchronizing SCSI cache
[ 83.542747] sd 4:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 83.560502] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a40
[ 83.576706] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5a6c
[ 84.195062] usb 7-1: new SuperSpeed USB device number 9 using xhci-hcd
[ 84.230736] scsi5 : usb-storage 7-1:1.0
[ 85.245556] scsi 5:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 85.265675] sd 5:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 85.283763] sd 5:0:0:0: [sdb] Write Protect is off
[ 85.297986] sd 5:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 85.311351] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 85.331098] sd 5:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 87.697369] sdb: sdb1
[ 87.712377] sd 5:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 87.737526] sd 5:0:0:0: [sdb] Attached SCSI disk
[ 96.085162] usb 7-1: reset SuperSpeed USB device number 9 using xhci-hcd
[ 96.115504] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117d40
[ 96.131945] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117d6c
[ 98.884962] usb 7-1: device not accepting address 9, error -22
[ 99.495003] usb 7-1: device not accepting address 9, error -22
[ 100.525018] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 100.540115] usb 7-1: USB disconnect, device number 9
[ 100.561464] sd 5:0:0:0: [sdb] Synchronizing SCSI cache
[ 100.574477] sd 5:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 100.592361] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117d40
[ 100.608169] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117d6c
[ 100.905041] usb 7-1: new SuperSpeed USB device number 10 using xhci-hcd
[ 100.940429] scsi6 : usb-storage 7-1:1.0
[ 101.945545] scsi 6:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 101.965776] sd 6:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 101.983880] sd 6:0:0:0: [sdb] Write Protect is off
[ 101.999120] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 102.012255] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 102.031064] sd 6:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 102.048300] sdb: sdb1
[ 102.064900] sd 6:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 102.084181] sd 6:0:0:0: [sdb] Attached SCSI disk
[ 104.214971] usb 7-1: device not accepting address 10, error -22
[ 105.094962] usb 7-1: device not accepting address 10, error -22
[ 105.704957] usb 7-1: device not accepting address 10, error -22
[ 106.314983] usb 7-1: device not accepting address 10, error -22
[ 106.328772] usb 7-1: USB disconnect, device number 10
[ 106.349721] sd 6:0:0:0: [sdb] Synchronizing SCSI cache
[ 106.362626] sd 6:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 106.380184] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edac5740
[ 106.396263] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edac576c
[ 106.685043] usb 7-1: new SuperSpeed USB device number 11 using xhci-hcd
[ 106.720818] scsi7 : usb-storage 7-1:1.0
[ 107.735544] scsi 7:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 107.755404] sd 7:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 107.773495] sd 7:0:0:0: [sdb] Write Protect is off
[ 107.788390] sd 7:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 107.801328] sd 7:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 107.819883] sd 7:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 107.836849] sdb: sdb1
[ 107.850575] sd 7:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 107.868681] sd 7:0:0:0: [sdb] Attached SCSI disk
[ 110.165119] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 110.195481] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 110.211161] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 110.585062] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 110.615467] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 110.631149] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 111.005115] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 111.035504] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 111.052209] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 113.805064] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 113.835462] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 113.851653] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 118.385082] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 118.415515] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 118.431722] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 118.995076] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 119.025563] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 119.041713] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 120.585086] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 120.615114] usb 7-1: device descriptor read/8, error -71
[ 120.734946] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 120.765103] usb 7-1: device descriptor read/8, error -71
[ 121.335061] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 121.365497] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 121.381652] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 135.115091] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 135.145507] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 135.161518] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 140.525104] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 140.555488] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 140.571456] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 141.245072] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 141.275569] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 141.291721] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 141.697507] usb 7-1: Device not responding to set address.
[ 141.914977] usb 7-1: Device not responding to set address.
[ 142.134966] usb 7-1: device not accepting address 11, error -71
[ 142.595077] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 142.625489] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 142.641556] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 145.925094] usb 7-1: reset SuperSpeed USB device number 11 using xhci-hcd
[ 145.955469] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 145.971412] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 151.924957] usb 7-1: device not accepting address 11, error -22
[ 152.534961] usb 7-1: device not accepting address 11, error -22
[ 153.144964] usb 7-1: device not accepting address 11, error -22
[ 153.754956] usb 7-1: device not accepting address 11, error -22
[ 153.768399] usb 7-1: USB disconnect, device number 11
[ 153.789321] sd 7:0:0:0: [sdb] Synchronizing SCSI cache
[ 153.802285] sd 7:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 153.820044] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11c0
[ 153.836227] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed0c11ec
[ 154.265057] usb 7-1: new SuperSpeed USB device number 12 using xhci-hcd
[ 154.301100] scsi8 : usb-storage 7-1:1.0
[ 154.505108] usb 7-1: reset SuperSpeed USB device number 12 using xhci-hcd
[ 154.535505] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edac5b40
[ 154.551502] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edac5b6c
[ 155.315567] scsi 8:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 155.335703] sd 8:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 155.355119] sd 8:0:0:0: [sdb] Write Protect is off
[ 155.369800] sd 8:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 155.383073] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 155.402249] sd 8:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 186.175028] sd 8:0:0:0: Device offlined – not ready after error recovery
[ 186.191010] sd 8:0:0:0: [sdb] Unhandled error code
[ 186.203189] sd 8:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 186.217049] sd 8:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 186.232031] end_request: I/O error, dev sdb, sector 0
[ 186.244347] Buffer I/O error on device sdb, logical block 0
[ 186.257286] sd 8:0:0:0: rejecting I/O to offline device
[ 186.270550] sd 8:0:0:0: rejecting I/O to offline device
[ 186.283492] sdb: unable to read partition table
[ 186.295996] sd 8:0:0:0: [sdb] Attached SCSI disk
[ 186.365034] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 188.575015] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 190.755019] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 192.965018] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 192.978499] usb 7-1: USB disconnect, device number 12
[ 192.996172] sd 8:0:0:0: [sdb] Synchronizing SCSI cache
[ 193.008693] sd 8:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 193.308974] usb 7-1: new SuperSpeed USB device number 13 using xhci-hcd
[ 193.340583] scsi9 : usb-storage 7-1:1.0
[ 194.355546] scsi 9:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 194.375849] sd 9:0:0:0: [sdb] Spinning up disk…..ready
[ 196.402909] sd 9:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 196.418560] sd 9:0:0:0: [sdb] Write Protect is off
[ 196.430414] sd 9:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 196.442807] sd 9:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 196.461592] sd 9:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 197.963698] sdb: sdb1
[ 197.978132] sd 9:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 198.002362] sd 9:0:0:0: [sdb] Attached SCSI disk
[ 199.335097] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 199.365458] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 199.381793] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 205.585090] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 205.615483] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 205.631129] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 205.895060] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 205.925103] usb 7-1: device descriptor read/8, error -71
[ 206.045008] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 206.075138] usb 7-1: device descriptor read/8, error -71
[ 206.375080] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 206.405506] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 206.421179] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 206.645077] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 206.675491] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 206.691126] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 206.935060] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 206.965452] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 206.981144] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 208.966764] usb 7-1: Device not responding to set address.
[ 209.185022] usb 7-1: Device not responding to set address.
[ 209.404957] usb 7-1: device not accepting address 13, error -71
[ 209.595070] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 209.625534] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 209.641368] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 209.895054] usb 7-1: reset SuperSpeed USB device number 13 using xhci-hcd
[ 209.925501] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed117640
[ 209.941327] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed11766c
[ 209.957158] usb 7-1: can’t restore configuration #1 (error=-71)
[ 209.970566] usb 7-1: USB disconnect, device number 13
[ 209.988846] sd 9:0:0:0: [sdb] Synchronizing SCSI cache
[ 210.001937] sd 9:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 210.435086] usb 7-1: new SuperSpeed USB device number 14 using xhci-hcd
[ 210.465114] usb 7-1: device descriptor read/8, error -71
[ 210.584949] usb 7-1: new SuperSpeed USB device number 14 using xhci-hcd
[ 210.615107] usb 7-1: device descriptor read/8, error -71
[ 210.917608] usb 7-1: Device not responding to set address.
[ 211.134978] usb 7-1: Device not responding to set address.
[ 211.354950] usb 7-1: device not accepting address 15, error -71
[ 211.557216] usb 7-1: Device not responding to set address.
[ 211.774988] usb 7-1: Device not responding to set address.
[ 211.994958] usb 7-1: device not accepting address 16, error -71
[ 212.185075] usb 7-1: new SuperSpeed USB device number 17 using xhci-hcd
[ 212.220666] scsi10 : usb-storage 7-1:1.0
[ 213.755357] usb 7-1: device not accepting address 17, error -22
[ 214.634962] usb 7-1: device not accepting address 17, error -22
[ 215.514955] usb 7-1: device not accepting address 17, error -22
[ 216.124971] usb 7-1: device not accepting address 17, error -22
[ 216.138391] usb 7-1: USB disconnect, device number 17
[ 216.169427] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee39e940
[ 216.185008] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee39e96c
[ 216.635044] usb 7-1: new SuperSpeed USB device number 18 using xhci-hcd
[ 216.670840] scsi11 : usb-storage 7-1:1.0
[ 217.135061] usb 7-1: reset SuperSpeed USB device number 18 using xhci-hcd
[ 217.165455] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 217.181117] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 217.675569] scsi 11:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 217.695541] sd 11:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 217.714675] sd 11:0:0:0: [sdb] Write Protect is off
[ 217.729304] sd 11:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 217.742224] sd 11:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 217.761118] sd 11:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 217.778122] sdb: sdb1
[ 217.791809] sd 11:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 217.808514] sd 11:0:0:0: [sdb] Attached SCSI disk
[ 218.505131] usb 7-1: reset SuperSpeed USB device number 18 using xhci-hcd
[ 218.535486] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 218.551078] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 224.445081] usb 7-1: reset SuperSpeed USB device number 18 using xhci-hcd
[ 224.475542] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 224.491247] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 228.545085] usb 7-1: reset SuperSpeed USB device number 18 using xhci-hcd
[ 228.575462] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 228.591169] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 230.424958] usb 7-1: device not accepting address 18, error -22
[ 231.034961] usb 7-1: device not accepting address 18, error -22
[ 231.644987] usb 7-1: device not accepting address 18, error -22
[ 232.254975] usb 7-1: device not accepting address 18, error -22
[ 232.268205] usb 7-1: USB disconnect, device number 18
[ 232.288751] sd 11:0:0:0: [sdb] Synchronizing SCSI cache
[ 232.301350] sd 11:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 232.318679] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bc0
[ 232.333980] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ed1c0bec
[ 233.584989] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 233.599224] hub 7-0:1.0: unable to enumerate USB device on port 1
[ 234.255056] usb 7-1: new SuperSpeed USB device number 20 using xhci-hcd
[ 234.290683] scsi12 : usb-storage 7-1:1.0
[ 234.575076] usb 7-1: reset SuperSpeed USB device number 20 using xhci-hcd
[ 234.605510] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5940
[ 234.620853] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad596c
[ 235.295552] scsi 12:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 235.315341] sd 12:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 235.334405] sd 12:0:0:0: [sdb] Write Protect is off
[ 235.348741] sd 12:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 235.361602] sd 12:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 235.380488] sd 12:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 235.397337] sdb: sdb1
[ 235.410996] sd 12:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 235.427613] sd 12:0:0:0: [sdb] Attached SCSI disk
[ 239.054989] usb 7-1: device not accepting address 20, error -22
[ 239.934960] usb 7-1: device not accepting address 20, error -22
[ 240.544969] usb 7-1: device not accepting address 20, error -22
[ 241.154958] usb 7-1: device not accepting address 20, error -22
[ 241.168093] usb 7-1: USB disconnect, device number 20
[ 241.188872] sd 12:0:0:0: [sdb] Synchronizing SCSI cache
[ 241.201659] sd 12:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 241.223279] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad5940
[ 241.238887] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad596c
[ 241.535043] usb 7-1: new SuperSpeed USB device number 21 using xhci-hcd
[ 241.570534] scsi13 : usb-storage 7-1:1.0
[ 242.575592] scsi 13:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 242.595581] sd 13:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 242.613649] sd 13:0:0:0: [sdb] Write Protect is off
[ 242.628695] sd 13:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 242.641825] sd 13:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 242.660880] sd 13:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 242.678105] sdb: sdb1
[ 242.695163] sd 13:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 242.713430] sd 13:0:0:0: [sdb] Attached SCSI disk
[ 245.605082] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 245.635502] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 245.651327] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 247.845088] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 247.875486] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 247.891537] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 253.603750] usb 7-1: Device not responding to set address.
[ 253.824974] usb 7-1: Device not responding to set address.
[ 254.044973] usb 7-1: device not accepting address 21, error -71
[ 254.235069] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 254.265516] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 254.281134] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 257.285100] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 257.315526] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 257.331381] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 257.585060] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 257.615635] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 257.631379] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 258.275083] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 258.305504] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 258.321075] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 258.615122] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 258.645446] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 258.661158] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 260.375083] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 260.405488] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 260.421633] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 261.665077] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 261.695498] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 261.711649] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 261.955088] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 261.985464] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 262.001589] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 262.295361] usb 7-1: Device not responding to set address.
[ 262.514978] usb 7-1: Device not responding to set address.
[ 262.734982] usb 7-1: device not accepting address 21, error -71
[ 262.925044] usb 7-1: reset SuperSpeed USB device number 21 using xhci-hcd
[ 262.955520] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 262.971719] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 265.494959] usb 7-1: device not accepting address 21, error -22
[ 266.104981] usb 7-1: device not accepting address 21, error -22
[ 266.714960] usb 7-1: device not accepting address 21, error -22
[ 267.328777] usb 7-1: device not accepting address 21, error -22
[ 267.342396] usb 7-1: USB disconnect, device number 21
[ 267.363861] sd 13:0:0:0: [sdb] Synchronizing SCSI cache
[ 267.376689] sd 13:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 267.394856] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 267.411006] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 267.775042] usb 7-1: new SuperSpeed USB device number 22 using xhci-hcd
[ 267.810528] scsi14 : usb-storage 7-1:1.0
[ 268.815629] scsi 14:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 268.835715] sd 14:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 268.853823] sd 14:0:0:0: [sdb] Write Protect is off
[ 268.868861] sd 14:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 268.881939] sd 14:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 268.900718] sd 14:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 299.145121] sd 14:0:0:0: Device offlined – not ready after error recovery
[ 299.161014] sd 14:0:0:0: [sdb] Unhandled error code
[ 299.173282] sd 14:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 299.187272] sd 14:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 299.202223] end_request: I/O error, dev sdb, sector 0
[ 299.214539] Buffer I/O error on device sdb, logical block 0
[ 299.227418] sd 14:0:0:0: rejecting I/O to offline device
[ 299.240660] sd 14:0:0:0: rejecting I/O to offline device
[ 299.253650] sdb: unable to read partition table
[ 299.265955] sd 14:0:0:0: [sdb] Attached SCSI disk
[ 299.365008] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 301.545017] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 301.558245] usb 7-1: USB disconnect, device number 22
[ 301.575764] sd 14:0:0:0: [sdb] Synchronizing SCSI cache
[ 301.588185] sd 14:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 301.945040] usb 7-1: new SuperSpeed USB device number 23 using xhci-hcd
[ 301.980430] scsi15 : usb-storage 7-1:1.0
[ 302.335093] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 302.365469] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 302.381105] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 302.655122] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 302.685122] usb 7-1: device descriptor read/8, error -71
[ 302.804949] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 302.835103] usb 7-1: device descriptor read/8, error -71
[ 303.675066] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 303.708451] usb 7-1: device descriptor read/8, error -71
[ 303.824945] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 303.855092] usb 7-1: device descriptor read/8, error -71
[ 304.155136] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 304.185461] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 304.201102] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 304.221355] scsi 15:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 304.241804] sd 15:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 304.261187] sd 15:0:0:0: [sdb] Write Protect is off
[ 304.275798] sd 15:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 304.289213] sd 15:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 304.308113] sd 15:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 306.642205] sdb: sdb1
[ 306.656622] sd 15:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 306.672669] sd 15:0:0:0: [sdb] Attached SCSI disk
[ 316.575098] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 316.605499] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 316.621261] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 316.995087] usb 7-1: reset SuperSpeed USB device number 23 using xhci-hcd
[ 317.025565] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 317.041437] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 318.644967] usb 7-1: device not accepting address 23, error -22
[ 319.524964] usb 7-1: device not accepting address 23, error -22
[ 320.134959] usb 7-1: device not accepting address 23, error -22
[ 320.744962] usb 7-1: device not accepting address 23, error -22
[ 320.758475] usb 7-1: USB disconnect, device number 23
[ 320.779454] sd 15:0:0:0: [sdb] Synchronizing SCSI cache
[ 320.792399] sd 15:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 320.810219] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dc0
[ 320.826336] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep edad1dec
[ 325.835093] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 331.794984] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 404.275020] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 404.705074] usb 7-1: new SuperSpeed USB device number 24 using xhci-hcd
[ 404.740689] scsi16 : usb-storage 7-1:1.0
[ 405.745584] scsi 16:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 405.765468] sd 16:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 405.783515] sd 16:0:0:0: [sdb] Write Protect is off
[ 405.798173] sd 16:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 405.811159] sd 16:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 405.829996] sd 16:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 436.135027] sd 16:0:0:0: Device offlined – not ready after error recovery
[ 436.149628] sd 16:0:0:0: [sdb] Unhandled error code
[ 436.161800] sd 16:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 436.175819] sd 16:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 436.190781] end_request: I/O error, dev sdb, sector 0
[ 436.203154] Buffer I/O error on device sdb, logical block 0
[ 436.216101] sd 16:0:0:0: rejecting I/O to offline device
[ 436.229109] sd 16:0:0:0: rejecting I/O to offline device
[ 436.242065] sdb: unable to read partition table
[ 436.254440] sd 16:0:0:0: [sdb] Attached SCSI disk
[ 436.335044] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 436.348716] usb 7-1: USB disconnect, device number 24
[ 436.366353] sd 16:0:0:0: [sdb] Synchronizing SCSI cache
[ 436.379411] sd 16:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 436.735065] usb 7-1: new SuperSpeed USB device number 25 using xhci-hcd
[ 436.770539] scsi17 : usb-storage 7-1:1.0
[ 437.255076] usb 7-1: reset SuperSpeed USB device number 25 using xhci-hcd
[ 437.285472] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee3d8140
[ 437.301101] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee3d816c
[ 437.775602] scsi 17:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 437.796090] sd 17:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 437.814662] sd 17:0:0:0: [sdb] Write Protect is off
[ 437.829032] sd 17:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 437.841822] sd 17:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 437.860800] sd 17:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 468.105122] sd 17:0:0:0: Device offlined – not ready after error recovery
[ 468.119871] sd 17:0:0:0: [sdb] Unhandled error code
[ 468.132187] sd 17:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 468.146362] sd 17:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 468.161415] end_request: I/O error, dev sdb, sector 0
[ 468.173591] Buffer I/O error on device sdb, logical block 0
[ 468.187095] sd 17:0:0:0: rejecting I/O to offline device
[ 468.200313] sd 17:0:0:0: rejecting I/O to offline device
[ 468.213239] sdb: unable to read partition table
[ 468.225543] sd 17:0:0:0: [sdb] Attached SCSI disk
[ 468.265003] usb 7-1: USB disconnect, device number 25
[ 468.282584] sd 17:0:0:0: [sdb] Synchronizing SCSI cache
[ 468.295512] sd 17:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 502.784053] EXT4-fs (sda1): recovery complete
[ 502.797699] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 533.145018] hub 6-0:1.0: unable to enumerate USB device on port 1
[ 533.435051] usb 7-1: new SuperSpeed USB device number 26 using xhci-hcd
[ 533.471280] scsi18 : usb-storage 7-1:1.0
[ 535.135018] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 535.564966] usb 7-1: device not accepting address 26, error -22
[ 536.174961] usb 7-1: device not accepting address 26, error -22
[ 537.265017] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 537.694966] usb 7-1: device not accepting address 26, error -22
[ 538.304960] usb 7-1: device not accepting address 26, error -22
[ 538.318791] usb 7-1: USB disconnect, device number 26
[ 538.349449] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aec0
[ 538.365489] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57aeec
[ 538.715066] usb 7-1: new SuperSpeed USB device number 27 using xhci-hcd
[ 538.750698] scsi19 : usb-storage 7-1:1.0
[ 539.055131] usb 7-1: reset SuperSpeed USB device number 27 using xhci-hcd
[ 539.085722] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee174cc0
[ 539.101602] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee174cec
[ 539.125704] usb 7-1: can’t restore configuration #1 (error=-71)
[ 539.139788] usb 7-1: USB disconnect, device number 27
[ 539.555041] usb 7-1: new SuperSpeed USB device number 28 using xhci-hcd
[ 539.590423] scsi20 : usb-storage 7-1:1.0
[ 540.335081] usb 7-1: reset SuperSpeed USB device number 28 using xhci-hcd
[ 540.365508] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee14ff40
[ 540.381312] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee14ff6c
[ 540.401877] usb 7-1: can’t restore configuration #1 (error=-71)
[ 540.415241] usb 7-1: USB disconnect, device number 28
[ 540.885038] usb 7-1: new SuperSpeed USB device number 29 using xhci-hcd
[ 540.924234] scsi21 : usb-storage 7-1:1.0
[ 541.935569] scsi 21:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 541.956144] sd 21:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 541.975174] sd 21:0:0:0: [sdb] Write Protect is off
[ 541.990028] sd 21:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 542.003213] sd 21:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 542.022381] sd 21:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 544.423964] sdb: sdb1
[ 544.439148] sd 21:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 544.462609] sd 21:0:0:0: [sdb] Attached SCSI disk
[ 547.075110] usb 7-1: reset SuperSpeed USB device number 29 using xhci-hcd
[ 547.105481] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee386540
[ 547.121714] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee38656c
[ 549.245105] usb 7-1: reset SuperSpeed USB device number 29 using xhci-hcd
[ 549.275535] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee386540
[ 549.291712] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee38656c
[ 551.635264] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 552.064958] usb 7-1: device not accepting address 29, error -22
[ 552.674962] usb 7-1: device not accepting address 29, error -22
[ 553.284969] usb 7-1: device not accepting address 29, error -22
[ 554.164978] usb 7-1: device not accepting address 29, error -22
[ 554.178981] usb 7-1: USB disconnect, device number 29
[ 554.200305] sd 21:0:0:0: [sdb] Synchronizing SCSI cache
[ 554.213384] sd 21:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 554.231157] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee386540
[ 554.247247] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee38656c
[ 554.675060] usb 7-1: new SuperSpeed USB device number 30 using xhci-hcd
[ 554.709551] usb 7-1: device descriptor read/8, error -71
[ 554.824949] usb 7-1: new SuperSpeed USB device number 30 using xhci-hcd
[ 554.855233] usb 7-1: device descriptor read/8, error -71
[ 556.174993] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 556.189921] hub 7-0:1.0: unable to enumerate USB device on port 1
[ 556.635043] usb 7-1: new SuperSpeed USB device number 32 using xhci-hcd
[ 556.671132] scsi22 : usb-storage 7-1:1.0
[ 557.375115] usb 7-1: reset SuperSpeed USB device number 32 using xhci-hcd
[ 557.405540] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57af40
[ 557.421423] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57af6c
[ 558.914996] usb 7-1: device not accepting address 32, error -22
[ 560.064992] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 560.080403] usb 7-1: USB disconnect, device number 32
[ 560.111047] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57af40
[ 560.127734] xhci-hcd xhci-hcd: xHCI xhci_drop_endpoint called with disabled ep ee57af6c
[ 561.404995] hub 7-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 561.834966] usb 7-1: device not accepting address 33, error -22
[ 563.195007] usb 7-1: device not accepting address 34, error -22
[ 564.284970] usb 7-1: device not accepting address 35, error -22
[ 564.475051] usb 7-1: new SuperSpeed USB device number 36 using xhci-hcd
[ 564.511013] scsi23 : usb-storage 7-1:1.0
[ 565.525650] scsi 23:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 565.547222] sd 23:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 565.565424] sd 23:0:0:0: [sdb] Write Protect is off
[ 565.580410] sd 23:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 565.593671] sd 23:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 565.612570] sd 23:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 596.105128] sd 23:0:0:0: Device offlined – not ready after error recovery
[ 596.120082] sd 23:0:0:0: [sdb] Unhandled error code
[ 596.132643] sd 23:0:0:0: [sdb] Result: hostbyte=0x05 driverbyte=0x00
[ 596.146921] sd 23:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[ 596.162001] end_request: I/O error, dev sdb, sector 0
[ 596.174590] Buffer I/O error on device sdb, logical block 0
[ 596.187663] sd 23:0:0:0: rejecting I/O to offline device
[ 596.200957] sd 23:0:0:0: rejecting I/O to offline device
[ 596.214071] sdb: unable to read partition table
[ 596.226658] sd 23:0:0:0: [sdb] Attached SCSI disk
[ 596.274996] usb 7-1: USB disconnect, device number 36
[ 596.292880] sd 23:0:0:0: [sdb] Synchronizing SCSI cache
[ 596.305362] ehci_irq: highspeed device connect
[ 596.316855] ehci_irq: highspeed device disconnect
[ 596.329095] sd 23:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 596.347643] usb 1-1.1: USB disconnect, device number 3
[ 615.795338] usb 1-1.1: new high-speed USB device number 4 using sunxi-ehci
[ 615.952211] scsi24 : usb-storage 1-1.1:1.0
[ 616.966615] scsi 24:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 616.987583] sd 24:0:0:0: [sda] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 617.005981] sd 24:0:0:0: [sda] Write Protect is off
[ 617.020980] sd 24:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 617.034603] sd 24:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 617.053933] sd 24:0:0:0: [sda] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 619.423340] sda: sda1
[ 619.438689] sd 24:0:0:0: [sda] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 619.596610] sd 24:0:0:0: [sda] Attached SCSI disk
[ 659.523337] NTFS-fs error (device sda1): parse_ntfs_boot_sector(): Sector size (512) is smaller than the device block size (4096). This is not supported. Sorry.
[ 659.548258] NTFS-fs error (device sda1): ntfs_fill_super(): Unsupported NTFS filesystem.
[ 777.863650] usb 1-1.1: USB disconnect, device number 4
[ 777.886399] sd 24:0:0:0: [sda] Synchronizing SCSI cache
[ 777.899529] sd 24:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
[ 796.381901] ehci_irq: highspeed device connect
[ 796.393965] ehci_irq: highspeed device disconnect
[ 797.637945] ehci_irq: highspeed device connect
[ 797.924973] usb 3-1: new high-speed USB device number 2 using sunxi-ehci
[ 798.091119] scsi25 : usb-storage 3-1:1.0
[ 799.105871] scsi 25:0:0:0: Direct-Access PI-239 USB 2.0 Drive 1.08 PQ: 0 ANSI: 4
[ 799.126831] sd 25:0:0:0: [sda] 32 512-byte logical blocks: (16.3 kB/16.0 KiB)
[ 799.145015] sd 25:0:0:0: [sda] Write Protect is off
[ 799.158129] sd 25:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 799.171591] sd 25:0:0:0: [sda] No Caching mode page present
[ 799.185055] sd 25:0:0:0: [sda] Assuming drive cache: write through
[ 799.202807] sd 25:0:0:0: [sda] No Caching mode page present
[ 799.216550] sd 25:0:0:0: [sda] Assuming drive cache: write through
[ 799.231588] sda: unknown partition table
[ 799.248941] sd 25:0:0:0: [sda] No Caching mode page present
[ 799.262577] sd 25:0:0:0: [sda] Assuming drive cache: write through
[ 799.276785] sd 25:0:0:0: [sda] Attached SCSI disk
[ 882.394993]
[ 882.395000]
[ 882.395003] rmmod_host_driver
[ 882.395006]
[ 882.431046] Set USB Power OFF
[ 882.441091] xhci-hcd xhci-hcd: remove, state 1
[ 882.452588] usb usb7: USB disconnect, device number 1
[ 882.465993] xHCI xhci_drop_endpoint called for root hub
[ 882.478491] xHCI xhci_check_bandwidth called for root hub
[ 882.493390] xhci-hcd xhci-hcd: USB bus 7 deregistered
[ 882.505635] xhci-hcd xhci-hcd: remove, state 1
[ 882.517582] usb usb6: USB disconnect, device number 1
[ 882.530380] xHCI xhci_drop_endpoint called for root hub
[ 882.543128] xHCI xhci_check_bandwidth called for root hub
[ 882.556663] xhci-hcd xhci-hcd: USB bus 6 deregistered
[ 882.569233] sunxi_controller_mode:NULL!
[ 882.580308] start: sunxi_close_usb_clock
[ 882.591406] end: sunxi_close_usb_clock
[ 1012.595338] usb 1-1.1: new high-speed USB device number 5 using sunxi-ehci
[ 1012.752834] scsi26 : usb-storage 1-1.1:1.0
[ 1013.766616] scsi 26:0:0:0: Direct-Access ASMT 2115 0 PQ: 0 ANSI: 6
[ 1013.786578] sd 26:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 1013.803575] sd 26:0:0:0: [sdb] Write Protect is off
[ 1013.816812] sd 26:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 1013.830568] sd 26:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[ 1013.849808] sd 26:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 1016.166341] sdb: sdb1
[ 1016.181316] sd 26:0:0:0: [sdb] 244190646 4096-byte logical blocks: (1.00 TB/931 GiB)
[ 1016.208999] sd 26:0:0:0: [sdb] Attached SCSI disk
[ 1081.208135] ehci_irq: highspeed device disconnect
[ 1081.220108] usb 3-1: USB disconnect, device number 2
[ 1135.215464] usb 1-1.3: new high-speed USB device number 6 using sunxi-ehci
[ 1135.341228] scsi27 : usb-storage 1-1.3:1.0
[ 1136.356609] scsi 27:0:0:0: Direct-Access PI-239 USB 2.0 Drive 1.08 PQ: 0 ANSI: 4
[ 1136.377216] sd 27:0:0:0: [sda] 32 512-byte logical blocks: (16.3 kB/16.0 KiB)
[ 1136.394983] sd 27:0:0:0: [sda] Write Protect is off
[ 1136.407678] sd 27:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1136.420711] sd 27:0:0:0: [sda] No Caching mode page present
[ 1136.433758] sd 27:0:0:0: [sda] Assuming drive cache: write through
[ 1136.451174] sd 27:0:0:0: [sda] No Caching mode page present
[ 1136.464506] sd 27:0:0:0: [sda] Assuming drive cache: write through
[ 1136.479080] sda: unknown partition table
[ 1136.496680] sd 27:0:0:0: [sda] No Caching mode page present
[ 1136.509836] sd 27:0:0:0: [sda] Assuming drive cache: write through
[ 1136.523603] sd 27:0:0:0: [sda] Attached SCSI disk
[ 1172.871778] usb 1-1.1: USB disconnect, device number 5
[ 1172.893791] sd 26:0:0:0: [sdb] Synchronizing SCSI cache
[ 1172.905943] sd 26:0:0:0: [sdb] Result: hostbyte=0x01 driverbyte=0x00
[ 1193.615040] PHY: gmac0-0:00 – Link is Down
[ 1229.625044] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 1269.635031] PHY: gmac0-0:00 – Link is Down
[ 1280.645039] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 1360.655038] PHY: gmac0-0:00 – Link is Down
[ 1366.665122] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 1460.675038] PHY: gmac0-0:00 – Link is Down
[ 1467.685041] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 1483.695038] PHY: gmac0-0:00 – Link is Down
[ 1497.705032] PHY: gmac0-0:00 – Link is Up – 100/Full
[ 2520.537794] echo flag|reg|val > ac100
[ 2520.548206] eg read star addres=0x06,count 0x10:echo 0610 >ac100
[ 2520.560946] eg write value:0x13fe to address:0x06 :echo 10613fe > ac100
[ 2648.455528] usb 1-1.3: USB disconnect, device number 6
[ 2707.575336] usb 1-1.1: new high-speed USB device number 7 using sunxi-ehci
[ 2707.701862] scsi28 : usb-storage 1-1.1:1.0
[ 2708.716620] scsi 28:0:0:0: Direct-Access PI-239 USB 2.0 Drive 1.08 PQ: 0 ANSI: 4
[ 2708.736830] sd 28:0:0:0: [sda] 250069680 512-byte logical blocks: (128 GB/119 GiB)
[ 2708.753962] sd 28:0:0:0: [sda] Write Protect is off
[ 2708.769986] sd 28:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 2708.783078] sd 28:0:0:0: [sda] No Caching mode page present
[ 2708.795750] sd 28:0:0:0: [sda] Assuming drive cache: write through
[ 2708.812921] sd 28:0:0:0: [sda] No Caching mode page present
[ 2708.825636] sd 28:0:0:0: [sda] Assuming drive cache: write through
[ 2708.845831] sda: sda1
[ 2708.865932] sd 28:0:0:0: [sda] No Caching mode page present
[ 2708.878661] sd 28:0:0:0: [sda] Assuming drive cache: write through
[ 2708.891991] sd 28:0:0:0: [sda] Attached SCSI disk
root@cubieboard4:/#

netfilter persistent

as debian switched to systemd as default init system my firewall scripts did not function anymore and as I am a lazy guy I also switched from a script based system to netfilter-persistent. These scripts take over the task of saving and initiating the firewall system based on the current active settings. So I may still use the scripts already created while using systemd as init process.

  • save current iptables rules: netfilter-persistent save
  • start last saved settings: netfilter-persistent start

WebFrontEnd for rsnapshot based backup system

As already discussed in: rsnapshot backup solution I am using rsnapshot as my main backup solutions for a variety of servers.
But I am lazy and often forget about the correct settings, commands, etc. For this reason I started building up some web front ends for several common daily tasks. Just to remember what to do and how and of course to have some fun with programming.
And here is another part of this series: The Rsnapshot Web Front End:

The complete webpage is enclosed into one file – this was my first internal order, because I wanted something that may be installed very easily. There is also a file structure as follows:
main folder:

  • default – the base for new config files
  • pid – the process id file
  • logs – the folder with log files
  • rsnapshot – the folder holding the config files
  • backup.php – the web front end

The default file is cloned to get the base for an new config file and as such is the master. All files in folder rsnapshot are shown in a matrix to access the action.

The web page itself is self explanatory and allows to:

  • view the config and logfiles,
  • create and delete a config file/server entry
  •  start a backup process and
  • edit the config file

Any new entry made in the config file is checked against a regular expression already within the backup.php file to avoid misconfigurations. The editing is further devided into normal and expert mode whereas normal mode is only showing the most important options and expert mode is showing all options.

The styling/design of the page is very poor and might be improved later on. Also the security of the page is lacking some attention and might change.

But now to the code:

<?php ############# HEAD  ############################
echo "<!DOCTYPE html>\n";
echo "<html>\n<head>\n <meta charset='utf-8'><meta name='viewport' content='width=device-width, initial-scale=1.0'>\n";
############# style sheets ########################
echo "<title>Backup Admin Page</title>\n</head>\n<body>\n\n";
echo "<header><h1>Backup Admin - Main Page</h1>";
echo "<h4>created to configure my own backup system based on rsnapshot</h4></header>\n";
echo "<style>.red { color: red;} .blue {color: blue;} .hide {display: none;} .comment { width: 100%;}</style>";
############# Configuration ##########################
$config['configfile'] = "rsnapshot/";# folder for config files
$config['logfile'] = "log/";# folder for logfiles
$config['command'] = "ls -l";# command to be executed to start backup
##################################### no editing below here ###########################
$PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF']); # use one file only which will be reload with new parameters all the time
$general_menu = array( "Cancel", "NewHost");# general menue options not associated with host/server
$menue_items = array("ShowConfigfile", "StartBackup", "ShowLogfile", "EditConfigfile", "Delete");# menue items for each host/server
$config['columns'] = count($menue_items);# the number of columns in total
$config['values'] = array("snapshot_root", "interval", "backup", "no_create_root", "cmd_cp", "cmd_rm",
		"cmd_rsync", "cmd_ssh", "cmd_logger", "cmd_du", "verbose", "loglevel", "rsync_long_args", "ssh_args", 
		"du_args", "logfile", "lockfile", "config_version");
$config["inputtype"]["interval"] = array("weekly","hourly","daily","monthly");
$config["inputtype"]["verbose"] = array("1","2","3","4","5");
$config["inputtype"]["loglevel"] = array("1","2","3","4","5");
##################################### function definitions ########################################
####### clear html variables from malicious code
function clean_html($variable){
	return trim(htmlspecialchars($variable));
}
###### debug output of POST
function debug_output(){
	echo "<pre><br><h1>Hier kommt der schamass!</h1>";
	print_r($_POST);
	echo "</pre>"; return ;
}
###### parse contents of configfile and store everything in two arrays
function parse_file_contents($filename){
	global $inputvalues; # one matrix for all values already filled with defaults
	if ($data = file_get_contents($filename)){
		$contents = explode("\n", $data);$comment = "";
		foreach ($contents as $line) { # parse each line of the input file seperately
			$line = trim($line); $value = ""; # and override default values with config file values
			if (strlen($line) && substr($line, 0, 1) == '#') # a comment line
				$comment .= "\n".$line; 
			elseif (strlen($line)){ # non empty line found
				$key = trim(strtok($line, " \t")); # name of the specific option is first parameter
				while ($inputpart = strtok(" \t")) $value = $value.trim($inputpart)."\t"; # rest of the line is combined as value
				if ($key == "exclude") # special treatement for excluded directories
					$inputvalues["exclude"][] = trim($value);
				else # normal value will override default values in array
					$inputvalues["values"][$key] = trim($value);
				if ($comment != "") {# non enpty comment will be stored
					$inputvalues['comment'][$key] = $comment; 
					$comment = "";
				}
			}
		}
		$return = "File: ".$filename." successfully paresed!";
	}
	else # could not get file contents via function so die
		$return = "Could not open file: ".$filename;
	return $return;
}
####### save config file
function save_conf_file($inputvalues, $filename){
	global $config;
	$output = "";
	foreach ($config['values'] as $key){# iterate over all config file parameters
		if (isset($inputvalues['comment'][$key])) $output .= $inputvalues['comment'][$key]."\n";
		if (isset($inputvalues['values'][$key]))  $output .= $key."\t".$inputvalues['values'][$key]."\n";
	}
	if (isset($inputvalues['comment']['exclude'])) $output .= $inputvalues['comment']['exclude']."\n";
	foreach ($inputvalues['exclude'] as $key => $value)
		if ($inputvalues['exclude'][$key] != "") $output .= "exclude"."\t".$value."\n";
	
	/*
	if ($handle = fopen($filename, "w")){ # open configfile for write
		fwrite($handle, $output);
		fclose($handle);
	}
	
	else 
		$return = "Could not open file: ".$filename;
		*/
	return "<pre>".$output."</pre>";
#	return $return;
}
####### edit values using defaults or values from config file
function edit_conf_file($inputvalues, $config, $mode){
	$class = "show";
	$return = "<table border='1' width='100%'>\n<tr><td colspan='4' align='right'>";
	$return .= "<input type='submit' name='action[Expert]' value='".$mode."'></td></tr>\n";
	foreach ($config['values'] as $key){
		if ($key == "no_create_root" && $mode == "Normal") $class = "hide";# show other entries only in expert mnode
		if (isset($inputvalues['comment'][$key])){# any comments for the forthcoming option?
			$rows = substr_count($inputvalues['comment'][$key], "\n") + 2;
			$return .= "<tr class='".$class."'><td colspan='3'><textarea cols='100%' rows='".$rows;
			$return .= "' name='inputvalues[comment][".$key."]'> ".$inputvalues['comment'][$key];
			$return .= " </textarea></td></tr>\n";
		}# and now the entry
		$return .= "<tr class='".$class."'><td>".$key."</td>";
		if (isset($config['inputtype'][$key])) {# no simple input field but a select box
			$return .= "<td><select name='inputvalues[values][".$key."]' size='1'>";
			foreach ($config['inputtype'][$key] as $value){
				$return .= "<option";
				if(isset($inputvalues['values'][$key]) && strtok($inputvalues['values'][$key], " ") == $value ) $return .= " selected ";
				$return .= ">".$value."</option>\n";
			}
			$return .= "</select></td>";
		} else {# simple input field
			$return .= "<td><input type='input' name='inputvalues[values][".$key."]' value='";
			if (isset($inputvalues['values'][$key])) $return .= $inputvalues['values'][$key]; 
			$return .= "'></td>";
		}
		$return .= "<td></td></tr>\n";
	}################# Exclude directories ##################
	$return .= "<tr class='show'><td colspan='4'>Exclude Directories:</td></tr>\n";
	if (isset($inputvalues['comment']['exclude'])){
		$rows = substr_count($inputvalues['comment']['exclude'], "\n") + 2;
		$return .= "<tr class='show'><td colspan='3'><textarea cols='100%' rows='".$rows;
		$return .= "' name='inputvalues[comment][exclude]'> ".$inputvalues['comment']['exclude'];
		$return .= " </textarea></td></tr>\n";
	}
	if (isset($inputvalues['exclude'])){
		foreach ($inputvalues['exclude'] as $subkey => $value){# show excludes as checkbox list
			if ($value != "") {# only if there is an entry and not en empty line
				$return .= "<tr class='show'><td colspan='2'>".$value."</td><td><input type='checkbox' name='inputvalues[exclude]";
				$return .= "[".$subkey."]' value='".$value."' checked></td></tr>\n";
			}
		}
	} 
	for ($i=0; $i < 5; $i++)# add 5 extra rows for exclude input
		$return .= "<tr class='show'><td>Add exclude folder</td><td colspan='2'><input type='input' value='' name='inputvalues[exclude][]'></td></tr>\n";
	$return .= "<tr class='show'><td align='center' colspan='2'><input type='submit' value='SaveConfigfile' ";
	$return .= "name='action[SaveConfigfile]'></td><td align='center' colspan='2'>";
	$return .= "<input type='submit' name='action[Cancel]' value='Cancel'></td></tr>\n</table>\n";
	return $return;
}
####### function generate menu
function generate_menue($menue_items, $configfile){
	$return = "<tr><thead align='center'>";
	foreach ($menue_items as $key) # table headers
			$return .= "<th>".$key."</th>";
	$return .= "</thead>\n<tbody align='center'>\n";
	foreach (scandir($configfile) as $file){# iterate over complete directory contents
		if (substr($file, 0, 1) != ".") { # dotfiles are ignored
			$file = htmlspecialchars($file);$return .= "<tr>";
			foreach ($menue_items as $key) {
				$return .= "<td><input type='submit' value='  ".$file."  ' name='action[".$key."]'></td>";
			}
			$return .= "</tr>\n";
		}
	}
	return $return;}
######################################################################
############################## MAIN ##################################
######################################################################
echo "<body><form method='POST' action='".$PHP_SELF."'>\n";# page header with headline and table headers
echo "<table border=1 cellspacing='10'>\n";# everything will be bound to one table
echo generate_menue($menue_items, $config['configfile']);
$cols = round($config['columns'] / 2);$cols_remain = $config['columns'] - $cols;
echo "<tr><td colspan='".$cols."'><input type='submit' name='action[Cancel]' value='Cancel'></td>";
echo "<td colspan='".$cols_remain."'><input type='submit' name='action[NewHost]' value='NewHost'></td></tr>";
######################### Main Menue #####################################
if (isset($_POST['expertMode']) && $_POST['expertMode'] == "Expert") $mode = "Expert";
else $mode = "Normal";
if (isset($_POST['action'])) {
	$menue_entry = array_keys($_POST['action'])[0];# action[<menue_entry>] -> <host>/<menue_entry>
	$host = clean_html($_POST['action'][$menue_entry]);
	switch ($menue_entry){
		case "EditConfigfile":###########################################
			if (file_exists($config['configfile'].$host)) {
				$return = "<h3>Edit (".$host.")</h3>";# show headline
				$return .= parse_file_contents($config['configfile'].$host);
				$return .= "<input type='hidden' name='hostname' value='".$host."'>";			
				$return .= "<pre class='blue'>".edit_conf_file($inputvalues, $config, $mode)."</pre>";
			} else {
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>File: ".$config['configfile'].$host." does not exist!</pre>\n";# show error message
			}
			break;
		case "Expert":###################################################
			if (isset($_POST['hostname'])){
				$return = "<h3>Edit (".$_POST['hostname'].")</h3>";# show headline
				if ($host == "Expert") $mode = "Normal";
				else $mode = "Expert";
				$return .= "<input type='hidden' name='hostname' value='".$_POST['hostname']."'>";			
				$return .= "<pre class='blue'>".edit_conf_file($_POST['inputvalues'], $config, $mode)."</pre>";
			} else {
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>Error! No host defined!</pre>\n";# show error message
			}
			break;
		case "SaveConfigfile":############################################
			if (isset($_POST['inputvalues'])){
				$return = "<h3>Save Configfile (".$host.")</h3>";# show headline
				$return .= "<pre class='blue'>".save_conf_file($_POST['inputvalues'], $config['configfile'].$host)."</pre>";# write file contents
			} else {
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>Error! No host defined!</pre>\n";# show error message
			}
			break;
		case "ShowConfigfile":############################################
			if (file_exists($config['configfile'].$host)){# check if file exists in folder
				$return = "<h3>Show Configfile (".$host.")</h3>";# show headline
				$return .= "<pre class='blue'>".file_get_contents($config['configfile'].$host)."</pre>";# get file contents
			} else { 
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>File: ".$config['configfile'].$host." does not exist!</pre>";# show error
			}
			break;
		case "StartBackup":###############################################
			$befehl = $config['command']." ".$config['configfile'].$host." 2>&1";# create backup command
			if (file_exists($config['configfile'].$host)){# check if file exists
				$return = "<h3>Start Backup (".$host.")</h3>";
				$return .= "<pre class='blue'>Execute Command: (".$befehl.")</pre>";
				$return .= exec($befehl, $output, $return_val);# execute backup command
#				$return .= $output." ".$return_val;
			} else {
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>File: ".$config['configfile'].$host." does not exist!</pre>";# show error message
			}
			break;
		case "ShowLogfile":##############################################
			if (file_exists($config['logfile'].$host)){ # check if file exists
				$return = "<h3>Show Logfile (".$host.")</h3>";# show headline
				$return .= "<pre class='blue'>".file_get_contents($config['logfile'].$host)."</pre>";# get file contents
			} else { 
				$return = "<h3>Error (".$host.")</h3>";# show headline
				$return .= "<pre class='red'>File: ".$config['logfile'].$host." does not exist!</pre>";# show error message
			}
			break;
		case "Delete":###################################################
			$return = "<h3>Delete (".$host.")</h3>";# show headline
			$return .= "<div class='red'>You really want to delete:"; 
			$return .= "<input type='submit' name='action[ReallyDelete]' value='".$host."'></div>";
			break;
		case "ReallyDelete":#############################################
			$return = "<h3>Delete (".$host.")</h3>";# show headline
			if (file_exists($config['configfile'].$host)){
				if (unlink($config['configfile'].$host)){
						unlink($config['configfile'].$host);
						$return .= "<pre class='blue'>Host: ".$host." successfully deleted!</pre>";
				}
				else 
					$return .= "<pre class='red'>An error occured while deleting Host: ".$host."</pre>";
			}
			else 
				$return .= "<pre class='red'>File: ".$config['configfile'].$host." does not exist!</pre>\n";# show error message
			break;
		case "NewHost":##################################################
			$return = "<h3>Create (New Host)</h3>";# show headline
			$return .= "<div class='blue'>Please name new host entry:";
			$return .= "<input type='input' name='hostname' value='New Host'>";
			$return .= "<input type='submit' name='action[ReallyNewHost]' value='Create'></div>";
			break;
		case "ReallyNewHost":############################################
			$return = "<h3>Create (".$_POST['hostname'].")</h3>";# show headline
			if (file_exists($config['configfile'].$_POST['hostname'])) 
				$return .= "<pre class='red'>Host: <em>".$_POST['hostname']."</em> already exists!</pre>";
			else{
				if (copy('default', $config['configfile'].$_POST['hostname'])) {
					$return .= "<pre class='red'>New Host: <em>".$_POST['hostname']."</em> created!</pre>";
					$return .= parse_file_contents($config['configfile'].$_POST['hostname']);
					$return .= "<input type='hidden' name='hostname' value='".$_POST['hostname']."'>";
					$return .= "<pre class='blue'>".edit_conf_file($inputvalues, $config, $mode)."</pre>";
				}
				else 
					$return .= "<pre class='red'>Error while copying!</pre>";
			}
			break;
		default:#########################################################
			$return = "<h3>Error (".$menue_entry.")</h3>";# show headline
			$return .= "<pre class='red'>Please choose one of the options above!</pre>";
			break;
	}
}
elseif (isset($_POST['Comment'])){# comment button pressed
	$menue_entry = clean_html(array_keys($_POST['Comment'])[0]);# Comment[<config file option>][<line no>] -> <+/->
	$line = clean_html(array_keys($_POST['Comment'][$menue_entry])[0]);
		if (isset($_POST['hostname'])){
			$return = "<h3>Edit (".$_POST['hostname'].")</h3>";# show headline
			$return .= "<input type='hidden' name='hostname' value='".$_POST['hostname']."'>";
			$inputvalues = $_POST['inputvalues']; unset($inputvalues['comment'][$menue_entry][$line]);# delete specific line from variable			
			$return .= "<pre class='blue'>".edit_conf_file($inputvalues, $config, $mode)."</pre>";
		}
		else 
			$return = "<pre class='red'>Error! No host defined!</pre>\n";# show error message
}
else $return = "";
$return .= "<input type='hidden' name='expertMode' value='".$mode."'>";
################# Main Menue End ########################################
echo "<tr><td colspan='".$config['columns']."' align='left'>".$return."</td></tr>";
echo "</tr>\n</tbody></table>\n";
echo "<pre>";print_r($config);echo "</pre>";
echo "<pre> ";print_r($inputvalues);echo "</pre>";
debug_output();
############################# END #################################################################
echo "<br><br>";
echo "</form>\n<footer id='footer'>My personal page hosted on my own server &copy; olkn</footer></body></HTML>\n";
########### END ###################################?>

msmtp – config

To add the capability of sending email from any host I decided to install msmtp-mta on any host that does not include a full email server. The config is done in the file: /etc/msmtprc

and here is the contents:
account default
host cubietruck.steppenwolf.de
auto_from on
maildomain steppenwolf.de
tls on
tls_trust_file /etc/CA/cert.pem