Zyxel Forum - Herzlich Willkommen!

Aktuelle Zeit: Sa 22. Feb 2020, 16:26

Alle Zeiten sind UTC + 1 Stunde




Ein neues Thema erstellen Auf das Thema antworten  [ 21 Beiträge ]  Gehe zu Seite Vorherige  1, 2, 3  Nächste
Autor Nachricht
BeitragVerfasst: Do 16. Jan 2020, 20:01 
Offline

Registriert: Mi 14. Nov 2018, 19:50
Beiträge: 78
Your network connection is not very stable, is it?
Zitat:
When I uninstall entware-ng and reboot, there is still a symlink /opt showing to the non existing folder under .../.PKG/Entware-ng/

Are you sure about that? The rootdirectory is a ramdrive which is embedded in the kernel, and so it's brand new on each boot. The /opt symlink is created by the start script .../.PKG/Entware-ng/etc/init.d/Entware-ng, which doesn't exist, as you said.

When the package is not installed (or disabled) you can safely delete that symlink. It's automatically re-created by the start script (which will also install if it can't find /opt/etc/init.d/rc.unslung after creating the symlink.


Nach oben
 Profil  
 
BeitragVerfasst: Fr 17. Jan 2020, 14:50 
Offline

Registriert: Mo 6. Jan 2020, 14:50
Beiträge: 27
Hi,
no, the connection is stable (50Mbit DSL). I also can't explain these timeouts.

According the /opt:
This is the situation after a fresh reboot (entware-ng is uninstalled):
Code:
root@NAS540:/# ls
bin       etc       i-data    linuxrc   proc      sbin      usr
dev       firmware  init      mnt       ram_bin   sys       var
e-data    home      lib       opt       root      tmp
root@NAS540:/# cd opt
root@NAS540:/opt# ls
sdk
root@NAS540:/opt# cd sdk
root@NAS540:/opt/sdk# ls
arm-msp-linux-gnueabihf
root@NAS540:/opt/sdk# cd arm-msp-linux-gnueabihf/
root@NAS540:/opt/sdk/arm-msp-linux-gnueabihf# ls
build
root@NAS540:/opt/sdk/arm-msp-linux-gnueabihf# cd build/
root@NAS540:/opt/sdk/arm-msp-linux-gnueabihf/build# ls
imagemagick-6.9.0-4
root@NAS540:/opt/sdk/arm-msp-linux-gnueabihf/build# cd imagemagick-6.9.0-4/
root@NAS540:/opt/sdk/arm-msp-linux-gnueabihf/build/imagemagick-6.9.0-4# ls
coders   filters  magick   wand
root@NAS540:/opt/sdk/arm-msp-linux-gnueabihf/build/imagemagick-6.9.0-4#


