wdcommunity / wdpksrc Goto Github PK
View Code? Open in Web Editor NEWCross compilation framework to create native packages for the Western Digital My Cloud
License: BSD 3-Clause "New" or "Revised" License
Cross compilation framework to create native packages for the Western Digital My Cloud
License: BSD 3-Clause "New" or "Revised" License
Platform
My Cloud Ex2 Ultra
Application
Portainer/Docker
Describe the bug
I have more or less accidentally fully wiped docker on my nas & tried to reinstall it.
When i reinstall portainer from .bin (manual installation), the application is not launched.
When i execute ./install.sh . ..
manually, docker is not installed (see logs).
Logs
Installing with APPDIR: ../docker / ../docker
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (23) Failed writing body (1328 != 1370)
No orig daemon found
ln: /sbin/*: File exists
Found existing docker storage. Reusing.
Docker setup NOK
Setting up docker
Found docker symlink
ln: /usr/lib/xtables/xtables: Read-only file system
Loading drivers
Loading /usr/local/modules/driver/nf_conntrack.ko
insmod: error inserting '/usr/local/modules/driver/nf_conntrack.ko': -1 File exists
failed to load /usr/local/modules/driver/nf_conntrack.ko
Loading /usr/local/modules/driver/nf_nat.ko
insmod: error inserting '/usr/local/modules/driver/nf_nat.ko': -1 File exists
failed to load /usr/local/modules/driver/nf_nat.ko
Loading /usr/local/modules/driver/nf_defrag_ipv4.ko
insmod: error inserting '/usr/local/modules/driver/nf_defrag_ipv4.ko': -1 File exists
failed to load /usr/local/modules/driver/nf_defrag_ipv4.ko
Loading /usr/local/modules/driver/nf_conntrack_ipv4.ko
insmod: error inserting '/usr/local/modules/driver/nf_conntrack_ipv4.ko': -1 File exists
failed to load /usr/local/modules/driver/nf_conntrack_ipv4.ko
Loading /usr/local/modules/driver/nf_nat_ipv4.ko
insmod: error inserting '/usr/local/modules/driver/nf_nat_ipv4.ko': -1 File exists
failed to load /usr/local/modules/driver/nf_nat_ipv4.ko
Loading /usr/local/modules/driver/x_tables.ko
insmod: error inserting '/usr/local/modules/driver/x_tables.ko': -1 File exists
failed to load /usr/local/modules/driver/x_tables.ko
Loading /usr/local/modules/driver/xt_conntrack.ko
insmod: error inserting '/usr/local/modules/driver/xt_conntrack.ko': -1 File exists
failed to load /usr/local/modules/driver/xt_conntrack.ko
Loading /usr/local/modules/driver/xt_addrtype.ko
insmod: error inserting '/usr/local/modules/driver/xt_addrtype.ko': -1 File exists
failed to load /usr/local/modules/driver/xt_addrtype.ko
Loading /usr/local/modules/driver/xt_tcpudp.ko
insmod: error inserting '/usr/local/modules/driver/xt_tcpudp.ko': -1 File exists
failed to load /usr/local/modules/driver/xt_tcpudp.ko
Loading /usr/local/modules/driver/xt_nat.ko
insmod: error inserting '/usr/local/modules/driver/xt_nat.ko': -1 File exists
failed to load /usr/local/modules/driver/xt_nat.ko
Loading /usr/local/modules/driver/nf_nat_masquerade_ipv4.ko
insmod: can't read '/usr/local/modules/driver/nf_nat_masquerade_ipv4.ko': No such file or directory
failed to load /usr/local/modules/driver/nf_nat_masquerade_ipv4.ko
Loading /usr/local/modules/driver/ipt_MASQUERADE.ko
insmod: error inserting '/usr/local/modules/driver/ipt_MASQUERADE.ko': -1 File exists
failed to load /usr/local/modules/driver/ipt_MASQUERADE.ko
Loading /usr/local/modules/driver/ip_tables.ko
insmod: error inserting '/usr/local/modules/driver/ip_tables.ko': -1 File exists
failed to load /usr/local/modules/driver/ip_tables.ko
Loading /usr/local/modules/driver/iptable_filter.ko
insmod: error inserting '/usr/local/modules/driver/iptable_filter.ko': -1 File exists
failed to load /usr/local/modules/driver/iptable_filter.ko
Loading /usr/local/modules/driver/iptable_nat.ko
insmod: error inserting '/usr/local/modules/driver/iptable_nat.ko': -1 File exists
failed to load /usr/local/modules/driver/iptable_nat.ko
Loading /usr/local/modules/driver/llc.ko
insmod: error inserting '/usr/local/modules/driver/llc.ko': -1 File exists
failed to load /usr/local/modules/driver/llc.ko
Loading /usr/local/modules/driver/stp.ko
insmod: error inserting '/usr/local/modules/driver/stp.ko': -1 File exists
failed to load /usr/local/modules/driver/stp.ko
Loading /usr/local/modules/driver/bridge.ko
insmod: error inserting '/usr/local/modules/driver/bridge.ko': -1 File exists
failed to load /usr/local/modules/driver/bridge.ko
Loading /usr/local/modules/driver/br_netfilter.ko
insmod: can't read '/usr/local/modules/driver/br_netfilter.ko': No such file or directory
failed to load /usr/local/modules/driver/br_netfilter.ko
Setting up cgroup
Starting Docker
Docker setup NOK
Docker is not setup! Run docker_daemon.sh setup
shm_cleanup:
Cannot umount ""
umount: /var/lib/docker/plugins: not found
umount: /var/lib/docker: not mounted
Total RAM: 1037312 KB
Creating /sys/fs/cgroup/memory/docker
Docker quota: 345770 KB
Set memory quota for docker: 354091008
Docker pid 29593
./install.sh: line 78: docker: not found
./install.sh: line 83: docker: not found
Well, first the good news... there seem to be zero SSL-related issues (also Amazon Cloud Drive and OneDrive tested; 100% success). If you go to fully delete a backup (specifically if you select to "Delete remote files"), an error will be thrown, not allowing the deletion to happen. A captcha is used in this situation that is generated using the mono package libgdiplus
- which is still left out of some releases, because... reasons.
Can you please add transmission-seq package for transmission with sequential download feature? This feature allows to start watching movie while it's still downloading
Sources available here: https://github.com/Mikayex/transmission
Compiled binaries for OS3 and WD MyCloud Gen2 here
Tried to install WDMyCloudEX4_entware_1.04.bin via webgui on my MyCloudEX4 and it seemed to install fine.
However, running opkg gives 'Illegal Instruction' error. Investigating further, it seems the install script is installing entware meant for armv7 devices. I think the EX4 is armv5?
uname -a on my device yields:
Linux WDMyCloudEX4 3.2.40 #1 Fri Nov 16 11:50:03 CST 2018 armv5tel GNU/Linux
Same thing with the docker package; I believe armv7 binary is installed so it fails in the same way.
Currently only the x64 packages are supported... need to support ARM to build packages as it's the most popular platform
I tested the linux binary, it works out of the box.
Platform
e.g. My Cloud
Application
e.g. CouchPotato
Describe the bug
After a reboot couchpotato does not start due to removal of /opt/etc/init.d/S90CouchPotato file
Hardware: WD PR4100
OS: 5.04.114
Running: Docker with Portainer 1.24.1
Containers running:
linuxserver/Medusa
linuxserver/Transmission
linuxserver/deluge
linuxserver/Plex
Problem:
Medusa gets a connection error when trying to access the Transmission host: port (192.168.0.32 9091)
Seems like the containers can't talk to each other
How do I fix this within Portainer
I've tried to create a new bridge and still can't fix (unless I'm getting the settings wrong).
No longer supported from OS3
https://www.emule-project.net/home/perl/general.cgi?l=1&rm=download leads to https://github.com/irwir/eMule/releases/
https://github.com/rclone/rclone-webui-react
This powerful tool now has a web GUI... it's still a bit rough but it's easy to setup, so it deserves a package.
I would like to ask kindly to include WDMyCloudMirrorGen2 in your supported devices for OS5.
Hello,
Can you tell me how to update Transmission on the WD PR4100 version of WD and the
version 1.06.bin Transmission 2.84 (14307).
The firmware ships without ca certificates (or outdated certs) and uses wget --no-check-certificate too often.
We can get safer downloads by getting the mozilla ca bundle first.
curl --remote-name --time-cond cacert.pem https://curl.haxx.se/ca/cacert.pem
mv cacert.pem /etc/ssl/cert.pem
I try to install manually through the WEB GUI - however, I get the error: "The app cannot be installed, due to the dependent app is not installed"
This happens with Medusa
Add an 'appstore' hook into the WD web UI to fetch the latest packages.
How do I update portainer? I cant update the image if the container is already running?
So I’ve downloaded Docker install from https://wdcommunity.com/, but when I load it up on host:9000. I get Twonky Server and not Docker or Portainer. What is going on?
Platform
DL2100
Application
Docker - Portainer
Describe the bug
trying to run portainer on 9001 with following command but getting error.
root@WDMyCloudDL2100 sbin # docker run -d -p 9001:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
52a5bc01b81178fcdaedfd56a2651fa3bc88e42fe7cddd8a78a6e9821cbb357c
docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/var/run/docker.sock\\\" to rootfs \\\"/mnt/HD/HD_a2/Nas_Prog/_docker/vfs/dir/80543dded3ebeeab5ad52b85da41e1ab33d88c75ed10b186c0c7df6734a7b421\\\" at \\\"/mnt/HD/HD_a2/Nas_Prog/_docker/vfs/dir/80543dded3ebeeab5ad52b85da41e1ab33d88c75ed10b186c0c7df6734a7b421/var/run/docker.sock\\\" caused \\\"invalid argument\\\"\"": unknown.
Any chance to have ps3netsrv be published on https://bintray.com/tfl/wdpksrc or here?
Would be very grateful for WD MyCloud Gen2 version of app.
Seems that WD My Cloud Home can run Debian: http://4pda.ru/forum/index.php?showtopic=467828&st=12140#entry87961189
Hi,
I've updated the packages for docker on the EX4100 to docker-19.03.2. File is available at https://github.com/JediNite/docker-ce-WDEX4100-binaries/blob/master/armv7l-WDEX4100/docker-19.03.2.tgz.
Cheers,
JediNite
Look into the option of adding podman support to the WD series of NAS instead of using docker. Newer versions of docker don't work properly on arm, so this may be an alternative.
https://podman.io/getting-started/installation
Thoughts ?
Platform
PR4100 WD MyCloud
Application
Docker
Describe the bug
The DLNA server on the device already uses Port 9000.
Could you please alter the port of Docker or make it configurable in the settings?
Thank you!
Hi there,
Any chance to get the cops package updated for OS5. I currently get the infamous "Incomplete App Download" error when trying to install the bin file manually.
Many thanks, Stephan
Can you help/explain this error please:
Warning: Cannot modify header information - headers already sent by (output started at /mnt/HD/HD_a2/Nas_Prog/cops/web/config_local.php:1) in /mnt/HD/HD_a2/Nas_Prog/cops/web/index.php on line 37
I changed the library path to:
$config['calibre_directory'] = '/shares/eBooks/';
As Tautulli now depends on Entware, the init script should move to /opt/etc/init.d
Tautulli also needs to define Entware as an InstallRequires dependency in its apkg.rc
Platform
My Cloud Mirror Gen2
Application
Entware
Describe the bug
I have installed the entware_20.11.17_MirrorG2.bin using GUI to my unit.
Firmware: 5.11.112
It was not working as expected though. So I tried to remove it.
But I cannot completely remove it.
Even after removing from gui, the installed packages have entware components and some startup and shutdown scripts still remain in the unit.
And I get confusing log outputs during reboots.
How do I completely remove it? Or
How can I restore my unit to stock?
Emby requires mono 4.8, while several other apps prefer 5.8... what to do with that?
Hi,
I've updated the packages for docker on the EX4100 to docker-18.06.0-ce.tgz. File is available at https://github.com/JediNite/docker-ce-WDEX4100-binaries/raw/master/armv7l-WDEX4100/docker-18.06.0-ce.tgz.
Cheers,
JediNite
It seems that perhaps the installer for duplicati on at least the EX4 doesn't properly install mono. I'm not sure how to debug manually, but even when attempting to start via SSH, it complains about it. From the webui, it just never starts, and thus duplicati's interface is inaccessible. PS confirms the process is not running. Happy to help debug further.
Looks like an attractive open source tool to manage video streams.
https://shinobi.video/docs/start
I'd consider the docker route first.
Hi! I'm maintaining some packages for WD MyCloud Gen2.
My repo is https://github.com/machsix/WDMyCloud-Gen2
Is it possible to join the community?
Hi, do you plan to release mc also for e.g. EX2 Ultra?
Currently on bintray only the following version is available:
mc_PR4100_4.8.21-5.bin
Thank you!
Best,
Zack
Entware clean fails to unmount when there are still running processes.
All processes on /opt should be stopped, not only those in /opt/etc/init.d
Platform
DL4100
Application
Docker
Describe the bug
Install works, but unable to mount directories.
I just did a full factory reset, and reinstalled docker from scratch. I ensured the old docker was not running before installing via gui. I also removed the old _docker folder.
# /usr/sbin/docker_daemon.sh shutdown
# rm -rf /shares/Volume_1/Nas_Prog/_docker
Docker log: https://gist.github.com/roblandry/5e7a07c71f5a07c84ad97cc4a5a733f5
Info:
# uname -a
Linux WDMyCloudDL4100 3.10.38 #1 SMP Thu Aug 29 20:49:31 PDT 2019 Build-gitcdc15cb x86_64 GNU/Linux
# ./daemon.sh status && echo OK
OK
# ./daemon.sh issetup && echo OK
Docker setup NOK
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1fc5f4e7712b portainer/portainer "/portainer" 7 minutes ago Created 0.0.0.0:9000->9000/tcp frosty_hofstadter
# docker --version
Docker version 19.03.5, build 633a0ea838
# which docker
/sbin/docker
# ls -l /var/lib
lrwxrwxrwx 1 root root 33 Jan 25 10:42 docker -> /shares/Volume_1/Nas_Prog/_docker
drwxr-xr-x 2 root root 0 Jan 25 10:42 dpkg
drwxr-xr-x 2 root root 0 Jan 25 10:42 samba
# ls -l ../_docker
drwx------ 2 root root 4096 Jan 25 10:35 builder
drwx--x--x 4 root root 4096 Jan 25 10:35 buildkit
drwx------ 3 root root 4096 Jan 25 10:35 containerd
drwx------ 3 root root 4096 Jan 25 10:36 containers
-rw-r--r-- 1 root root 102007 Jan 25 10:56 docker.log
drwx------ 3 root root 4096 Jan 25 10:35 image
drwxr-x--- 3 root root 4096 Jan 25 10:35 network
drwx------ 4 root root 4096 Jan 25 10:35 plugins
drwx------ 2 root root 4096 Jan 25 10:42 runtimes
drwx------ 2 root root 4096 Jan 25 10:35 swarm
drwx------ 2 root root 4096 Jan 25 10:42 tmp
drwx------ 2 root root 4096 Jan 25 10:35 trust
drwx------ 3 root root 4096 Jan 25 10:42 vfs
drwx------ 2 root root 4096 Jan 25 10:35 volumes
# sh stop.sh .
DOCKER stop: stop daemon
Remaining mounts:
# sh start.sh .
DOCKER START: setup daemon
DOCKER START: start daemon
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
# docker start frosty_hofstadter
Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/var/run/docker.sock\\\" to rootfs \\\"/mnt/HD/HD_a2/Nas_Prog/_docker/vfs/dir/ccda66261c444d3c201924b0976525c4dcccb35678e3a8894e1160deeccdb097\\\" at \\\"/mnt/HD/HD_a2/Nas_Prog/_docker/vfs/dir/ccda66261c444d3c201924b0976525c4dcccb35678e3a8894e1160deeccdb097/var/run/docker.sock\\\" caused \\\"invalid argument\\\"\"": unknown
Error: failed to start containers: frosty_hofstadter
# docker info
Client:
Debug Mode: false
Server:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 1
Server Version: 19.03.5
Storage Driver: vfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.38
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 5.819GiB
Name: WDMyCloudDL4100
ID: PRW4:LG6G:4ZRW:DL7W:W6AZ:OJRN:XWJZ:HZ44:5B35:ZN7F:7AGV:Y73W
Docker Root Dir: /mnt/HD/HD_a2/Nas_Prog/_docker
Debug Mode: true
File Descriptors: 20
Goroutines: 40
System Time: 2020-01-25T11:02:10.993388975-08:00
EventsListeners: 0
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
WARNING: No kernel memory limit support
WARNING: No kernel memory TCP limit support
Additional:
# cat /proc/mounts | grep var/lib/docker
# cat /proc/mounts
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,relatime 0 0
mdev /dev tmpfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
squash /usr/local/tmp ramfs rw,relatime,size=101m 0 0
/dev/loop0 /usr/local/modules squashfs ro,relatime 0 0
tmpfs /usr/local/config tmpfs rw,relatime,size=8192k,nr_inodes=0 0 0
tmpfs /mnt tmpfs rw,nosuid,nodev,noexec,relatime,size=1024k,nr_inodes=0 0 0
tmpfs /var/log tmpfs rw,nosuid,nodev,noexec,relatime,size=40960k,nr_inodes=0 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,nr_inodes=20000 0 0
tmpfs /tmp/wdnas_snap_config tmpfs rw,relatime,size=8192k,nr_inodes=0 0 0
/dev/sda4 /mnt/HD_a4 ext4 rw,nosuid,nodev,noexec,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,data=ordered 0 0
/dev/sda2 /mnt/HD/HD_a2 ext4 rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,stripe=128,data=ordered 0 0
cgroup /sys/fs/cgroup tmpfs rw,relatime,mode=755 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu cgroup rw,relatime,cpu 0 0
cgroup /sys/fs/cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,relatime,freezer 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,relatime,blkio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,relatime,perf_event 0 0
/dev/sda2 /mnt/HD/HD_a2/Nas_Prog/_docker ext4 rw,noatime,nodiratime,nobarrier,quota,usrquota,grpquota,stripe=128,data=ordered 0 0
Platform
My Cloud EX2 Ultra
Application
Docker
Describe the bug
I installed the dependencies on Ubuntu, cloned the repository and launched build.sh inside the docker folder.
I obtained inside packages/docker/OS5 the compiled package docker_20.10.5_EX2Ultra.bin (along with the other platforms and source).
I installed it through the web interface, obtaining a successful installation and a version number 20.10.5.
Accessing through ssh and running "docker -v", I get version 19.03.8.
If I uninstall Docker from the webinterface, "docker -v" gives me command not found.
I needed the version 20.10.0+ in order to use the docker option "--add-host host.docker.internal:host-gateway" and access the mariadb database in the host from the docker container.
Attached the source
docker_20.10.5_src.tar.gz
HI, I have had to rebuild my server due to a failed RAID. Where are the full install instructions again? It’s been a while.
I’ve installed the bin file via wd web UI
Port 9000 is blank
Just need the Command line instructions, please?
In the case of COPS the .htaccess file is ignored on WD NAS.
Can instructions be provided as to how to enable .htaccess within the COPS directory.
Using a PR2100 and have SSH knowledge, however anytime I modify the http.config or any other config, they are reverted after NAS reboot.
If anyone is able to provide how to enable .htaccess on WD NAS that would be amazing.
Busybox v1.20.2 (current default for latest official PR4100 firmware) was not compiled with the math
function, therefore on startup, when start.sh
goes to launch start-stop-status
, it errors out.
line 102: syntax error: you disabled math support for $((arith)) syntax
i get this error when i start docker:
Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables --wait -t nat -N DOCKER: iptables v1.4.21: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3)
What can I do about it? Is there a newer kernel for this device?
I've got the new toolchain for OS5. Only minor changes for 3rd party packages.
I'll probably do an overhaul over the project soon.
Stay tuned.
Unfortunately, the builds for Zerotier don't work on the EX4, probably due to the CPU difference. Please see: zerotier/ZeroTierNAS#24
If anyone would be willing to create a zerotier release, I would be immensely grateful. I ask simply due to others having experience with this toolchain. If not, please let me know, and I'll take a look to see if I can make it work (but I'll be starting from scratch).
Thanks again,
Michael
Platform
Ex 2 ultra
Application
Docker
Describe the bug
After i install docker i click configure and leads me to port 9000 but it refused to connect
Platform
All
Application
NZBGET
Describe the bug
Typo in preinst.sh
I've done a PoC by modding the installer... it would be nice to add it here as an alternative for entware.
ARM support is not that easy though.
Currently it copies the binaries, but symlinks with a full path are sufficient.
Use this to test it
sh init.sh $(pwd)
Hi is there any chance that you will migrate tautulli to support OS5?I currently get the infamous "Incomplete App Download" error when trying to install the bin file manually.
Many thanks, Kostas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.