Welcome! Log In Create A New Profile

Advanced

Owncloud 10 On Debian 10 OXNAS V3

Posted by hacksome 
Owncloud 10 On Debian 10 OXNAS V3
June 15, 2020 08:34AM
I did managed to get Owncloud10 running on a 128Mb Pogoplug V3 OXNAS with Debian 10 installed....

Based on a proper quality microUSB card (32GB) formatted with one 6GB ext4 primary partition
labeled ¨rootfs¨ and remaining data space ext4 formatted labeled ¨data¨

Create or update system to Debian Buster as described here: https://forum.doozan.com/read.php?2,16044
Ensure that systemd is working properly!
ssh into your Pogolug.....
First enhance memory headroom for installation and running multiple programs to prevent memory shortage

nano /etc/fstab

add:

none /run tmpfs defaults,size=64M 0 0

(32M will probably do as well) save fstab and remount:

mount -o remount /run

check with:
df -h /run

Add swapfile of 512MB with following commands:

fallocate -l 512MB /swapfile
dd if=/dev/zero of=/swapfile bs=1024 count=524288
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

check with:

swapon --show

and:
free -h

(I did not adjust swappiness)

make it permanent:
nano /etc/fstab

add:
/swapfile swap swap defaults 0 0

then run:
apt update

DO NOT INSTALL updates yet! just update list ( apt install upgrade broke the system, eth0 not initialized).

Install apache and php including some extra modules for OC10:

apt install apache2 php libapache2-mod-php php-{mysql,intl,curl,json,gd,xml,mbstring,sqlite3,zip}

Then to prevent problems with untrusted cetificates:

apt-get install ca-certificates

Manually install OC .deb package: (Using OC repository still nagged about something not trusted)

cd /tmp
wget https://download.owncloud.org/download/repositories/production/Debian_10/all/owncloud-files_10.4.1-1+1.1_all.deb

install with:

dpkg -i owncloud-files_10.4.1-1+1.1_all.deb

create OC (host?) config file for apache:

nano /etc/apache2/sites-available/owncloud.conf

Insert following text:

Alias /owncloud "/var/www/owncloud/"

<Directory /var/www/owncloud/>
  Options +FollowSymlinks
  AllowOverride All

 <IfModule mod_dav.c>
  Dav off
 </IfModule>

 SetEnv HOME /var/www/owncloud
 SetEnv HTTP_HOME /var/www/owncloud

</Directory>

save it and tell apache to use that file:
ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf

enable changes with:

a2enmod rewrite unique_id

(I am not sure if unique_id is required) restart apache:

systemctl restart apache2

in browser open:

http://ipadress_pogoplug/owncloud

be patient.....
login: admin, pw: owncloud
be more patient....
if all is well then you can login a second time again with admin/owncloud and then the OC opening-screen will show itself.

Adding external local storage to OC ( the ¨data¨ labeled partition on the same MicroSD card)

Logout from OC. (don´t know if required, but just to prevent problems)

logged in with ssh at your Pogoplug server:

make mount point:

mkdir /media/ocldata
mount /dev/sda2 /media/ocldata

( make sure the correct /dev is available on your system and that it is formatted properly, on my system it is /dev/sda2 ext4 formatted)

adjust proper permissions:

chown -R www-data:www-data /media/ocldata
chmod -R 0750 /media/ocldata

make permanent:

nano /etc/fstab

add:

/dev/sda2     /media/ocldata     ext4     defaults     0     1

save and remount:

umount /media/ocldata
mount -a
df -h

then to enable local storage in OC:

nano /var/www/owncloud/config/config.php

add the following variable declaration:

'files_external_allow_create_new_local' => true,

login again into OC using browser as admin, select top right: settings
then left side below admin selections:
select storage (or something like that)
the next screen will show that external storage is disabled, enable it
Select add storage, select local and enter the path you created before
/media/ocldata
thats it.

When you now select the ¨files¨ icon in OC the local storage directory is displayed and can be used

Uploading a file af 1.8G was no problem, you only have to be patient....

I noticed complaints from apache2 about the following:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
AH00557: apache2: apr_sockaddr_info_get() failed for debian
To prevent AH00558:
nano /etc/apache2/sites-available/owncloud.conf

insert the following before the existing text:
Servername debian

To prevent AH00557:
nano /etc/hosts

change
127.0.0.1       localhost

to

127.0.0.1       debian

restart apache2

systemctl restart apache2

I do not know if systems that are connected to a network with a fully functional DNS server for local systems as well do need the last 2 modifications. As far as I know the apache2 errors do not interfere with the functionality of OC either.

I did some tweaking:
installed redis for caching, that reduced swapping during browsing on the server substantially at least when no image files were present.

I also disabled most OC apps for fancy stuff. I did not see much improvement from it.
I created secure access SSL/TLS with self signed certificates. That increased system use a bit.

The biggest improvement on performance was: disable thumbnails.
To do that:

nano /var/www/owncloud/config/config.php

insert:

'enable_previews' => false,

after this mod, swapping remained quite low and did not bring down the system anymore as was the case when uploading more then about 6 or 7 picture files.

What´s the use of all this? When you can live with the limitations not to have fancy features, OC10 can still be installed and used as a secure fileserver on a Pogopug Oxnas V3.

I did create another installation using MariaDB with MySQL instead of SQLite. That install run OK as well, but for now I have chosen to only use sqlite, the built in database hopefully using less resources.

I first tried to use Nginx instead of apache, but could not get it to run. I expect that due to nginx config problems and I was completely new to most of this stuff. After (too) many hours of experimenting and trying to find a solution I just installed LAMP (apache) without Database instead of LEMP (nginx) and that sort of worked out of the box.

So when someone is at home with nginx: I would be happy to try because whit initial trials I had the impression it´s response was notably faster.
Available system resources are pretty low so if nginx uses less of them that would be nice as well.
Probably all will work a little faster when installed on a ssd disk on the sata interface. I did not try that yet.

Have fun!

hacksome



Edited 6 time(s). Last edit at 06/19/2020 09:39AM by hacksome.
Re: Owncloud 10 On Debian 10 OXNAS V3
June 15, 2020 09:10AM
OK I was maybe a little too fast with the above.

I see now at the TTY output a lot of worrying messages and the system became unresponsive. I had this before when I had added the local storage to OC but forgotten to adjust the permissions properly. I thought that was the cause of this kind of error messages but apparently that is not so...

This is what is showing up on the TTY output:

[ 5976.630228] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 6075.488906] systemd[16647]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6075.532720] systemd[16647]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6075.544168] systemd[16647]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6075.657341] systemd[16648]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6075.679938] systemd[16648]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6075.691770] systemd[16648]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6075.805562] systemd[16649]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6075.821399] systemd[16649]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6075.832519] systemd[16649]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6075.964139] systemd[16650]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6075.981967] systemd[16650]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6075.993049] systemd[16650]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6076.124710] systemd[16651]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6076.142801] systemd[16651]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6076.153576] systemd[16651]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6148.633617] systemd[16670]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.072046] systemd-logind[16670]: Failed to connect to system bus: No such file or directory
[ 6149.080724] systemd-logind[16670]: Failed to fully start up daemon: No such file or directory
[ 6149.129802] systemd[16671]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.233336] systemd-logind[16671]: Failed to connect to system bus: No such file or directory
[ 6149.242155] systemd-logind[16671]: Failed to fully start up daemon: No such file or directory
[ 6149.283310] systemd[16672]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.385733] systemd-logind[16672]: Failed to connect to system bus: No such file or directory
[ 6149.394373] systemd-logind[16672]: Failed to fully start up daemon: No such file or directory
[ 6149.435901] systemd[16673]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.538944] systemd-logind[16673]: Failed to connect to system bus: No such file or directory
[ 6149.547486] systemd-logind[16673]: Failed to fully start up daemon: No such file or directory
[ 6149.587304] systemd[16674]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.688686] systemd-logind[16674]: Failed to connect to system bus: No such file or directory
[ 6149.697226] systemd-logind[16674]: Failed to fully start up daemon: No such file or directory
[ 6831.252712] systemd[17021]: phpsessionclean.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6831.285562] systemd[17021]: phpsessionclean.service: Failed to set up mount namespacing: No such file or directory
[ 6831.296537] systemd[17021]: phpsessionclean.service: Failed at step NAMESPACE spawning /usr/lib/php/sessionclean: No such file or directory
[ 8631.043875] systemd[17045]: phpsessionclean.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 8631.058511] systemd[17045]: phpsessionclean.service: Failed to set up mount namespacing: No such file or directory
[ 8631.069498] systemd[17045]: phpsessionclean.service: Failed at step NAMESPACE spawning /usr/lib/php/sessionclean: No such file or directory
[10431.032064] systemd[17068]: phpsessionclean.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[10431.046090] systemd[17068]: phpsessionclean.service: Failed to set up mount namespacing: No such file or directory
[10431.057282] systemd[17068]: phpsessionclean.service: Failed at step NAMESPACE spawning /usr/lib/php/sessionclean: No such file or directory

What I did the first time when this happened:
enterded ctr-D on the TTY
that spawned:

[11334.068254] systemd[17080]: serial-getty@ttyS0.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
I got a login prompt:
entered my login/pw
dmesg output:
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Pogoplug V3 Pro
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c0b30540, node_mem_map c7ef9000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] random: get_random_bytes called from start_kernel+0x84/0x3f8 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s29548 r8192 d23700 u61440
[    0.000000] pcpu-alloc: s29548 r8192 d23700 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=41000000.nand:14m(boot),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 112712K/131072K available (7168K kernel code, 199K rwdata, 1524K rodata, 1024K init, 245K bss, 18360K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
                   lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0xc0008000 - 0xc0800000   (8160 kB)
                     .init : 0xc0a00000 - 0xc0b00000   (1024 kB)
                     .data : 0xc0b00000 - 0xc0b31f68   ( 200 kB)
                      .bss : 0xc0b383b8 - 0xc0b757c0   ( 246 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] FPGA IRQ chip 0 "interrupt-controller" @ c8804000, 32 irqs, parent IRQ: 16
[    0.000017] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000046] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000061] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.000087] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.000232] GIC: PPI13 is secure or misconfigured
[    0.000286] GIC: PPI13 is secure or misconfigured
[    0.000453] Console: colour dummy device 80x30
[    0.000496] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050380] pid_max: default: 32768 minimum: 301
[    0.050652] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050677] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051573] CPU: Testing write buffer coherency: ok
[    0.090442] Setting up static identity map for 0x60100000 - 0x60100038
[    0.110341] Hierarchical SRCU implementation.
[    0.150343] smp: Bringing up secondary CPUs ...
[    0.220454] GIC: PPI13 is secure or misconfigured
[    0.280629] smp: Brought up 1 node, 2 CPUs
[    0.280660] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.281387] devtmpfs: initialized
[    0.286784] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.286819] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.287144] prandom: seed boundary self test passed
[    0.291438] prandom: 100 self tests passed
[    0.291458] pinctrl core: initialized pinctrl subsystem
[    0.292160] NET: Registered protocol family 16
[    0.293770] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.296273] cpuidle: using governor ladder
[    0.296348] cpuidle: using governor menu
[    0.314813] vgaarb: loaded
[    0.315320] SCSI subsystem initialized
[    0.315658] libata version 3.00 loaded.
[    0.316029] usbcore: registered new interface driver usbfs
[    0.316113] usbcore: registered new interface driver hub
[    0.316259] usbcore: registered new device driver usb
[    0.316454] pps_core: LinuxPPS API ver. 1 registered
[    0.316472] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.316505] PTP clock support registered
[    0.317529] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    0.333276] NET: Registered protocol family 2
[    0.334151] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.334195] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.334228] TCP: Hash tables configured (established 1024 bind 1024)
[    0.334392] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.334440] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.334707] NET: Registered protocol family 1
[    0.335459] RPC: Registered named UNIX socket transport module.
[    0.335482] RPC: Registered udp transport module.
[    0.335495] RPC: Registered tcp transport module.
[    0.335508] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.335526] PCI: CLS 0 bytes, default 32
[    0.335884] Unpacking initramfs...
[    1.044485] Freeing initrd memory: 6316K
[    1.045652] Initialise system trusted keyrings
[    1.045724] Key type blacklist registered
[    1.046054] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.053317] zbud: loaded
[    1.058112] NFS: Registering the id_resolver key type
[    1.058155] Key type id_resolver registered
[    1.058168] Key type id_legacy registered
[    1.058193] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.058206] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.059118] fuse init (API version 7.26)
[    1.060052] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.060316] orangefs_init: module version upstream loaded
[    3.043824] Key type asymmetric registered
[    3.043850] Asymmetric key parser 'x509' registered
[    3.043950] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    3.043968] io scheduler noop registered
[    3.043980] io scheduler deadline registered
[    3.044042] io scheduler cfq registered (default)
[    3.046274] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    3.047892] console [ttyS0] disabled
[    3.048030] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    3.621934] console [ttyS0] enabled
[    3.635937] loop: module loaded
[    3.640977] scsi host0: sata_oxnas
[    3.644695] ata1: SATA max UDMA/133 irq 57
[    3.648942] sata_oxnas: resetting SATA core
[    3.717882] nand: Could not find valid ONFI parameter page; aborting
[    3.724221] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    3.730590] nand: Hynix NAND 128MiB 3,3V 8-bit
[    3.735019] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    3.742594] Scanning device for bad blocks
[    3.749416] Bad eraseblock 33 at 0x000000420000
[    3.778408] Bad eraseblock 336 at 0x000002a00000
[    3.795947] Bad eraseblock 496 at 0x000003e00000
[    3.811322] Bad eraseblock 629 at 0x000004ea0000
[    3.847201] Bad eraseblock 1015 at 0x000007ee0000
[    3.852615] 2 ofpart partitions found on MTD device 41000000.nand-controller
[    3.859673] Creating 2 MTD partitions on "41000000.nand-controller":
[    3.866004] 0x000000000000-0x000000e00000 : "boot"
[    3.872399] 0x000000e00000-0x000008000000 : "data"
[    3.880307] libphy: Fixed MDIO Bus: probed
[    3.884784] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    3.890652] oxnas-dwmac 40400000.ethernet: no reset control found
[    3.957642] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    3.962680] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    3.968366] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    3.975644] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    3.982428] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    3.989045] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    3.989422] ata1: SATA link down (SStatus 0 SControl 310)
[    3.996326] oxnas-dwmac 40400000.ethernet: COE Type 2
[    4.006750] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    4.013616] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    4.019880] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    4.071656] libphy: stmmac: probed
[    4.075059] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    4.084544] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    4.095011] PPP generic driver version 2.4.2
[    4.099581] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.106086] ehci-pci: EHCI PCI platform driver
[    4.317596] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    4.323105] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    4.330995] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    4.357601] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    4.363914] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.370731] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.377955] usb usb1: Product: EHCI Host Controller
[    4.382812] usb usb1: Manufacturer: Linux 4.14.180-oxnas-tld-1 ehci_hcd
[    4.389427] usb usb1: SerialNumber: 40200100.ehci
[    4.394936] hub 1-0:1.0: USB hub found
[    4.398842] hub 1-0:1.0: 2 ports detected
[    4.403847] usbcore: registered new interface driver cdc_wdm
[    4.409684] usbcore: registered new interface driver usb-storage
[    4.415800] usbcore: registered new interface driver usbserial
[    4.421760] usbcore: registered new interface driver usbserial_generic
[    4.428354] usbserial: USB Serial support registered for generic
[    4.434634] mousedev: PS/2 mouse device common for all mice
[    4.440381] i2c /dev entries driver
[    4.445099] hidraw: raw HID events driver (C) Jiri Kosina
[    4.450744] usbcore: registered new interface driver usbhid
[    4.456294] usbhid: USB HID core driver
[    4.461570] NET: Registered protocol family 10
[    4.467430] Segment Routing with IPv6
[    4.471255] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.478947] NET: Registered protocol family 17
[    4.483486] Key type dns_resolver registered
[    4.488983] registered taskstats version 1
[    4.493066] Loading compiled-in X.509 certificates
[    4.497991] zswap: loaded using pool lzo/zbud
[    4.579676] Key type big_key registered
[    4.620595] Key type encrypted registered
[    4.767559] usb 1-1: new high-speed USB device number 2 using oxnas-ehci
[    4.867724] oxnas-pcie 47c00000.pcie-controller: PCIe version/deviceID 0x82510b5
[    4.875197] oxnas-pcie 47c00000.pcie-controller: link up
[    4.880839] oxnas-pcie 47c00000.pcie-controller: PCI host bridge to bus 0000:00
[    4.888179] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[    4.895029] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[    4.902343] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
[    4.908625] pci_bus 0000:00: root bus resource [bus 00-7f]
[    4.914129] pci 0000:00:00.0: [1814:3090] type 00 class 0x028000
[    4.914191] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[    4.914639] PCI: bus0: Fast back to back transfers disabled
[    4.920263] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x4800ffff]
[    4.927644] hctosys: unable to open rtc device (rtc0)
[    4.934648] Freeing unused kernel memory: 1024K
[    4.989655] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    4.996359] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    5.009600] usb 1-1: Product: USB2.0 Hub
[    5.014912] hub 1-1:1.0: USB hub found
[    5.019159] hub 1-1:1.0: 4 ports detected
[    5.184023] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    5.192775] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    5.200363] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    5.347653] usb 1-1.4: new high-speed USB device number 3 using oxnas-ehci
[    5.518394] usb 1-1.4: New USB device found, idVendor=1908, idProduct=0226
[    5.525268] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    5.548961] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    5.575336] scsi host1: usb-storage 1-1.4:1.0
[    5.957117] usbcore: registered new interface driver uas
[    6.648622] scsi 1:0:0:0: Direct-Access     Generic  Mass-Storage     1.11 PQ: 0 ANSI: 2
[    7.255577] sd 1:0:0:0: [sda] 61267968 512-byte logical blocks: (31.4 GB/29.2 GiB)
[    7.264064] sd 1:0:0:0: [sda] Write Protect is off
[    7.268951] sd 1:0:0:0: [sda] Mode Sense: 03 00 00 00
[    7.269816] sd 1:0:0:0: [sda] No Caching mode page found
[    7.275138] sd 1:0:0:0: [sda] Assuming drive cache: write through
[    7.290565]  sda: sda1 sda2 sda3
[    7.321600] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    7.352834] random: fast init done
[   16.316825] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   17.313518] systemd[1]: System time before build time, advancing clock.
[   17.386462] systemd[1]: Inserted module 'autofs4'
[   17.415426] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.461427] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[   17.484160] systemd[1]: Detected architecture arm.
[   17.529510] systemd[1]: Set hostname to <debian>.
[   18.465533] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[   18.482800] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[   19.033446] systemd[1]: /lib/systemd/system/rpc-statd.service:13: PIDFile= references path below legacy directory /var/run/, updating /var/run/rpc.statd.pid \xffffffe2\xffffff86\xffffff92 /run/rpc.statd.pid; please update the unit file accordingly.
[   19.179476] systemd[1]: Listening on Journal Socket.
[   19.219496] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   19.268362] systemd[1]: Starting Load Kernel Modules...
[   19.308111] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[   20.119060] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   20.961146] systemd-journald[177]: Received request to flush runtime journal from PID 1
[   21.047795] Adding 524284k swap on /swapfile.  Priority:-2 extents:4 across:565244k FS
[   22.590952] rt2800pci 0000:00:00.0: enabling device (0140 -> 0142)
[   22.597360] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3090, rev 3213 detected
[   22.671152] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[   22.708597] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   23.384657] rt2800pci 0000:00:00.0 wlp0s0: renamed from wlan0
[   24.224711] random: crng init done
[   24.228172] random: 7 urandom warning(s) missed due to ratelimiting
[   25.667765] oxnas-dwmac 40400000.ethernet eth0: No phy led trigger registered for speed(-1)
[   25.681574] Generic PHY stmmac-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[   25.698030] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   25.706703] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[   25.713937] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   26.728499] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   26.736939] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 5891.084738] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 5976.630228] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 6075.488906] systemd[16647]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6075.532720] systemd[16647]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6075.544168] systemd[16647]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6075.657341] systemd[16648]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6075.679938] systemd[16648]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6075.691770] systemd[16648]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6075.805562] systemd[16649]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6075.821399] systemd[16649]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6075.832519] systemd[16649]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6075.964139] systemd[16650]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6075.981967] systemd[16650]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6075.993049] systemd[16650]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6076.124710] systemd[16651]: systemd-udevd.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6076.142801] systemd[16651]: systemd-udevd.service: Failed to set up mount namespacing: No such file or directory
[ 6076.153576] systemd[16651]: systemd-udevd.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-udevd: No such file or directory
[ 6148.633617] systemd[16670]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.072046] systemd-logind[16670]: Failed to connect to system bus: No such file or directory
[ 6149.080724] systemd-logind[16670]: Failed to fully start up daemon: No such file or directory
[ 6149.129802] systemd[16671]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.233336] systemd-logind[16671]: Failed to connect to system bus: No such file or directory
[ 6149.242155] systemd-logind[16671]: Failed to fully start up daemon: No such file or directory
[ 6149.283310] systemd[16672]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.385733] systemd-logind[16672]: Failed to connect to system bus: No such file or directory
[ 6149.394373] systemd-logind[16672]: Failed to fully start up daemon: No such file or directory
[ 6149.435901] systemd[16673]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.538944] systemd-logind[16673]: Failed to connect to system bus: No such file or directory
[ 6149.547486] systemd-logind[16673]: Failed to fully start up daemon: No such file or directory
[ 6149.587304] systemd[16674]: systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6149.688686] systemd-logind[16674]: Failed to connect to system bus: No such file or directory
[ 6149.697226] systemd-logind[16674]: Failed to fully start up daemon: No such file or directory
[ 6831.252712] systemd[17021]: phpsessionclean.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 6831.285562] systemd[17021]: phpsessionclean.service: Failed to set up mount namespacing: No such file or directory
[ 6831.296537] systemd[17021]: phpsessionclean.service: Failed at step NAMESPACE spawning /usr/lib/php/sessionclean: No such file or directory
[ 8631.043875] systemd[17045]: phpsessionclean.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[ 8631.058511] systemd[17045]: phpsessionclean.service: Failed to set up mount namespacing: No such file or directory
[ 8631.069498] systemd[17045]: phpsessionclean.service: Failed at step NAMESPACE spawning /usr/lib/php/sessionclean: No such file or directory
[10431.032064] systemd[17068]: phpsessionclean.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory
[10431.046090] systemd[17068]: phpsessionclean.service: Failed to set up mount namespacing: No such file or directory
[10431.057282] systemd[17068]: phpsessionclean.service: Failed at step NAMESPACE spawning /usr/lib/php/sessionclean: No such file or directory
[11334.068254] systemd[17080]: serial-getty@ttyS0.service: Failed to connect stdout to the journal socket, ignoring: No such file or directory

shutdown does not work anymore:
shutdown: /run/initctl: No such file or directory
Couldn't find an alternative telinit implementation to spawn.

so I used sync and cut the power....

As said before I thougt I had this behaviour solved, apparently not.... have no idea yet what causes this. I was not logged in OC anymore, but am not sure if this messages already were popping up when it was still running.
Any help is welcome:)

hacksome



Edited 1 time(s). Last edit at 06/19/2020 09:12AM by hacksome.
Re: Owncloud 10 On Debian 10
June 15, 2020 12:56PM
update your systemd
Re: Owncloud 10 On Debian 10 OXNAS V3
June 16, 2020 06:57AM
Thanks for suggestion, but systemd was already on the newest version.....

Another thing I noticed: after a new boot I kept OC running for a few hrs and uploaded an deleted some files. I checked the memory usage during activities, but those were not worrying. (not much memory left, but no heavy use of swapping either)
I had noticed similar behavior before with a previous install. Similar TTY messages, system becoming inoperative, but this was not repeated when using the system a few more time again after that.
However I have not yet done much testing yet so I should not draw reliable conclusions from a few occasions.

Thanks anyway!



Edited 1 time(s). Last edit at 06/19/2020 09:13AM by hacksome.
Re: Owncloud 10 On Debian 10 OXNAS V3
June 16, 2020 05:01PM
@gravelrash: you were right after all I think.

I figured it out myself because after some trials with uploading pictures the error messages re-appeared and only a few pictures were transferred. Searching for clues I found leads that also pointed to systemd. Checking its availability showed that sysvinit was active and systemd showed: other. So I reinstalled systemd. Then both sysvinit and systemd were available. Maybe that´s not OK either, but at least systemd was now recognized as available and active.

For now it looks OK. Uploading a bunch of pictures generated heavy swapping of the system and the transfer became really slow. I assume due to the generating of the thumbnails, but leaving that activated is a nice way to see what happens. Altogether it functioned as it should. After all thumbnails were created the swapping activity decreased and almost disappeared completely.
So at the moment it seems to function, slow but reliable.

Maybe some additional tuning will improve things a bit.....
Any suggestion is welcome....



Edited 1 time(s). Last edit at 06/19/2020 09:14AM by hacksome.
Re: Owncloud 10 On Debian 10
June 16, 2020 05:48PM
hacksome,

Good works!

I'm going to add this to the Wiki.

In the mean time, please update your post to use code tag for commands and outputs. And move commands to separated lines from description text.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Owncloud 10 On Debian 10 OXNAS V3
June 17, 2020 09:30AM
Bodhi,

I updated the post as requested. I did not add details yet that showed up as complaint in the apache logs. Apache is unable to resolve hostnames or something like that. But that does not prevent it from running properly. I will add that later.

done

During all this I found out that at my system the systemd service was not installed properly for some reason. I hope to have this solved now.

Another thing is the dead eth0 interface after running apt upgrade. See: https://forum.doozan.com/read.php?2,104759
I found a workaround for this, but assume that the source of this problem must be elsewhere.

To be continued....



Edited 2 time(s). Last edit at 06/19/2020 09:14AM by hacksome.
Re: Owncloud 10 On Debian 10 OXNAS V3
June 25, 2020 05:23PM
Up in the Wiki thread:


Quote
https://forum.doozan.com/read.php?2,23630,23630#msg-23630

Home Cloud

OwnCloud optimization
Owncloud 10 on Debian Buster - Pogo V3 OXNAS

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Owncloud 10 On Debian 10 OXNAS V3
June 26, 2020 09:26AM
I may give this a go, I tried once before but had no success, I was under the understanding that owncloud was also nextcloud so I will try to make that work on my spare box in the coming weeks... will post my findings! Good works on that!

Echowarrior108

device: pogoplug-pro v3

Currently running:
Debian GNU/Linux Bullseye 12-9-22
Linux 5.4.224-oxnas-tld-1 armv6l GNU/Linux 11-27-22
Re: Owncloud 10 On Debian 10 OXNAS V3
June 26, 2020 11:38AM
This is how far I got:

Quote
in browser open:

[url]http://ipadress_pogoplug/owncloud[/url]

be patient.....
login: admin, pw: owncloud
be more patient....
if all is well then you can login a second time again with admin/owncloud and then the OC opening-screen will show itself."


result: (quoting my browser)

Quote
This version of ownCloud is not compatible with PHP 7.4
You are currently running PHP 7.4.5.



Plan to solve later I will edit here as I go.If you have a solution please let me know:)

Echowarrior108

device: pogoplug-pro v3

Currently running:
Debian GNU/Linux Bullseye 12-9-22
Linux 5.4.224-oxnas-tld-1 armv6l GNU/Linux 11-27-22
Re: Owncloud 10 On Debian 10 OXNAS V3
July 04, 2020 07:44AM
Quote
Echowarrior108
owncloud was also nextcloud

nextcloud is a fork of owncloud. I do not know the details, but from reading about the 2 I got the impression that nextcloud uses even more resources than owncloud. And I had read about using older versions of owncloud on a Pogoplug in this forum and the wiki.

About:


Quote
Echowarrior108
This version of ownCloud is not compatible with PHP 7.4
You are currently running PHP 7.4.5.


From what I remember during the installation is that particular version of OC10 complain about particular versions of PHP. But it is possible to selectively install other versions of php then the default for your system so you can experiment a little with this.
A simpler option would be using other versions of OC10. You can find find those packages here:
https://download.owncloud.org/download/repositories/10.3/general/Debian_10/

You can walk around in this archive and you should use one of the versions that matches your Debian version. e.g. Debian Strech or 9 or Debian Buster or 10.
Then you can select various versions releases of OC.
The easiest is to download a .deb package. But a tar.gz package can also be used, however that requires another way to install it properly.

So you should be able to download a specific package on your box with (example):

wget https://download.owncloud.org/download/repositories/10.3/general/Debian_10/all/owncloud-files_10.3.2-1+2.1_all.deb

And then install this version with dpkg.

It may even be that your current version of OC10 just does not interpret the PHP version correctly.
What I remember about this is somewhere in the release chain a switch of version was made from OC9 to OC10 and php7.3 to php 7.4 or something like that. But the switch was not really synchronized. I guess that info can be found here:

https://doc.owncloud.com/server/

hacksome
Re: Owncloud 10 On Debian 10 OXNAS V3
July 07, 2020 11:29PM
I will give it a try, I am running bullseye version which may be part of the issue....lol


I did have a working nextcloud on my pc but running a 900watt powersupply is not power friendly so I was kinda reaching back to owncloud as I tried before and gave up but I have 2 plugs so I can toy around with it without losing anything important.Since I got a lot going on here I jump in and out a lot...

Echowarrior108

device: pogoplug-pro v3

Currently running:
Debian GNU/Linux Bullseye 12-9-22
Linux 5.4.224-oxnas-tld-1 armv6l GNU/Linux 11-27-22



Edited 1 time(s). Last edit at 07/07/2020 11:33PM by echowarrior108.
Re: Owncloud 10 On Debian 10 OXNAS V3
October 17, 2020 11:30AM
just a followup, been too busy to work on owncloud and am abandoning my project on it. Thanks for all the help trying to get it to work, just going through noip and using my own setup as is which works very well!

Echowarrior108

device: pogoplug-pro v3

Currently running:
Debian GNU/Linux Bullseye 12-9-22
Linux 5.4.224-oxnas-tld-1 armv6l GNU/Linux 11-27-22
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: