Closed Seema-agarwal closed 8 years ago
My app/config dir looks:-
app.php auth.php cache.php compile.php database.php local packages permissions.php production queue.php remote.php session.php staging testing travis-ci version.php view.php workbench.php
Why are you running that command?
Sorry was away on tour. I am a novice and was following the instructions on the documentation site. I had actually run the following when I got the error;- C:\inetpub\wwwroot\Snipe-it>php artisan app:install --env=production {"error":{"type":"ErrorException","message":"Undefined index: Asia\/Kolkata","file":"C:\inetpub\wwwroot\Snipe-it\vendor\laravel\framework\src\ Illuminate\Foundation\start.php","line":167}} Then read a lot of issues on your and was trying to run the artisan optimise command as per advice on some ones comment.
I have been unable to install snipe-It fora long time.I hope you will be able to teach me how to put it up and running.
Can you show me what's in your app/config/app.php
file?
<?php
return array( /* | -------------------------------------------------------------------------- | Application Debug Mode |
---|---|---|
When your application is in debug mode, detailed error messages with | ||
stack traces will be shown on every error that occurs within your | ||
application. If disabled, a simple generic error page is shown. | ||
*/
'debug' => true,
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/
'url' => 'http://localhost',
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'Asia/Kolkata',
/*
|--------------------------------------------------------------------------
| Application Locale
|--------------------------------------------------------------------------
|
| This locale ties into the languaage files in app/lang, which contain the
| language files for each translation.
|
*/
'locale' => 'en',
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| This setting may be used to control the default cipher used by the Laravel
| encryption facilities.
|
| Note: In Laravel 4.2, the default cipher is MCRYPT_RIJNDAEL_128 (AES),
| which is considered to be the most secure cipher. Changing the cipher
| back to MCRYPT_RIJNDAEL_256 is required to decrypt cookies/values that
| were encrypted in Laravel <= 4.1
|
*/
'cipher' => MCRYPT_RIJNDAEL_256,
/*
|--------------------------------------------------------------------------
| Prevent Password changes
|--------------------------------------------------------------------------
|
| If for some reason you do not wish for admins to be able to edit the password
| for any user (including themselves), set this to true.
|
*/
'lock_passwords' => false,
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
'Illuminate\Cache\CacheServiceProvider',
'Illuminate\Session\CommandsServiceProvider',
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
'Illuminate\Routing\ControllerServiceProvider',
'Illuminate\Cookie\CookieServiceProvider',
'Illuminate\Database\DatabaseServiceProvider',
'Illuminate\Encryption\EncryptionServiceProvider',
'Illuminate\Filesystem\FilesystemServiceProvider',
'Illuminate\Hashing\HashServiceProvider',
'Illuminate\Html\HtmlServiceProvider',
'Illuminate\Log\LogServiceProvider',
'Illuminate\Mail\MailServiceProvider',
'Illuminate\Database\MigrationServiceProvider',
'Illuminate\Pagination\PaginationServiceProvider',
'Illuminate\Queue\QueueServiceProvider',
'Illuminate\Redis\RedisServiceProvider',
'Illuminate\Remote\RemoteServiceProvider',
'Illuminate\Auth\Reminders\ReminderServiceProvider',
'Illuminate\Database\SeedServiceProvider',
'Illuminate\Session\SessionServiceProvider',
'Illuminate\Translation\TranslationServiceProvider',
'Illuminate\Validation\ValidationServiceProvider',
'Illuminate\View\ViewServiceProvider',
'Illuminate\Workbench\WorkbenchServiceProvider',
'Barryvdh\Debugbar\ServiceProvider',
'Cartalyst\Sentry\SentryServiceProvider',
'Chumper\Datatable\DatatableServiceProvider',
'Maknz\Slack\SlackServiceProvider',
'Schickling\Backup\BackupServiceProvider',
'Chumper\Zipper\ZipperServiceProvider',
'Fideloper\Proxy\ProxyServiceProvider',
),
/*
|--------------------------------------------------------------------------
| Service Provider Manifest
|--------------------------------------------------------------------------
|
| The service provider manifest is used by Laravel to lazy load service
| providers which are not needed for each request, as well to keep a
| list of all of the services. Here, you may set its storage spot.
|
*/
'manifest' => storage_path().'/meta',
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => array(
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
'Auth' => 'Illuminate\Support\Facades\Auth',
'Blade' => 'Illuminate\Support\Facades\Blade',
'Cache' => 'Illuminate\Support\Facades\Cache',
'ClassLoader' => 'Illuminate\Support\ClassLoader',
'Config' => 'Illuminate\Support\Facades\Config',
'Controller' => 'Illuminate\Routing\Controller',
'Cookie' => 'Illuminate\Support\Facades\Cookie',
'Crypt' => 'Illuminate\Support\Facades\Crypt',
'DB' => 'Illuminate\Support\Facades\DB',
'Datatable' => 'Chumper\Datatable\Facades\DatatableFacade',
'Eloquent' => 'Illuminate\Database\Eloquent\Model',
'Event' => 'Illuminate\Support\Facades\Event',
'File' => 'Illuminate\Support\Facades\File',
'Form' => 'Illuminate\Support\Facades\Form',
'Hash' => 'Illuminate\Support\Facades\Hash',
'HTML' => 'Illuminate\Support\Facades\HTML',
'Image' => 'Intervention\Image\ImageManagerStatic',
'Input' => 'Illuminate\Support\Facades\Input',
'Lang' => 'Illuminate\Support\Facades\Lang',
'Log' => 'Illuminate\Support\Facades\Log',
'Mail' => 'Illuminate\Support\Facades\Mail',
'Paginator' => 'Illuminate\Support\Facades\Paginator',
'Password' => 'Illuminate\Support\Facades\Password',
'Queue' => 'Illuminate\Support\Facades\Queue',
'Redirect' => 'Illuminate\Support\Facades\Redirect',
'Redis' => 'Illuminate\Support\Facades\Redis',
'Request' => 'Illuminate\Support\Facades\Request',
'Response' => 'Illuminate\Support\Facades\Response',
'Route' => 'Illuminate\Support\Facades\Route',
'Schema' => 'Illuminate\Support\Facades\Schema',
'Seeder' => 'Illuminate\Database\Seeder',
'Sentry' => 'Cartalyst\Sentry\Facades\Laravel\Sentry',
'Session' => 'Illuminate\Support\Facades\Session',
'SoftDeletingTrait' => 'Illuminate\Database\Eloquent\SoftDeletingTrait',
'SSH' => 'Illuminate\Support\Facades\SSH',
'Str' => 'Illuminate\Support\Str',
'URL' => 'Illuminate\Support\Facades\URL',
'Validator' => 'Illuminate\Support\Facades\Validator',
'View' => 'Illuminate\Support\Facades\View',
'Reader' => 'League\Csv\Reader',
'Slack' => 'Maknz\Slack\Facades\Slack',
'Zipper' => 'Chumper\Zipper\Zipper',
),
);
Where did you get that config? That looks like a mix of app/config/app.php
and app/config/production/app.php
?
Sorry closed the issue by mistake
I dont know Have been trying alot of things to get it running. What to do now?
I have no way of knowing what you may have manually changed, so I can't really help you unless you grab a fresh release and start again. Don't change any files other than the way the documentation instructs you to. From there we should be able to help you get it going.
Is there a way I can let you access my machine on remote so that I dont have toreinstall all the dependencies again?
If your composer didn't run, you didn't install any of the app dependencies. If you're referring to PHP/server dependencies, you don't need to reinstall them - just replace your Snipe-IT files with a fresh download. The server settings stay the same. Download and replace the files you have on your server, and then edit the configs as detailed in the docs, and try running composer again. Then tell me what happens.
ok
I am in the process of installing Composer It is installing dependencies ...as before
That's fine. Tell me when/if you run into errors or issues.
IT suddenly says:
You should be using the --prefer-source
flag, per the documentation:
http://docs.snipeitapp.com/installation/composer.html
php composer install --no-dev --prefer-source
Should I run it again
Yes, or create a Github OAuth token.
I have created the personal token but only for the repo that was selected by default.
But when I paste the token it says;
Could not fetch https://api.github.com/repos/maknz/slack/zipball/c8ed3e4f919358af43516e7ab8d7fa39d3d2f736, please create a GitHub OAuth token to go ov
er the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+RSHLTP026+2015-10-28+1831
to retrieve a token. It will be stored in "C:/Users/Administrator/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
No token given, aborting.
You can also add it manually later by using "composer config github-oauth.github.com
Installing maknz/slack (dev-master c8ed3e4) Cloning c8ed3e4f919358af43516e7ab8d7fa39d3d2f736
[RuntimeException] Failed to clone git@github.com:maknz/slack.git, git was not found, check that it is installed and in your PATH env. 'git' is not recognized as an internal or external command, operable program or batch file.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--n o-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [packages1] ... [packagesN]
C:\inetpub\wwwroot\Snipe-it>0XXXXXXX
That's the token at the end of the last comment.
Sounds like you don't have git installed. You can try using the --prefer-dist
flag and it should try to download the zip versions of the packages.
ok
same:
Command: composer install --prefer-dist
Loading composer repositories with package information Installing dependencies (including require-dev) from lock file
Installing maknz/slack (dev-master c8ed3e4) Cloning c8ed3e4f919358af43516e7ab8d7fa39d3d2f736
[RuntimeException] Failed to clone git@github.com:maknz/slack.git, git was not found, check that it is installed and in your PATH env. 'git' is not recognized as an internal or external command, operable program or batch file.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--n o-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [packages1] ... [packagesN]
C:\inetpub\wwwroot\Snipe-it>cXXXXXXXX
Just install git then, and run php composer install --no-dev --prefer-source
And please stop pasting your OAuth token here. Never post auth tokens on any public website.
how to install git
This is what happened
Basic usage: composer
C:\inetpub\wwwroot\Snipe-it>composer install --no-dev --prefer-source Loading composer repositories with package information Installing dependencies from lock file
Generating autoload files
C:\inetpub\wwwroot\Snipe-it>
Now should I follow the instructions ahead with php artisan app:install --env=production
Yes, that looks good. Keep going with the installation
ok
Yay! it says Admin group created successfully.
Reporting group created successfully.
Users group created successfully.
Your user was created successfully.
the web application doesnt seem to be running. i am using Windows IIS7- have followed all instructions.
That's a configuration issue on your end, not related to the Snipe-IT app, most likely. Maybe one of the windows users will be able to help you.
Either way, we'll need more info than "it doesn't seem to be running". Are you getting an error? If so, what's the error?
when I type localhost/Snipe-it on my browser address window It says
Detailed Error Information Module DirectoryListingModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x00000000 Requested URL http://localhost:80/Snipe-it/ Physical Path C:\inetpub\wwwroot\snipe-it\ Logon Method Anonymous Logon User Anonymous
Could you please connect me to a window user who can help me with the configs?
Have you actually created a website for it in IIS? http://www.iisunderground.com/add-a-new-website-iis-7-5/ http://www.elvenware.com/charlie/development/web/Server/SetupAWebSite.html
I can't connect you to anyone. If one of the windows users happens to see this thread and chooses to help, they'll help. This is free software, so I can't command any of our community members to assist.
@Seema-agarwal , I don't use Snipe It under Windows, but did you install the rewrite module and import the config over? DirectoryListingModule leads me to believe there may be a mismatch of config.
Thanks a ton anyway. Nevertheless I must congratulate you for a very intuitive UI of your application which is making me take such an effort. No other open source IT Asset softwares are as user friendly as Snipe IT.
Yes I did all that. But I will tryto look up other relevant sites and get it up.
Wont give-up.
Hmm.. Does Eventvwr tell you anything useful about any other IIS error?
Or any IIS logs under the Windows log directory? (sorry, not exactly sure where those logs would be, I'm not quite an IIS person :/)
Thanks for the interest and support.
I will just check the earlier links and get back.
No problem, I'll keep an eye on this thread, let us know whatever else you find and we'll go from there; I need to brush up on my Windows-side of Snipe It anyway.
@Seema-agarwal did you follow all of the steps here: http://docs.snipeitapp.com/installation/server/windows.html?
You shouldn't need to type /snipe-it/ in the browser. Have you installed PHP for IIS? If not you need to download the Microsoft Web Platform Installer and use it to install PHP and PHP Manager.
I have installed both. I have another application which runs fine and is configured the same and runs ok. In IIS I can see two folders of Snipe-it- one under sites /default and the other under sites.!!!
I havent got web platform installer though.
If you already have PHP and PHP Manager, don't worry about WebPI.
it says Module RewriteModule Notification SendResponse Handler PHP_via_FastCGI Error Code 0x800700b7 Config Error Cannot add duplicate collection entry of type 'rule' with unique key attribute 'name' set to 'Imported Rule 1' Config File \?\C:\inetpub\wwwroot\snipe-it\public\web.config
Config Source
5: <rules>
6: <rule name="Imported Rule 1" stopProcessing="true">
7: <match url="(.*)" ignoreCase="false" />
Hmm. Well, you probably were going to need to disable that rewrite rule anyway, so disable Imported Rule 1.
I did but the same error again why? The rule is disabled in IIS??
cant seem to resolve the following
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.