So the /opt is not empty and that's perhaps the reason why the entware-installation is failing.
The imagemagick-6.9.0-4 is apparently a graphics editing solution (https://github.com/ImageMagick/ImageMagick6) but I don't know how and by which package / app / component it has been installed on the NAS.

So, what to do? Really delete /opt? Or rename /opt and then reboot and check what's the result and try reinstall entware again?


Nach oben
 Profil  
 
BeitragVerfasst: Sa 18. Jan 2020, 12:07 
Offline

Registriert: Mi 14. Nov 2018, 19:50
Beiträge: 78
Does the /opt directory have a different timestamp than /ram_bin?
Code:
ls -lt /

If yes, a presume it's created short after last boot, by some package. But why? And which one? imagemagick suggests it has something to do with image conversion. So maybe the icon build of MyZyXELCloud? Do you have that installed?

Does it contain any executables?
Code:
find /opt/ -executable -type f


Deleting this directory before rebooting doesn't do anything. It's a ramdrive, so nothing is preserved. Unless the directory is a mountpoint
Code:
mountpoint /opt
in that case you might delete some internals of a package.

Theoretically it's simple to deal with that directory in the startscript. If a directory /opt exists, rename it to /opt.orig, or something like that, and create the symlink /opt, and a symlink /opt/sdk pointing to /opt.orig/sdk.
But if Entware-ng is started first on boot, then a problem might arise if the other package can't deal with an /opt symlink.


Nach oben
 Profil  
 
BeitragVerfasst: So 19. Jan 2020, 08:57 
Offline

Registriert: Mo 6. Jan 2020, 14:50
Beiträge: 27
@Mijzelf
Code:
/ # ls -lt /
drwxrwxrwx    7 root     root             0 Jan 19 15:50 tmp
drwxr-xr-x   22 root     root             0 Jan 19 06:18 etc
drwxr-xr-x    3 root     root             0 Jan 18 07:20 opt
drwxr-xr-x    5 root     root             0 Jan 18 06:16 dev
drwxr-xr-x   14 root     root             0 Jan 18 06:16 var
drwxr-xr-x    2 root     root             0 Jan 18 06:16 bin
drwxr-xr-x    4 root     root             0 Jan 18 06:16 home
drwxr-xr-x    3 root     root             0 Jan 18 06:16 i-data
drwxr-xr-x    2 root     root             0 Jan 18 06:16 sbin
drwxr-xr-x    3 root     root             0 Jan 18 06:16 mnt
drwxr-xr-x    9 root     root          1024 Sep  4 14:41 ram_bin
drwxr-xr-x    2 root     root             0 Sep  4 14:39 e-data
drwxr-xr-x    6 root     root             0 Sep  4 14:39 lib
lrwxrwxrwx    1 root     root            11 Sep  4 14:39 linuxrc -> bin/busybox
drwxr-xr-x    2 root     root             0 Sep  4 14:39 root
drwxr-xr-x    8 root     root          1024 Sep  4 14:28 usr
-rwxr-xr-x    1 root     root          6856 Sep  4 14:27 init
drwxr-xr-x    5 root     root             0 Jul 13  2012 firmware
drwxr-xr-x   12 root     root             0 Jul 13  2012 sys
dr-xr-xr-x  156 root     root             0 Jan  1  1970 proc


The find command doesn't know the -executable parameter under FW5.
Here an alternative search (result: no executables)

Code:
/ # find /opt/ -perm +111 -type f
/ #


Nach oben
 Profil  
 
BeitragVerfasst: So 19. Jan 2020, 09:25 
Offline
Benutzeravatar

Registriert: Sa 10. Nov 2018, 17:36
Beiträge: 50
Welche Pakete sind im App Center installiert? Imagemagick könnte vom Twonky Mediaserver oder von der Zyxel Cloud App verwendet werden. Ist einer der beiden Dienste aktiv? Der Zyxel Cloud Agent hat eine Option Miniaturbilder für Mediendateien in freigegebenen Verzeichnissen zu erstellen. Du könntest versuchen, diese Option zu deaktivieren und den Zyxel Cloud Agenten im App Center deinstallieren.


Nach oben
 Profil  
 
BeitragVerfasst: Mo 20. Jan 2020, 21:48 
Offline

Registriert: Mi 14. Nov 2018, 19:50
Beiträge: 78
Seeing that root listing it's clear that /opt is created or adapted about one hour after boot. I suppose you have RandomTools installed, which puts some symlinks in /bin and /sbin, so the packages were started at 6:16. Yet the stamp of /opt is 7:20.

I think you can delete the directory, and after that enable Entware-ng to start the installation. After a reboot Entware-ng will re-create the symlink, and one hour later imagemagick will or will not create a subdirectory sdk in /opt/. If it does, Entware-ng won't care. If it doesn't, then maybe some mysterious function will malfunction, and maybe not.


Nach oben
 Profil  
 
BeitragVerfasst: So 2. Feb 2020, 17:02 
Offline
Benutzeravatar

Registriert: Sa 10. Nov 2018, 17:36
Beiträge: 50
@Mijzelf

I am using https configuration for Metarepository.
Code:
# Mijzelf's repository
https://zyxel.diskstation.eu/Users/Mijzelf/zypkg-repo/fw5/ Mijzelf

This seams to be not possible for Entware-ng because the package list is downloaded using wget. But this tool can't access https ressources.
Code:
root@NAS542:/i-data/b8b96312/admin# opkg update
Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Downloading https://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz
wget: not an http or ftp url: https://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz
*** Failed to download the package list from https://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz

Collected errors:
 * opkg_download: Failed to download https://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz, wget returned 1.

If I install the Entware wget package the download fails because of a certificate check.
Code:
root@NAS542:~# which wget
/opt/bin/wget
root@NAS542:~# wget https://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz
--2020-02-02 16:01:09--  https://zyxel.diskstation.eu/Users/Mijzelf/Entware-ng/binaries/armv7/Packages.gz
Resolving zyxel.diskstation.eu... 178.63.68.107
Connecting to zyxel.diskstation.eu|178.63.68.107|:443... connected.
ERROR: cannot verify zyxel.diskstation.eu's certificate, issued by 'CN=Let\'s Encrypt Authority X3,O=Let\'s Encrypt,C=US':
  Unable to locally verify the issuer's authority.
To connect to zyxel.diskstation.eu insecurely, use `--no-check-certificate'.

After the installation of ca-certificates it works.
Code:
opkg install ca-certificates

Is there any possibility to improve the Entware-ng package to make the installation easier if https is used to access MR packages?

-shv


Nach oben
 Profil  
 
BeitragVerfasst: So 2. Feb 2020, 17:39 
Offline

Registriert: Mo 6. Jan 2020, 14:50
Beiträge: 27
Hi guys,

sorry for the communication break, I had some other higher prioritized topics the last two weeks.
I'll deliver an update from my side ASAP.

Regards
Kuki


Nach oben
 Profil  
 
BeitragVerfasst: Di 4. Feb 2020, 12:24 
Offline

Registriert: Mo 6. Jan 2020, 14:50
Beiträge: 27
Hi

here my belate update about the /opt:
I think, it seems to be created / used by the myzyxelcloud-agent as I don't have installed other packages yet (except MC).
Unfortunately it's not possible to uninstall this app permanently. After a reboot, the app is again installed.
Is this not the case in your NAS devices?


Dateianhänge:
2020-02-04_12-00-15.png
2020-02-04_12-00-15.png [ 92.77 KiB | 79-mal betrachtet ]
Nach oben
 Profil  
 
BeitragVerfasst: Mi 5. Feb 2020, 09:26 
Offline

Registriert: Mi 14. Nov 2018, 19:50
Beiträge: 78
When the /opt directory is created by ZyXELcloud-agent you can safely delete it, before installing Entware-ng.

About the intrusive auto-install, no that's not the case on my NAS. It used to, but I wrote a patch to stop it. It's included in the Tweaks package under 'disable unneeded daemons'. I think I wrote that before the Entware-ng package, but I'm not sure. My documentation vanished with zyxelforum.de.


Nach oben
 Profil  
 
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 21 Beiträge ]  Gehe zu Seite Vorherige  1, 2, 3  Nächste

Alle Zeiten sind UTC + 1 Stunde


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron
Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de