question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tmp_log.txt error

See original GitHub issue

Need better handling of this error. It occurs

Exception in thread Thread-43:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/elpis/elpis/wrappers/objects/model.py", line 239, in background_train_task
    train()
  File "/elpis/elpis/wrappers/objects/model.py", line 232, in train
    p = run(f"cd {local_kaldi_path}; ./run.sh > {tmp_log_path}")
  File "/elpis/elpis/wrappers/objects/command.py", line 16, in run
    stderr=subprocess.STDOUT
  File "/usr/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['bash', '-c', 'cd /elpis/state/models/ab6a2222936e2ad98bcc8232e8620674/kaldi; ./run.sh > /elpis/state/tmp_log.txt']' returned non-zero exit status 1.

Hard to reproduce, but the few times I have seen it the tmp_log.txt file ends after the aligning data line:

steps/train_deltas.sh: training pass 20
steps/train_deltas.sh: aligning data

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shuttle1987commented, Mar 5, 2021

Just by the way you can set the current working directory on the python side and that will make the ./run.sh command cleaner

0reactions
benfoleycommented, Dec 17, 2021

after logging refactor this should no longer be an issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

`nim --verboselog:/tmp/log.txt ...` to log more context when ... - GitHub
nim --verboselog:/tmp/log.txt ... to log more context when needed while not obfuscating stdout #8789.
Read more >
Batch File write into .txt does not work but works in a CMD Window ...
I have a strange problem. ... I copy and paste this Line into a CMD Window (no admin rights) it will write the...
Read more >
linux + write both standard output and stand error to log and to ...
#!/bin/bash trap 'rm $TMP' 0 TMP=$(mktemp) rm $TMP mkfifo $TMP tee < $TMP ${log:-/tmp/log.txt} & exec > $TMP 2>&1.
Read more >
[Chimera-users] save reply log from chimera python script
Hi Chimera Users, Could someone please point out the syntax error in this code: def save_reply_log("/tmp/tmplog.txt"): <<--- error should be ...
Read more >
Getting an error when trying to install WebSphere Application ...
When I try to install WebSphere Application Server 9.0 I receive the below errors: 1 - For WASND 9 install: ./imcl install com.ibm.websphere....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found