Skip to content

No log file on error #2

@Tyil

Description

@Tyil

I'm trying to start a service with service-start, which fails on my OS (Funtoo) because it uses rc-service, not service. I've found this out by looking through the source code, because the log file it should create doesnt exist:

@ linux service manager
bash hook error: do_bash_hook failed.
 see /opt/sparrow/tmp/19834/story-0/649.err for details at /usr/local/lib64/perl5/5.24.0/Outthentic/Story.pm line 655.
STATUS  FAILED (2)
failed to execute shell command: cd /opt/sparrow/plugins/public/service && export PATH=$PATH:$PWD/local/bin && export PERL5LIB=$PWD/local/lib/perl5:$PERL5LIB && export PYTHONPATH=$PWD/python-lib:$PYTHONPATH &&   strun --root ./ --task '[task] start service dnsmasq' --json /opt/sparrow/cache/task_5.json --purge-cache --format default at /usr/local/lib64/perl5/5.24.0/Sparrow/Misc.pm line 32.
        Sparrow::Misc::execute_shell_command("cd /opt/sparrow/plugins/public/service \x{26}\x{26} export PATH=\$PATH:\$"...) called at /usr/local/lib64/perl5/5.24.0/Sparrow/Commands/Task.pm line 364
        Sparrow::Commands::Task::task_run("taskbox", "start-service-dnsmasq", "--no-exec", "--json", "/opt/sparrow/cache/task_5.json", "--purge-cache", undef) called at /usr/local/lib64/perl5/5.24.0/Sparrow/Commands/TaskBox.pm line 89
        Sparrow::Commands::TaskBox::box_run("/opt/sparrow/sparrow-cache/task-box.json", "--mode", "quiet", "--purge-cache") called at /usr/local/bin/sparrow line 237
The spawned command 'sudo sh -c 'export LC_ALL=C ; export GIT_PROTOCOL=https ; export PERL_USE_UNSAFE_INC=1 ; export PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/local/bin:/usr/sbin/:/sbin/:/bin/:$PATH ; export SPARROW_ROOT=/opt/sparrow ; export SPARROW_CONF_PATH=/opt/sparrow/sparrow-cache/sparrow.yaml ; export OUTTHENTIC_FORMAT=default ; sparrow box run /opt/sparrow/sparrow-cache/task-box.json --mode quiet --purge-cache'' exited unsuccessfully (exit code: 2)
  in block <unit> at /home/tyil/.rakudo-star/rakudo-star-2018.04/install/share/perl6/site/resources/EF69F25AAEC473A77D51F9650464FD62B1520AC1 line 396
  in sub MAIN at /home/tyil/.rakudo-star/rakudo-star-2018.04/install/share/perl6/site/bin/sparrowdo line 2
  in block <unit> at /home/tyil/.rakudo-star/rakudo-star-2018.04/install/share/perl6/site/bin/sparrowdo line 2
$ cat /opt/sparrow/tmp/19834/story-0/649.err
cat: /opt/sparrow/tmp/19834/story-0/649.err: No such file or directory

I'm also trying to fix the issue on my machine, but it still errors out, and since there's no log file I can't really troubleshoot at this point. Why is there no error log at the path noted in the output of sparrowdo?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions