Snipe-it: Installing on Apache2 Linux Mint 18 shows unable to access /snipeit/public/setup

Created on 20 Oct 2016  Â·  4Comments  Â·  Source: snipe/snipe-it

Expected Behavior (or desired behavior if a feature request)

Installing manually as well as tried github pull for installing in Apache 2 (there is no httpd. conf anymore) localhost, with all steps as per installation guide, should have reached pre-flight setup stage.

Actual Behavior

upto generate app key all goes fine, but when i when i write in browser http://localhost/snipeit or http://localhost/snipeit/public, i end up getting /snipeit/setup or /snipeit/public/setup not found.

Please confirm you have done the following before posting your bug report:

Please provide answers to these questions before posting your bug report:

  • Version of Snipe-IT you're running - 3.4
  • What OS and web server you're running Snipe-IT on - Linux Mint 18, Apache2
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)- manual
  • If you're getting an error in your browser, include that error - /snipeit/setup not found, /snipeit/public/setup not found.
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error - pre-flight
  • If a stacktrace is provided in the error, include that too. - NA
  • Any errors that appear in your browser's error console. - NA
  • Confirm whether the error is reproduceable on the demo. - No
  • Include any additional information you can find in app/storage/logs and your webserver's logs. - Nil
  • Include what you've done so far in the installation, and if you got any error messages along the way. - nil
  • Indicate whether or not you've manually edited any data directly in the database - No

Most helpful comment

Glad to hear it. :D

All 4 comments

I think I was able to move some hinderances by disabling default localhost site with sudo a2dissite 000.default.conf. However, now when i execute localhost/snipeit it runs setup but immediately meets the following errors (I think I must mention that my machine is 64 bit linux mint, and I tried several of the suggestions regarding encrypter requiring 32 chars, but it didnt work) -

RuntimeException in EncryptionServiceProvider.php line 45:
No supported encrypter found. The cipher and / or key length are invalid.
in EncryptionServiceProvider.php line 45
at EncryptionServiceProvider->getEncrypterForKeyAndCipher('�U��MĶ~P�\��ο���Xf���H�D؎', 'rijndael-256') in EncryptionServiceProvider.php line 25
at EncryptionServiceProvider->Illuminate\Encryption{closure}(object(Application), array()) in Container.php line 731
at Container->build(object(Closure), array()) in Container.php line 629
at Container->make('encrypter', array()) in Application.php line 697
at Application->make('IlluminateContracts\Encryption\Encrypter') in Container.php line 849
at Container->resolveClass(object(ReflectionParameter)) in Container.php line 804
at Container->getDependencies(array(object(ReflectionParameter)), array()) in Container.php line 775
at Container->build('App\Http\Middleware\EncryptCookies', array()) in Container.php line 629
at Container->make('App\Http\Middleware\EncryptCookies', array()) in Application.php line 697
at Application->make('App\Http\Middleware\EncryptCookies') in Pipeline.php line 126
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 726
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 699
at Router->dispatchToRoute(object(Request)) in Router.php line 675
at Router->dispatch(object(Request)) in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}(object(Request)) in Debugbar.php line 49
at Debugbar->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Debugbar), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in TrustProxies.php line 46
at TrustProxies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(TrustProxies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForSetup.php line 30
at CheckForSetup->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForSetup), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in NosniffGuard.php line 17
at NosniffGuard->handle(object(Request), object(Closure))
at call_user_func_array(array(object(NosniffGuard), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in XssProtectHeader.php line 17
at XssProtectHeader->handle(object(Request), object(Closure))
at call_user_func_array(array(object(XssProtectHeader), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in FrameGuard.php line 17
at FrameGuard->handle(object(Request), object(Closure))
at call_user_func_array(array(object(FrameGuard), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in StartSession.php line 64
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 145
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 132
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 60
Whoops, looks like something went wrong.

1/1
RuntimeException in EncryptionServiceProvider.php line 45:
No supported encrypter found. The cipher and / or key length are invalid.
in EncryptionServiceProvider.php line 45
at EncryptionServiceProvider->getEncrypterForKeyAndCipher('�U��MĶ~P�\��ο���Xf���H�D؎', 'rijndael-256') in EncryptionServiceProvider.php line 25
at EncryptionServiceProvider->Illuminate\Encryption{closure}(object(Application), array()) in Container.php line 731
at Container->build(object(Closure), array()) in Container.php line 629
at Container->make('encrypter', array()) in Application.php line 697
at Application->make('IlluminateContracts\Encryption\Encrypter') in Container.php line 849
at Container->resolveClass(object(ReflectionParameter)) in Container.php line 804
at Container->getDependencies(array(object(ReflectionParameter)), array()) in Container.php line 775
at Container->build('App\Http\Middleware\EncryptCookies', array()) in Container.php line 629
at Container->make('App\Http\Middleware\EncryptCookies', array()) in Application.php line 697
at Application->make('App\Http\Middleware\EncryptCookies') in Kernel.php line 152
at Kernel->terminate(object(Request), object(Response)) in index.php line 64

Please help.

thanks,
Anil

You probably do not have mycrypt.

I believe they are phasing that out anyway, so the solution I used was to change the encryption key manually, than running php artisan key:generate.

Commands below are Ubuntu, not sure if Mint is different.

cd /var/www/snipe-it/config
sudo nano app.php
navigate down until you reach the encryption section
Change cipher => rijndael-256, to 'AES-256-CBC'
exit and save the document

Your solution of changing cipher to AES-256-CBC has worked for me ! Thanks a ton !

Glad to hear it. :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

snipe picture snipe  Â·  3Comments

snipe picture snipe  Â·  5Comments

bricelabelle picture bricelabelle  Â·  3Comments

snipe picture snipe  Â·  3Comments

comisso picture comisso  Â·  4Comments