今天黑群提示硬盘坏道,然后启用了USB Copy, 过不多久,Web访问提示

ssh 查看当前进程

[email protected]:/etc/init# ps -ef|grep cgi
root     10216     1  0 Dec01 ?        00:03:03 synoscgi
root     11754     1  0 Dec01 ?        00:00:03 /usr/syno/sbin/synocgid -D
system   13200 10216  0 09:45 ?        00:00:00 synoscgi
root     18462 21822  0 09:55 ?        00:00:00 synoscgi                                                                        --mode=apid --conf=/var/packages/SynologyDrive/target/etc/synoapid.json
system   18625 10216  0 09:55 ?        00:00:00 synoscgi
system   19607 10216  0 10:00 ?        00:00:00 synoscgi
system   19644 10216  0 10:01 ?        00:00:00 synoscgi
root     20852 10216  0 10:23 ?        00:00:00 [synoscgi_______] <defunct>
system   21339 10216  0 10:31 ?        00:00:00 synoscgi
root     21591 19935  0 10:37 pts/16   00:00:00 grep --color=auto cgi

So kill the parent: 20852 10216 0 10:23 ? 00:00:00 [synoscgi_______] <defunct>

[email protected]:/etc/init# kill -9 10216
[email protected]:/etc/init# ps -ef|grep cgi
root     11754     1  0 Dec01 ?        00:00:03 /usr/syno/sbin/synocgid -D
root     18462 21822  0 09:55 ?        00:00:00 synoscgi                                                                        --mode=apid --conf=/var/packages/SynologyDrive/target/etc/synoapid.json
root     21738 19935  0 10:40 pts/16   00:00:00 grep --color=auto cgi
root     21822     1  0 Dec01 ?        00:05:36 synoscgi                                                                        --mode=apid --conf=/var/packages/SynologyDrive/target/etc/synoapid.json
root     21826 21822  0 Dec01 ?        00:00:00 synoscgi                                                                        --mode=apid --conf=/var/packages/SynologyDrive/target/etc/synoapid.json
root     22436     1  0 Dec01 ?        00:05:40 synoscgi                                                                        --mode apid --conf /var/packages/DownloadStation/target/etc/synodl-apid.json
root     22439 22436  0 Dec01 ?        00:00:00 synoscgi                                                                        --mode apid --conf /var/packages/DownloadStation/target/etc/synodl-apid.json
root     22440 22436  0 Dec01 ?        00:00:00 synoscgi                                                                        --mode apid --conf /var/packages/DownloadStation/target/etc/synodl-apid.json
root     22739     1  0 Dec01 ?        00:06:22 synoscgi                                                                        --mode apid --conf /var/packages/SynologyMoments/target/etc/synophoto-apid.json
root     22742 22739  0 Dec01 ?        00:00:00 synoscgi                                                                        --mode apid --conf /var/packages/SynologyMoments/target/etc/synophoto-apid.json
root     22743 22739  0 Dec01 ?        00:00:00 synoscgi                                                                        --mode apid --conf /var/packages/SynologyMoments/target/etc/synophoto-apid.json
[email protected]:/etc/init# synoscgi
synoscgi: error while loading shared libraries: /lib/libsynoshare.so.6: invalid ELF header

[email protected]:/etc/init# tail -f /var/log/upstart/synoscgi.log
2022-11-19T02:44:18+0800 500 Internal Server Error: cannot reset credential (/usr/syno/synoman/main.cgi)
2022-11-19T02:44:22+0800 500 Internal Server Error: cannot reset credential (/usr/syno/synoman/indice.cgi)
2022-11-19T02:44:22+0800 500 Internal Server Error: cannot reset credential (/usr/syno/synoman/base.cgi)
2022-11-19T02:44:23+0800 500 Internal Server Error: cannot reset credential (/usr/syno/synoman/home.cgi)
2022-11-19T02:44:24+0800 500 Internal Server Error: cannot reset credential (/usr/syno/synoman/inicio.cgi)
2022-12-06T10:40:01+0800 /usr/syno/sbin/synoscgi________________________________________________________: error while loading shared libraries: /lib/libsynoshare.so.6: invalid ELF header
2022-12-06T10:40:01+0800 /usr/syno/sbin/synoscgi________________________________________________________: error while loading shared libraries: /lib/libsynoshare.so.6: invalid ELF header
2022-12-06T10:40:01+0800 /usr/syno/sbin/synoscgi________________________________________________________: error while loading shared libraries: /lib/libsynoshare.so.6: invalid ELF header
2022-12-06T10:40:01+0800 /usr/syno/sbin/synoscgi________________________________________________________: error while loading shared libraries: /lib/libsynoshare.so.6: invalid ELF header
2022-12-06T10:40:01+0800 /usr/syno/sbin/synoscgi________________________________________________________: error while loading shared libraries: /lib/libsynoshare.so.6: invalid ELF header

synopkg start  synoscgi
synopkg: error while loading shared libraries: /lib/libsynopkg.so.1: invalid ELF header

Download and replace the invalid file

  1. Download the DSM system file from synology website
    • https://www.synology.cn/zh-cn/support/download/DS3617xs?version=6.1#system
    • And decompress the pat file, and the so file in
      • DSM_DS3617xs_15284/hda1/lib/libsynoshare.so.6
      • DSM_DS3617xs_15284/hda1/lib/libsynopkg.so
      • DSM_DS3617xs_15284/hda1/lib/libstoragemanager.so
  2. Backup the original file
    • cp /lib/* /volumeUSB2/usbshare/syno/diskstation_backup_lib -a
  3. Replace with the new file
  4. start synoscgi
    • synopkg start synoscgi
    • synoservice –enable DSM
    • synoservice –status DSM Service
    • synoservice –enable synostoraged

查看log

tail -f /var/log/upstart/synoscgi.log

tail -f /var/log/upstart/rc.log

tail -f /var/log/nginx/error.log

1905 2022/12/06 09:55:51 [error] 26351#26351: *3195 upstream prematurely closed connection while reading response header from upstream, client: 100.117.199.33, server: , request: "POST /webapi/entry.cgi HTTP/2.0", upstream: "scgi://unix:/run/sy noscgi.sock:", host: "home.king-owl.ts.net:8443", referrer: "https://home.king-owl.ts.net:8443/" 1906 2022/12/06 09:55:51 [error] 26351#26351: *3195 upstream prematurely closed connection while reading response header from upstream, client: 100.117.199.33, server: , request: "POST /webapi/entry.cgi HTTP/2.0", upstream: "scgi://unix:/run/sy noscgi.sock:", host: "home.king-owl.ts.net:8443", referrer: "https://home.king-owl.ts.net:8443/"

rc.log:2022-12-08T17:23:37+0800 /usr/syno/synoha/sbin/synoha: error while loading shared libraries: /lib/libsynostoragemgmt.so: invalid ELF header

Reference

  • https://xpenology.com/forum/topic/12406-how-to-fix-sorry-that-page-doesnt-exist/
  • https://www.cnblogs.com/LandWind/p/13675986.html
  • http://c4c.club/index.php/2020/08/03/%E7%BE%A4%E6%99%96%E6%89%BE%E4%B8%8D%E5%88%B0%E9%A1%B5%E9%9D%A2%E5%8F%8A%E5%82%A8%E5%AD%98%E7%A9%BA%E9%97%B4%E7%AE%A1%E7%90%86%E5%A4%B1%E6%95%88%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/

Disk Warning

Fix the Syno System Error — 抱歉,您所指定的页面不存在。
Tagged on:         

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.