[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#748271: [latex-cjk-common] latex command did not work until I ran it once under superuser!?



Thank you for checking the output in my previos posts.

As you see, the installation data claims that
everything is A-OK, but it was not.

Re file space:
the problem was first noticed even before
the full  tex-lang-cjk was loaded, and I had about 300-500MB+ still left
in /var and /usr each.

>There is normally a certain percentage of disk space reserved
>for root. That means, if there is *reallY* only a bit of
>space left, then users cannot create not even temp files,
>nothing, while root can still do it.

It would be great if ".fmt not found" is preceded by "Failure to
create .fmt file due to file space issue (errno = NOSPC)" or something
if this is indeed the cause. But I am not convinced entirely due to
some reasons below as of now.

(BTW, The following probably should be filed as separate entry with
severity: wishlist Re the large size of texlive-lang-cjk: It would be
nice if we can selectively install C-part, K-part and J-part of CJK of
texlive-lang-cjk. 
At least two years ago when I worked on XML->TeX->PDF conversion work,
I could ignore fonts from C-part.  Also, two years ago, the large doc
file package (around 250MB and expands to close to 600MB) that is
loaded as part of dependency today was optional. So I could remove it
without apt-get/aptitude complaining. Not loading these extras for
purely Japanese and English only usage makes a difference.  (more than
0.5GB saving, significant on a small note-PC or smallish 32-bit
installation created many years ago.).  But this should probably be
filed as wishlist in Debian bug tracking database.  Also, I understand
that there may be a support issue when doc file package is not loaded
so there is a trade-off.)

Anyway, the space issue is not improving. Due to the needs for some newer packages, I ran
aptitude upgrade yesterday and the remaining space is tight as ever :-(


Re looong PATH under the user account:

I should do the house cleaning.  Despite some efforts NOT to add the
same path again, due to available shell versions, the simple check to
avoid duplication in the PATH was not done everywhere to reduce
run-time overhead.  But thank you for pointing that out. There *ARE*
some paths that have crept in twice and I have not noticed that
before.

Anyway here is the requested log.

foo.tex includes:
Hello\bye


tex -kpathsea-debug=-1 -recorder foo.tex 2>foo-debug.log
This is TeX, Version 3.1415926 (TeX Live 2013/Debian)
(./foo.tex [1] )
Output written on foo.dvi (1 page, 212 bytes).
Transcript written on foo.log.

========================================
kdebug:Search path for cnf files (from compile-time paths.h)
kdebug:  = /etc/texmf/web2c:/usr/local/share/texmf/web2c:/usr/share/texmf/web2c:/usr/share/texlive/texmf-dist/web2c
kdebug:  before expansion = /etc/texmf/web2c:/usr/local/share/texmf/web2c:/usr/share/texmf/web2c:/usr/share/texlive/texmf-dist/web2c
kdebug:  application override path = (none)
kdebug:  application config file path = (none)
kdebug:  texmf.cnf path = (none)
kdebug:  compile-time path = /etc/texmf/web2c:/usr/local/share/texmf/web2c:/usr/share/texmf/web2c:/usr/share/texlive/texmf-dist/web2c
kdebug:  environment variables = TEXMFCNF
kdebug:  default suffixes = .cnf
kdebug:  other suffixes = (none)
kdebug:  search only with suffix = 0
kdebug:  runtime generation program = (none)
kdebug:  runtime generation command = (none)
kdebug:  program enabled = 0
kdebug:  program enable level = 0
kdebug:  open files in binary mode = 0
kdebug:  numeric format value = 8
kdebug:start search(file=texmf.cnf, must_exist=1, find_all=1, path=/etc/texmf/web2c:/usr/local/share/texmf/web2c:/usr/share/texmf/web2c:/usr/share/texlive/texmf-dist/web2c).
kdebug:path element /etc/texmf/web2c => /etc/texmf/web2c/
kdebug:path element /usr/local/share/texmf/web2c =>
kdebug:path element /usr/share/texmf/web2c => /usr/share/texmf/web2c/
kdebug:path element /usr/share/texlive/texmf-dist/web2c => /usr/share/texlive/texmf-dist/web2c/
kdebug:fopen(/etc/texmf/web2c/texmf.cnf, r) => 0x8f0290
kdebug:fopen(tex22449.fls, wb) => 0x8f04d0
kdebug:fclose(0x8f0290) => 0
kdebug:fopen(/usr/share/texmf/web2c/texmf.cnf, r) => 0x8f0290
kdebug:fclose(0x8f0290) => 0
kdebug:fopen(/usr/share/texlive/texmf-dist/web2c/texmf.cnf, r) => 0x8f0290
kdebug:fclose(0x8f0290) => 0
kdebug:hash_lookup(TEXMFDBS.tex) => (nil)
kdebug:hash_lookup(TEXMFDBS) => {!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDEBIAN,!!$TEXMFDIST} {!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDEBIAN,!!$TEXMFDIST}
kdebug:hash_lookup(TEXMFSYSVAR.tex) => (nil)
kdebug:hash_lookup(TEXMFSYSVAR) => /var/lib/texmf /var/lib/texmf
kdebug:hash_lookup(TEXMFLOCAL.tex) => (nil)
kdebug:hash_lookup(TEXMFLOCAL) => /usr/local/share/texmf /usr/local/share/texmf
kdebug:hash_lookup(TEXMFDEBIAN.tex) => (nil)
kdebug:hash_lookup(TEXMFDEBIAN) => /usr/share/texmf /usr/share/texmf
kdebug:hash_lookup(TEXMFDIST.tex) => (nil)
kdebug:hash_lookup(TEXMFDIST) => $TEXMFROOT/texmf-dist $TEXMFROOT/texmf-dist
kdebug:hash_lookup(TEXMFROOT.tex) => (nil)
kdebug:hash_lookup(TEXMFROOT) => /usr/share/texlive /usr/share/texlive
kdebug:Search path for ls-R files (from texmf.cnf)
kdebug:  = /var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf:/usr/share/texlive/texmf-dist
kdebug:  before expansion = {!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDEBIAN,!!$TEXMFDIST}
kdebug:  application override path = (none)
kdebug:  application config file path = (none)
kdebug:  texmf.cnf path = {!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDEBIAN,!!$TEXMFDIST}
kdebug:  compile-time path = /nonesuch
kdebug:  environment variables = TEXMFDBS
kdebug:  default suffixes = ls-R ls-r
kdebug:  other suffixes = (none)
kdebug:  search only with suffix = 0
kdebug:  runtime generation program = (none)
kdebug:  runtime generation command = (none)
kdebug:  program enabled = 0
kdebug:  program enable level = 0
kdebug:  open files in binary mode = 0
kdebug:  numeric format value = 9
kdebug:start search(files=[ls-R ls-r], must_exist=1, find_all=1, path=/var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf:/usr/share/texlive/texmf-dist).
kdebug:path element /var/lib/texmf => /var/lib/texmf/
kdebug:path element /usr/local/share/texmf => /usr/local/share/texmf/
kdebug:path element /usr/share/texmf => /usr/share/texmf/
kdebug:path element /usr/share/texlive/texmf-dist => /usr/share/texlive/texmf-dist/
kdebug:search([ls-R ls-r]) =>kdebug:hash_lookup(TEXMFLOG.tex) => (nil)
kdebug:hash_lookup(TEXMFLOG) => (nil)
kdebug:variable: TEXMFLOG = (nil)
 /var/lib/texmf/ls-R /usr/local/share/texmf/ls-R /usr/share/texmf/ls-R /usr/share/texlive/texmf-dist/ls-R
kdebug:fopen(/var/lib/texmf/ls-R, r) => 0x8fcb40
kdebug:fclose(0x8fcb40) => 0
kdebug:/var/lib/texmf/ls-R: 96 entries in 26 directories (0 hidden).
kdebug:ls-R hash table:32003 buckets, 84 nonempty (0%); 96 entries, average chain 1.1.
kdebug:fopen(/usr/local/share/texmf/ls-R, r) => 0x8fe830
kdebug:fclose(0x8fe830) => 0
kdebug:/usr/local/share/texmf/ls-R: 2 entries in 1 directories (0 hidden).
kdebug:ls-R hash table:32003 buckets, 84 nonempty (0%); 98 entries, average chain 1.2.
kdebug:fopen(/usr/share/texmf/ls-R, r) => 0x8fe830
kdebug:fclose(0x8fe830) => 0
kdebug:/usr/share/texmf/ls-R: 6922 entries in 180 directories (0 hidden).
kdebug:ls-R hash table:32003 buckets, 4460 nonempty (13%); 7020 entries, average chain 1.6.
kdebug:fopen(/usr/share/texlive/texmf-dist/ls-R, r) => 0x96d830
kdebug:fclose(0x96d830) => 0
kdebug:/usr/share/texlive/texmf-dist/ls-R: 44922 entries in 4516 directories (0 hidden).
kdebug:ls-R hash table:32003 buckets, 20749 nonempty (64%); 51942 entries, average chain 2.5.
kdebug:start search(file=aliases, must_exist=1, find_all=1, path=/var/lib/texmf:/usr/local/share/texmf:/usr/share/texmf:/usr/share/texlive/texmf-dist).
kdebug:search(aliases) =>
kdebug:hash_lookup(MKTEXTEX.tex) => (nil)
kdebug:hash_lookup(MKTEXTEX) => (nil)
kdebug:variable: MKTEXTEX = (nil)
kdebug:hash_lookup(TEXINPUTS.tex) => .:$TEXMF/tex/{plain,generic,}// .:$TEXMF/tex/{plain,generic,}//
kdebug:hash_lookup(TEXMF.tex) => (nil)
kdebug:hash_lookup(TEXMF) => {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDEBIAN,!!$TEXMFDIST} {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDEBIAN,!!$TEXMFDIST}
kdebug:hash_lookup(TEXMFCONFIG.tex) => (nil)
kdebug:hash_lookup(TEXMFCONFIG) => ~/.texmf-config ~/.texmf-config
kdebug:hash_lookup(TEXMFVAR.tex) => (nil)
kdebug:hash_lookup(TEXMFVAR) => ~/.texmf-var ~/.texmf-var
kdebug:hash_lookup(TEXMFHOME.tex) => (nil)
kdebug:hash_lookup(TEXMFHOME) => ~/texmf ~/texmf
kdebug:hash_lookup(TEXMFSYSCONFIG.tex) => (nil)
kdebug:hash_lookup(TEXMFSYSCONFIG) => /etc/texmf /etc/texmf
kdebug:hash_lookup(TEXMFSYSVAR.tex) => (nil)
kdebug:hash_lookup(TEXMFSYSVAR) => /var/lib/texmf /var/lib/texmf
kdebug:hash_lookup(TEXMFLOCAL.tex) => (nil)
kdebug:hash_lookup(TEXMFLOCAL) => /usr/local/share/texmf /usr/local/share/texmf
kdebug:hash_lookup(TEXMFDEBIAN.tex) => (nil)
kdebug:hash_lookup(TEXMFDEBIAN) => /usr/share/texmf /usr/share/texmf
kdebug:hash_lookup(TEXMFDIST.tex) => (nil)
kdebug:hash_lookup(TEXMFDIST) => $TEXMFROOT/texmf-dist $TEXMFROOT/texmf-dist
kdebug:hash_lookup(TEXMFROOT.tex) => (nil)
kdebug:hash_lookup(TEXMFROOT) => /usr/share/texlive /usr/share/texlive
kdebug:Search path for tex files (from texmf.cnf)
kdebug:  = .:/home/username/.texmf-config/tex/plain//:/home/username/.texmf-var/tex/plain//:/home/username/texmf/tex/plain//:/etc/texmf/tex/plain//:!!/var/lib/texmf/tex/plain//:!!/usr/local/share/texmf/tex/plain//:!!/usr/share/texmf/tex/plain//:!!/usr/share/texlive/texmf-dist/tex/plain//:/home/username/.texmf-config/tex/generic//:/home/username/.texmf-var/tex/generic//:/home/username/texmf/tex/generic//:/etc/texmf/tex/generic//:!!/var/lib/texmf/tex/generic//:!!/usr/local/share/texmf/tex/generic//:!!/usr/share/texmf/tex/generic//:!!/usr/share/texlive/texmf-dist/tex/generic//:/home/username/.texmf-config/tex///:/home/username/.texmf-var/tex///:/home/username/texmf/tex///:/etc/texmf/tex///:!!/var/lib/texmf/tex///:!!/usr/local/share/texmf/tex///:!!/usr/share/texmf/tex///:!!/usr/share/texlive/texmf-dist/tex///
kdebug:  before expansion = .:$TEXMF/tex/{plain,generic,}//
kdebug:  application override path = (none)
kdebug:  application config file path = (none)
kdebug:  texmf.cnf path = .:$TEXMF/tex/{plain,generic,}//
kdebug:  compile-time path = /nonesuch
kdebug:  environment variables = TEXINPUTS
kdebug:  default suffixes = .tex
kdebug:  other suffixes = .sty .cls .fd .aux .bbl .def .clo .ldf
kdebug:  search only with suffix = 0
kdebug:  runtime generation program = mktextex
kdebug:  runtime generation command = mktextex
kdebug:  program enabled = 0
kdebug:  program enable level = 0
kdebug:  open files in binary mode = 0
kdebug:  numeric format value = 26
kdebug:kpse_find_file: searching for foo.tex of type tex (from texmf.cnf)
kdebug:hash_lookup(try_std_extension_first.tex) => (nil)
kdebug:hash_lookup(try_std_extension_first) => t t
kdebug:variable: try_std_extension_first = t
kdebug:start search(files=[foo.tex], must_exist=0, find_all=0, path=.:/home/username/.texmf-config/tex/plain//:/home/username/.texmf-var/tex/plain//:/home/username/texmf/tex/plain//:/etc/texmf/tex/plain//:!!/var/lib/texmf/tex/plain//:!!/usr/local/share/texmf/tex/plain//:!!/usr/share/texmf/tex/plain//:!!/usr/share/texlive/texmf-dist/tex/plain//:/home/username/.texmf-config/tex/generic//:/home/username/.texmf-var/tex/generic//:/home/username/texmf/tex/generic//:/etc/texmf/tex/generic//:!!/var/lib/texmf/tex/generic//:!!/usr/local/share/texmf/tex/generic//:!!/usr/share/texmf/tex/generic//:!!/usr/share/texlive/texmf-dist/tex/generic//:/home/username/.texmf-config/tex///:/home/username/.texmf-var/tex///:/home/username/texmf/tex///:/etc/texmf/tex///:!!/var/lib/texmf/tex///:!!/usr/local/share/texmf/tex///:!!/usr/share/texmf/tex///:!!/usr/share/texlive/texmf-dist/tex///).
kdebug:path element . => ./
kdebug:search([foo.tex]) => ./foo.tex
kdebug:hash_lookup(file_line_error_style.tex) => (nil)
kdebug:hash_lookup(file_line_error_style) => f f
kdebug:variable: file_line_error_style = f
kdebug:hash_lookup(parse_first_line.tex) => f f
kdebug:variable: parse_first_line = f
kdebug:hash_lookup(shell_escape.tex) => f f
kdebug:variable: shell_escape = f
kdebug:hash_lookup(output_comment.tex) => (nil)
kdebug:hash_lookup(output_comment) => (nil)
kdebug:variable: output_comment = (nil)
kdebug:hash_lookup(mem_bot.tex) => (nil)
kdebug:hash_lookup(mem_bot) => (nil)
kdebug:variable: mem_bot = (nil)
kdebug:hash_lookup(main_memory.tex) => (nil)
kdebug:hash_lookup(main_memory) => 5000000 5000000
kdebug:variable: main_memory = 5000000
kdebug:hash_lookup(extra_mem_top.tex) => (nil)
kdebug:hash_lookup(extra_mem_top) => 0 0
kdebug:variable: extra_mem_top = 0
kdebug:hash_lookup(extra_mem_bot.tex) => (nil)
kdebug:hash_lookup(extra_mem_bot) => 0 0
kdebug:variable: extra_mem_bot = 0
kdebug:hash_lookup(pool_size.tex) => (nil)
kdebug:hash_lookup(pool_size) => 6250000 6250000
kdebug:variable: pool_size = 6250000
kdebug:hash_lookup(string_vacancies.tex) => (nil)
kdebug:hash_lookup(string_vacancies) => 90000 90000
kdebug:variable: string_vacancies = 90000
kdebug:hash_lookup(pool_free.tex) => (nil)
kdebug:hash_lookup(pool_free) => 47500 47500
kdebug:variable: pool_free = 47500
kdebug:hash_lookup(max_strings.tex) => (nil)
kdebug:hash_lookup(max_strings) => 500000 500000
kdebug:variable: max_strings = 500000
kdebug:hash_lookup(strings_free.tex) => (nil)
kdebug:hash_lookup(strings_free) => (nil)
kdebug:variable: strings_free = (nil)
kdebug:hash_lookup(font_mem_size.tex) => (nil)
kdebug:hash_lookup(font_mem_size) => 8000000 8000000
kdebug:variable: font_mem_size = 8000000
kdebug:hash_lookup(font_max.tex) => (nil)
kdebug:hash_lookup(font_max) => 9000 9000
kdebug:variable: font_max = 9000
kdebug:hash_lookup(trie_size.tex) => (nil)
kdebug:hash_lookup(trie_size) => 1000000 1000000
kdebug:variable: trie_size = 1000000
kdebug:hash_lookup(hyph_size.tex) => (nil)
kdebug:hash_lookup(hyph_size) => 8191 8191
kdebug:variable: hyph_size = 8191
kdebug:hash_lookup(buf_size.tex) => (nil)
kdebug:hash_lookup(buf_size) => 200000 200000
kdebug:variable: buf_size = 200000
kdebug:hash_lookup(nest_size.tex) => (nil)
kdebug:hash_lookup(nest_size) => 500 500
kdebug:variable: nest_size = 500
kdebug:hash_lookup(max_in_open.tex) => (nil)
kdebug:hash_lookup(max_in_open) => 15 15
kdebug:variable: max_in_open = 15
kdebug:hash_lookup(param_size.tex) => (nil)
kdebug:hash_lookup(param_size) => 10000 10000
kdebug:variable: param_size = 10000
kdebug:hash_lookup(save_size.tex) => (nil)
kdebug:hash_lookup(save_size) => 100000 100000
kdebug:variable: save_size = 100000
kdebug:hash_lookup(stack_size.tex) => (nil)
kdebug:hash_lookup(stack_size) => 5000 5000
kdebug:variable: stack_size = 5000
kdebug:hash_lookup(dvi_buf_size.tex) => (nil)
kdebug:hash_lookup(dvi_buf_size) => 16384 16384
kdebug:variable: dvi_buf_size = 16384
kdebug:hash_lookup(error_line.tex) => (nil)
kdebug:hash_lookup(error_line) => 79 79
kdebug:variable: error_line = 79
kdebug:hash_lookup(half_error_line.tex) => (nil)
kdebug:hash_lookup(half_error_line) => 50 50
kdebug:variable: half_error_line = 50
kdebug:hash_lookup(max_print_line.tex) => (nil)
kdebug:hash_lookup(max_print_line) => 79 79
kdebug:variable: max_print_line = 79
kdebug:hash_lookup(hash_extra.tex) => (nil)
kdebug:hash_lookup(hash_extra) => 600000 600000
kdebug:variable: hash_extra = 600000
kdebug:hash_lookup(expand_depth.tex) => (nil)
kdebug:hash_lookup(expand_depth) => (nil)
kdebug:variable: expand_depth = (nil)
kdebug:hash_lookup(MKTEXFMT.tex) => (nil)
kdebug:hash_lookup(MKTEXFMT) => (nil)
kdebug:variable: MKTEXFMT = (nil)
kdebug:hash_lookup(TEXFORMATS.tex) => (nil)
kdebug:hash_lookup(TEXFORMATS) => .:$TEXMF/web2c{/$engine,} .:$TEXMF/web2c{/$engine,}
kdebug:hash_lookup(TEXMF.tex) => (nil)
kdebug:hash_lookup(TEXMF) => {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDEBIAN,!!$TEXMFDIST} {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDEBIAN,!!$TEXMFDIST}
kdebug:hash_lookup(TEXMFCONFIG.tex) => (nil)
kdebug:hash_lookup(TEXMFCONFIG) => ~/.texmf-config ~/.texmf-config
kdebug:hash_lookup(TEXMFVAR.tex) => (nil)
kdebug:hash_lookup(TEXMFVAR) => ~/.texmf-var ~/.texmf-var
kdebug:hash_lookup(TEXMFHOME.tex) => (nil)
kdebug:hash_lookup(TEXMFHOME) => ~/texmf ~/texmf
kdebug:hash_lookup(TEXMFSYSCONFIG.tex) => (nil)
kdebug:hash_lookup(TEXMFSYSCONFIG) => /etc/texmf /etc/texmf
kdebug:hash_lookup(TEXMFSYSVAR.tex) => (nil)
kdebug:hash_lookup(TEXMFSYSVAR) => /var/lib/texmf /var/lib/texmf
kdebug:hash_lookup(TEXMFLOCAL.tex) => (nil)
kdebug:hash_lookup(TEXMFLOCAL) => /usr/local/share/texmf /usr/local/share/texmf
kdebug:hash_lookup(TEXMFDEBIAN.tex) => (nil)
kdebug:hash_lookup(TEXMFDEBIAN) => /usr/share/texmf /usr/share/texmf
kdebug:hash_lookup(TEXMFDIST.tex) => (nil)
kdebug:hash_lookup(TEXMFDIST) => $TEXMFROOT/texmf-dist $TEXMFROOT/texmf-dist
kdebug:hash_lookup(TEXMFROOT.tex) => (nil)
kdebug:hash_lookup(TEXMFROOT) => /usr/share/texlive /usr/share/texlive
kdebug:Search path for fmt files (from texmf.cnf)
kdebug:  = .:/home/username/.texmf-config/web2c/tex:/home/username/.texmf-var/web2c/tex:/home/username/texmf/web2c/tex:/etc/texmf/web2c/tex:!!/var/lib/texmf/web2c/tex:!!/usr/local/share/texmf/web2c/tex:!!/usr/share/texmf/web2c/tex:!!/usr/share/texlive/texmf-dist/web2c/tex:/home/username/.texmf-config/web2c:/home/username/.texmf-var/web2c:/home/username/texmf/web2c:/etc/texmf/web2c:!!/var/lib/texmf/web2c:!!/usr/local/share/texmf/web2c:!!/usr/share/texmf/web2c:!!/usr/share/texlive/texmf-dist/web2c
kdebug:  before expansion = .:$TEXMF/web2c{/$engine,}
kdebug:  application override path = (none)
kdebug:  application config file path = (none)
kdebug:  texmf.cnf path = .:$TEXMF/web2c{/$engine,}
kdebug:  compile-time path = /nonesuch
kdebug:  environment variables = TEXFORMATS TEXMFINI
kdebug:  default suffixes = .fmt
kdebug:  other suffixes = (none)
kdebug:  search only with suffix = 0
kdebug:  runtime generation program = mktexfmt
kdebug:  runtime generation command = mktexfmt
kdebug:  program enabled = 1
kdebug:  program enable level = 1
kdebug:  open files in binary mode = 1
kdebug:  numeric format value = 10
kdebug:kpse_find_file: searching for tex.fmt of type fmt (from texmf.cnf)
kdebug:hash_lookup(try_std_extension_first.tex) => (nil)
kdebug:hash_lookup(try_std_extension_first) => t t
kdebug:variable: try_std_extension_first = t
kdebug:start search(files=[tex.fmt], must_exist=0, find_all=0, path=.:/home/username/.texmf-config/web2c/tex:/home/username/.texmf-var/web2c/tex:/home/username/texmf/web2c/tex:/etc/texmf/web2c/tex:!!/var/lib/texmf/web2c/tex:!!/usr/local/share/texmf/web2c/tex:!!/usr/share/texmf/web2c/tex:!!/usr/share/texlive/texmf-dist/web2c/tex:/home/username/.texmf-config/web2c:/home/username/.texmf-var/web2c:/home/username/texmf/web2c:/etc/texmf/web2c:!!/var/lib/texmf/web2c:!!/usr/local/share/texmf/web2c:!!/usr/share/texmf/web2c:!!/usr/share/texlive/texmf-dist/web2c).
kdebug:path element /home/username/.texmf-config/web2c/tex =>
kdebug:path element /home/username/.texmf-var/web2c/tex =>
kdebug:path element /home/username/texmf/web2c/tex =>
kdebug:path element /etc/texmf/web2c/tex =>
kdebug:hash_lookup(tex.fmt) => /var/lib/texmf/web2c/tex/
kdebug:db:match(/var/lib/texmf/web2c/tex/tex.fmt,/var/lib/texmf/web2c/tex) = 1
kdebug:search([tex.fmt]) => /var/lib/texmf/web2c/tex/tex.fmt
kdebug:fopen(/var/lib/texmf/web2c/tex/tex.fmt, rb) => 0xc7db70
kdebug:fclose(0xc7db70) => 0
kdebug:hash_lookup(openin_any.tex) => (nil)
kdebug:hash_lookup(openin_any) => a a
kdebug:variable: openin_any = a
kdebug:kpse_find_file: searching for foo.tex of type tex (from texmf.cnf)
kdebug:hash_lookup(try_std_extension_first.tex) => (nil)
kdebug:hash_lookup(try_std_extension_first) => t t
kdebug:variable: try_std_extension_first = t
kdebug:start search(files=[foo.tex], must_exist=0, find_all=0, path=.:/home/username/.texmf-config/tex/plain//:/home/username/.texmf-var/tex/plain//:/home/username/texmf/tex/plain//:/etc/texmf/tex/plain//:!!/var/lib/texmf/tex/plain//:!!/usr/local/share/texmf/tex/plain//:!!/usr/share/texmf/tex/plain//:!!/usr/share/texlive/texmf-dist/tex/plain//:/home/username/.texmf-config/tex/generic//:/home/username/.texmf-var/tex/generic//:/home/username/texmf/tex/generic//:/etc/texmf/tex/generic//:!!/var/lib/texmf/tex/generic//:!!/usr/local/share/texmf/tex/generic//:!!/usr/share/texmf/tex/generic//:!!/usr/share/texlive/texmf-dist/tex/generic//:/home/username/.texmf-config/tex///:/home/username/.texmf-var/tex///:/home/username/texmf/tex///:/etc/texmf/tex///:!!/var/lib/texmf/tex///:!!/usr/local/share/texmf/tex///:!!/usr/share/texmf/tex///:!!/usr/share/texlive/texmf-dist/tex///).
kdebug:search([foo.tex]) => ./foo.tex
kdebug:fopen(foo.tex, rb) => 0xc7db70
kdebug:fopen(foo.log, wb) => 0xd86a90
kdebug:fopen(foo.dvi, wb) => 0xd86cd0
kdebug:fclose(0xc7db70) => 0
kdebug:fclose(0xd86cd0) => 0
kdebug:fclose(0xd86a90) => 0
==== end quote ----


BTW, the strange problem of ".fmt not found" seems to have been cured by
running latex once under superuser. (So I am skeptical
that the log output above reveals anything unusual now :-(
To my unexperienced eyes, it looks just fine.

Maybe if I ran XML->TeX->PDF conversion (resulting in 500+ page) pdf document, the
lack of temp file may become a problem. Oh, I forgot to list "df /tmp".
Although /usr and /var is tight, on this PC, "/tmp" is part
of "/" (not TMPFS) and has now 287MB of free space.

df /tmp
Filesystem                                             1K-blocks   Used Available Use% Mounted on
/dev/disk/by-uuid/e5f60120-3afd-457a-be02-9bd6d8cc4f4d    751632 409780    287236  59% /

Are ".fmt" files created into system installation directory?  But, if
so, this is done when a user issues a TeX-related command by running
setuid binary, correct?  I have not come across many packages that
modifies installation directories when a user issues a command under
an ordinary user account (using setuid binary, I suppose).

Anyway, if the installation directories are touched (like .fmt file
generation, which is surely shared among users, no?. ) by user execution to create only the minimal necessary
shared file, my point of running a simple test under a (fake) ordinary user account **AFTER ALL THE INSTALLATION STEPS ARE OVER* still
stands.  It is a good idea to check a user account is not royally screwed like
mine (how and why is a mystery to me, and why it has been solved is another mystery to me.)

Since installer runs under root, testing binary operation under an
ordinary user is a tricky proposition.  I think one can write a
wrapper to give up superuser priviledge (SysV had such a system
call. Cant recall the system call name right  now.)

Anyway, if a file space issue happened during installation, it was
not obvious to me.

*BUT*, usually, when file system space issue arises during package
installation, apt-get or aptitude clearly fails and so I can take
corrective action. This has happened all the time on a small
installation. But this time it did not fail in this manner at all. As
far as I could tell, the packages were all installed successfully from
the installer's point of view.  apt-get, aptitude did not complain at
all.

If a run-time generated file could not be created due to space issues,
then it ought to be reported clearly. Maybe an fmt-generation program
or something did not report the error during (f)write or (f)close
correctly ? (But I doubt this again because TeX has been around all
these years and surely someone must have encountered such issues and
fixed them already. Or maybe I am wrong on this count. The installer
may have failed to pick up the return code of some commands such as fmtutil-sys.)

Also, I doubt the space issue because of another reason.  As I wrote
this message, I re-ran my XML->TeX->PDF conversion script using the
latest texlive-lang-cjk (and many other packages, dblatex xetex, etc.)
and it successfully ran to create a PDF under an ordinary user
account.  So I doubt if the space issue is the cause of strange
behavior, but who knows :-(

I have been trying to see what went wrong myself even before the bug
post, but could not come up with a possible candidate and explanation of
self-healing (after running latex under superuser account) myself.

I still think that running latex under superuser may have
changed/fixed permannently something (broken symlink/permission
bit/??? or as you suggest create a fmt file in a file system where it
could not be made by an ordinary user due to some reason (possibly a
temporary space issue?)).
That execution was a turning point of the strange behavior to the better.

I am wits' end. Is it possible that there could have been an issue
using the package(s) from TESTING repository?

Finally, would you like me to run the seemingly destructive command?
(Destructive in the sense that format files are re-created and thus
may wipe out the possibly smoking gun trace of crippled installation. On the other hand, if it can tell that it is creating missing format files, we may see that they were not indeed
created before. : So maybe running with "--missing" helps instead of "--all"? Well, "-all" may reveal spaces issue or even broken file system/block, by touching more files. I am using ECC memory on a server type computer and so I tend to ignore memory flipping as the temporary cause of error, but...)

> You can try *AS*ROOT*
>    fmtutil-sys --all 2>&1 | tee fmtutil-all.log
>And send me
>    fmtutil-all.log

Hmm., to see that you suggest that I run this as root, then I suppose
these format ought to have been created during installation under
super-user for system-wide sharing.  That means there is a possibility
that they failed for some mysterious reason [and was not reported back
to the installer and the user clearly???]

It would be nice if we can identify the possible cause of the screw-up for helping reduce the affected users in the future.
That is the main reason of my posting.

TIA








2014-05-17 14:17 GMT+09:00 Norbert Preining <preining@logic.at>:
On Fri, 16 May 2014, Zephyrus C wrote:
>         tlmgr conf

These are the same besides the fact that you have a completely
crazy PATH as user, with many items appearing several times.
Anyway, no influence.

> root@vm-debian-amd64:/tmp# kpsewhich -all texmf.cnf
>
> /etc/texmf/web2c/texmf.cnf
> /usr/share/texmf/web2c/texmf.cnf
> /usr/share/texlive/texmf-dist/web2c/texmf.cnf

Looks fine.

> ii  texlive-lang-c 2013.2014040 all          TeX Live: Chinese/Japanese/Korean

looks fine.

> root@vm-debian-amd64:/tmp# root@vm-debian-amd64:/tmp# ls /var/lib/texmf/web2c/ptex/
> ptex.fmt  ptex.log

looks fine.

> /home/username/.texmf-var:

looks fine.

It looks all fine but:
> That /usr and /var both had about oly 30+ MiB left is a little
> disturbing but should not cause a big issue.

That would explain *why* root can work and user not.

There is normally a certain percentage of disk space reserved
for root. That means, if there is *reallY* only a bit of
space left, then users cannot create not even temp files,
nothing, while root can still do it.


I would recommend:
* removing something (apt-get clean for example removes downloaded
  but already installed .deb packages)
* check if user then can work.

If not, then please create a minimal file foo.tex containing only
        Hello\bye
and then run
        tex -kpathsea-debug=-1 -recorder foo.tex 2>foo-debug.log
and send me the output

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------


Reply to: