500 Internal Server Error

I don't know. That's what the commands were there for, to try and narrow it down. I suspect one of them gets deleted or corrupted as reinstallation fixes whatever the problem is. Unless you have any other ideas?
 
I have:
Code:
# echo $LD_LIBRARY_PATH
/mod/lib:/lib:/usr/lib
# ls -l /lib/libutil*
-rwx------ 1 root root 5564 Jan  9  2017 /lib/libutil-0.9.29.so
lrwxrwxrwx 1 root root   12 Apr 26  2017 /lib/libutil.so -> libutil.so.0
lrwxrwxrwx 1 root root   17 Apr 26  2017 /lib/libutil.so.0 -> libutil-0.9.29.so
# ls -l /mod/lib/libutil*
-rwxr-xr-x 1 root root 5564 Apr 14  2011 /mod/lib/libutil-0.9.29.so
lrwxrwxrwx 1 root root   12 Jan 24  2018 /mod/lib/libutil.so -> libutil.so.0
lrwxrwxrwx 1 root root   17 Jan 24  2018 /mod/lib/libutil.so.0 -> libutil-0.9.29.so
#
The two actual libs have the same MD5s, but maybe some people have an older CFW with a different /lib/libutil-0.9.29.so, maybe missing some desired entry-point, or why is the version in /mod/lib being installed at all? Then if /mod/lib somehow became inaccessible, ...
 
Curious. I never even thought to check in /lib. No idea why there's the duplication, but guess it must be historical. I tried selectively removing the files in /mod/lib, and jimsh still worked. 🤷
 
Yes, but what about older CFW?

Also:
Code:
# diff -s /lib /mod/lib | grep -E ' (identical|differ)'
Files /lib/libgcc_s.so and /mod/lib/libgcc_s.so differ
Files /lib/libgcc_s.so.1 and /mod/lib/libgcc_s.so.1 differ
Files /lib/libstdc++.so and /mod/lib/libstdc++.so differ
Files /lib/libstdc++.so.6 and /mod/lib/libstdc++.so.6 differ
Files /lib/libutil-0.9.29.so and /mod/lib/libutil-0.9.29.so are identical
Files /lib/libutil.so and /mod/lib/libutil.so are identical
Files /lib/libutil.so.0 and /mod/lib/libutil.so.0 are identical
# ls -l /lib/libgcc_s.so.1 /mod/lib/libgcc_s.so.1
-rw------- 1 root root 305621 May  8  2009 /lib/libgcc_s.so.1
-rw-r--r-- 1 root root 220952 May  1  2011 /mod/lib/libgcc_s.so.1
# ls -l  /lib/libstdc++.so.6  /mod/lib/libstdc++.so.6
lrwxrwxrwx 1 root root 18 Apr 26  2017 /lib/libstdc++.so.6 -> libstdc++.so.6.0.9
lrwxrwxrwx 1 root root 19 Jun 17  2019 /mod/lib/libstdc++.so.6 -> libstdc++.so.6.0.14
# ls -l  /lib/libstdc++.so.6.0.9  /mod/lib/libstdc++.so.6.0.14
-rw------- 1 root root 880464 Dec  9  2014 /lib/libstdc++.so.6.0.9
-rwxr-xr-x 1 root root 577184 May  1  2011 /mod/lib/libstdc++.so.6.0.14
#
 
After selecting the 'upgrade all' option from the Package Manger tpday, I now have the same '500 Internal Server Error' when trying to access the webif.
Custom FW Version is 3.00

So far, I've tried the following (apologies for the formatting):
1,
humax# cat /tmp/webif-error.log
/mod/bin/jimsh: can't load library 'libutil.so.0'
/mod/bin/jimsh: can't load library 'libutil.so.0'
/mod/bin/jimsh: can't load library 'libutil.so.0'
/mod/bin/jimsh: can't load library 'libutil.so.0'
/mod/bin/jimsh: can't load library 'libutil.so.0'
/mod/bin/jimsh: can't load library 'libutil.so.0'
humax#

2,
Please select option: fixweb
Removing package webif from root...
Installing webif (1.5.0-9) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif_1.5.0-9_mipsel.opk.
Configuring webif.
/mod/bin/jimsh: can't load library 'libutil.so.0'
/mod/bin/jimsh: can't load library 'libutil.so.0'

Press return to continue:

3,
humax# opkg install --force-reinstall libutil
No packages removed.
Installing libutil (0.9.29) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/libutil_0.9.29_mipsel.opk.
Configuring libutil.
humax#

But it's now working again after:

humax# opkg install --force-reinstall webif
Removing package webif from root...
Installing webif (1.5.0-9) to root...
Downloading http://hpkg.tv/hdrfoxt2/base/webif_1.5.0-9_mipsel.opk.
Configuring webif.
SMART: (PASSED)
startstop: 17071 realloc: 0 hours: 31997 spinretry: 0 pending: 0 offline: 0
Queue database is up-to-date.
humax#
 
Last edited:
After selecting the 'upgrade all' option from the Package Manger tpday, I now have the same '500 Internal Server Error' when trying to access the webif.
It's a shame you didn't follow the requested instuctions in post #16 first.
Custom FW Version is 3.00
You should update to 3.13
 
Back
Top