Bug #2853
webui only shown with --uidebug since r2831 commit 6327e58
100%
Description
Since r2831 commit 6327e58 the webui shows only a white empty page.
Running tvheadend with switch
/usr/bin/tvheadend --uidebug
brings back the normal webui.
This is on a NUC D54250WYK, running ArchLinux w/ Kernel 4.0.2-1-ARCH in 64bit mode.
Files
History
Updated by Jaroslav Kysela over 9 years ago
Could you show contents of file 'http://localhost:9981/static/tvh.js.gz' ? (replace localhost with the ip/hostname of your tvh server and you may use wget or curl to fetch the file)
Updated by Volker Schmidt over 9 years ago
Jaroslav Kysela wrote:
Could you show contents of file 'http://localhost:9981/static/tvh.js.gz' ? (replace localhost with the ip/hostname of your tvh server and you may use wget or curl to fetch the file)
Fetched file via
wget http://nuc1:9981/static/tvh.js.gzit is attached as-is.
Updated by Volker Schmidt over 9 years ago
Oh. FYI: It got not uncompressed, when fetched with wget. Delivered still in gzipped state.
Updated by Jaroslav Kysela over 9 years ago
Something is broken with your build system. An ELF binary is served instead the compressed javascript file. You should find src/webui/static/tvh.js.gz created by Makefile.webui (you may pass V=1 environment variable to see more).
Updated by Volker Schmidt over 9 years ago
- File tvheadend-build.log tvheadend-build.log added
Build happens inside a build-system of ArchLinux (makepkg / PKGBUILD). The commands that "do the trick" are:
sed -i -e "s|gzip|/usr/bin/gzip|g" Makefile.webui ./configure \ --prefix=/usr \ --python=python \ --mandir=/usr/share/man/man1 \ --enable-uriparser \ --enable-dvbcsa \ --release make V=1
The
make V=1was modified per your request to have a verbose build log. See file tvheadend-build.log attached.
Updated by Jaroslav Kysela over 9 years ago
Which gzip do you use ? It seems that it creates ELF binaries (with the requested contents?) instead only compressed files.
Updated by Jaroslav Kysela over 9 years ago
This command is executed to compress the .js:
gzip -n -c src/webui/static/tvh-tv.js.gz.tmp2 > src/webui/static/tvh-tv.js.gz.tmp
My system:
src/webui/static/tvh.js.gz.tmp 1217817 src/webui/static/tvh.js.gz.tmp2 982191 gzip -n -c src/webui/static/tvh.js.gz.tmp2 > src/webui/static/tvh.js.gz.tmp src/webui/static/tvh.js.gz 265015
From your log:
src/webui/static/tvh.js.gz.tmp 1217817 src/webui/static/tvh.js.gz.tmp2 982191 src/webui/static/tvh.js.gz 314060
So, the command fails in your system for a reason. (the tmp file is renamed to final .gz - Makefile way)
Updated by Volker Schmidt over 9 years ago
- File Makefile.webui Makefile.webui added
- File tvheadend-build-2015-05-18-23h18.log tvheadend-build-2015-05-18-23h18.log added
With the Fix of #2852 I was now able to designate the gzip-Binary (still not automatically detected) within the ./configure-call:
./configure \ --prefix=/usr \ --python=python \ --gzip=gzip \ --mandir=/usr/share/man/man1 \ --enable-uriparser \ --enable-dvbcsa \ --release make V=1
With that modifications the build log shows some interesting message around the generation of tvh.js:
PYTHONIOENCODING=utf-8 python vendor/rjsmin-1.0.10/rjsmin.py < src/webui/static/tvh.js.gz.tmp > src/webui/static/tvh.js.gz.tmp2 src/webui/static/tvh.js.gz.tmp 1217817 src/webui/static/tvh.js.gz.tmp2 982191 /bin/sh: 8: command not found Makefile.webui:195: recipe for target 'src/webui/static/tvh.js.gz' failed make[2]: [src/webui/static/tvh.js.gz] Error 127 (ignored) src/webui/static/tvh.js.gz 0
I attach the complete latest buildlog + Makefile.webui (not shure, if it's dynamically generated).
Updated by Volker Schmidt over 9 years ago
I found and temporarily fixed the issue with the build of commit 61eeb38.
Explanation: With the gzip-Command you could set a default commandline option within the Environment variable "GZIP". Verify yourself. Please do a "man gzip" readup section "CAVEATS".
I have set this Enviroment variable GZIP since maybe 15 or 20 years to
GZIP="-8 --name"
Removed it from my environment. Now section in question of the build log shows:
src/webui/static/tvh.js.gz.tmp 1217817 src/webui/static/tvh.js.gz.tmp2 982191 src/webui/static/tvh.js.gz 265015
Suggestion: Could you please change your fix #2852 in a way not to colide with the environment seting of $GZIP?
Guess there were some clashes with that environment variable!
That would be great...
Oh, BTW: tvheadend now has a working webui with that build again!
Updated by Jaroslav Kysela over 9 years ago
Huh. Nice bug. I was not aware of the GZIP environment variable. It explains all. Thanks.
Updated by Jaroslav Kysela over 9 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|a58e0fb5e785b1171805703ce30257e9f89c5147.