Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spark error #1408

Closed
nowackipawel opened this issue Nov 4, 2018 · 3 comments
Closed

Spark error #1408

nowackipawel opened this issue Nov 4, 2018 · 3 comments

Comments

@nowackipawel
Copy link
Contributor

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

@jim-parry
Copy link
Contributor

spark is only intended to be run from inside the root directory of a project ... https://bcit-ci.github.io/CodeIgniter4/cli/cli_commands.html#running-commands

How is this a bug?

@jim-parry
Copy link
Contributor

It seems to me that the docs clearly say that your usage would be "spark tools/report:file_converted 1 0", from the project root.

@nowackipawel
Copy link
Contributor Author

Ok, let say you are right :). Thx,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants