Skip to content

Spark error #1408

Description

@nowackipawel

My home dir where spark is located is: /home/pc/mydir
I am in: /home/pc/mydir/tools where I am trying to call php ../spark report:file_converted 1 0 . Hovewer everytime Im getting error (never mind if spark is called from script or command line):

PHP Warning:  chdir(): No such file or directory (errno 2) in /home/pc/mydir/spark on line 43
PHP Warning:  require_once(/Config/Constants.php): failed to open stream: No such file or directory in /home/pc/mydir/system/bootstrap.php on line 98
PHP Fatal error:  require_once(): Failed opening required '/Config/Constants.php' (include_path='.:/usr/share/php') in /home/pc/mydir/system/bootstrap.php on line 98

Problem disappears when spark is called directly within its directory.

Context

PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions