snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

There are no commands defined in the "app" namespace.

Open alexisskeates opened this issue 10 years ago • 7 comments

When trying to install Snipe-IT on my hosted webspace I get the point of running the cli: php artisan app:install --env=production which then fails.

The error message I get is:

[InvalidArgumentException]                             
There are no commands defined in the "app" namespace.  

Content-type: text/html

I have PHP Version 5.4.42 active on the hosting and everything went well till this point. I'm not sure it this is a limitation of my hosting provider if so then thats fine, but I just wanted to see if anyone has any ideas before I give up on it.

  • Version of Snipe-IT you're running - v2.1.0
  • What OS and web server you're running Snipe-IT on - Hosted with TSOHOST linux hosting
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) - manual install

alexisskeates avatar Apr 20 '16 17:04 alexisskeates

Well, this is a new one. It would help if you could give us a little more info:

  • what is the path to your snipe-IT install
  • what is the path to your PHP?
  • what directory are you running the artisan command in?

snipe avatar Apr 22 '16 00:04 snipe

Answers below I’m not 100% about the php question, but I think I put the correct information in. If it’s not an easy fix then not to worry to much it was more out of curiosity why it was not working. The install is in a subdomain. So it would be clientname.domainname.com http://clientname.domainname.com/ info.php file says /usr/local/php56 I’m running the artisan command from the install directory

On 22 Apr 2016, at 01:33, snipe [email protected] wrote:

Well, this is a new one. It would help if you could give us a little more info:

what is the path to your snipe-IT install what is the path to your PHP? what directory are you running the artisan command in? — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/snipe/snipe-it/issues/1976#issuecomment-213176142

alexisskeates avatar Apr 22 '16 08:04 alexisskeates

I need the path to your Snipe-IT install, not the domain. pwd. To find your cli php version, php -v

snipe avatar Apr 23 '16 11:04 snipe

Hello, I am also having the same issue (figured I would comment here instead of creating a duplicate question).

Snipe-IT verison: 2.1.1 OS and webserver: (hosted by 1and1) Debian 3.14, Zend Engine 2.5, Apache (not sure version), PHP 5.5.35 Install method: manual

install path: /domain/snipeit/ php path: usr/lib/php5.6 running artisan command from the /snipeit/ directory over ssh in PuTTY

imcint1 avatar Jun 02 '16 00:06 imcint1

What does php artisan show if you don't give it any arguements?

mnemonicly avatar Jun 02 '16 00:06 mnemonicly

It shows the list of commands (edit: easier to read screenshot) untitled2

imcint1 avatar Jun 02 '16 01:06 imcint1

Hello,

The issue was with apache configuration and composer exceeding the max transfer size, thus some functions were unavailable. I installed on a server not using shared hosting and had no issues.

Thanks! :)

imcint1 avatar Jun 10 '16 21:06 imcint1