-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Installation #217
Comments
Please provide more information. What is the OS you're running, what are the contents of the error log, what did you do to trigger the error, etc |
Is Apache running properly? i.e. if you remove your SNIPE-IT settings from the apache conf files does the Apache welcome/example page come up? If so, then re-enable your SNIPE-IT conf and then edit this application config file, and also restart apache (service httpd restart): app/config/production/app.php (ex. /var/www/snipeit/app/config/production/app.php) Reconnect and post the results. |
I am using Ubuntu 12.04.5 LTS. My apache is running properly because i can access index.html files from apache root directory (/var/www). I have edited app/config/production/app.php file and set the deug=true. but still i am getting the same error message: Error in exception handler. No more logs under storage/logs folder Please see the config files app.php 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://www.snipe-it-fta.com', /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | This key is used by the Illuminate encrypter service and should be set | to a random, 32 character string, otherwise these encrypted strings | will not be safe. Please do this before deploying an application! | | Run a php artisand key:generate --env=staging to create a random one */ 'key' => 'Change_this_key_or_snipe_will_get_ya', ``` ); start.php detectEnvironment(array( ``` 'local' => array('IT-1','IT-1'), 'staging' => array('staging.snipe-it.fta.com'), 'production' => array('www.snipe-it.fta.com') ``` )); /* |-------------------------------------------------------------------------- | Bind Paths |-------------------------------------------------------------------------- | | Here we are binding the paths configured in paths.php to the app. You | should not be changing these here. If you need to change these you | may do so within the paths.php file and they will be bound here. | */ $app->bindInstallPaths(require **DIR**.'/paths.php'); /* |-------------------------------------------------------------------------- | Load The Application |-------------------------------------------------------------------------- | | Here we will load the Illuminate application. We'll keep this is in a | separate location so we can isolate the creation of an application | from the actual running of the application with a given request. | */ $framework = $app['path.base'].'/vendor/laravel/framework/src'; require $framework.'/Illuminate/Foundation/start.php'; /* |-------------------------------------------------------------------------- | Return The Application |-------------------------------------------------------------------------- | | This script returns the application instance. The instance is given to | the calling script so we can separate the building of the instances | from the actual running of the application and sending responses. | */ return $app; |
I have tried to re-install snipe-it, but i am getting this error message while i am running "php artisan app:install" command Step: 2
Application key [IpKYNUf6yaOOhOT7KjM3xG5XbqmticgN] set successfully. [InvalidArgumentException] app:install |
You have not completed all the installation instructions. You need to setup/configure MySQL (or another supported db), create database within MySQL, add a database user 'travis' with password, give the 'travis' user permissions on the newly created database, then finally edit your database.php file with the correct password and database name. Username 'travis' and database name 'snipeit_laravel' are the example defaults, but these can be anything you wish to setup. here is an example using MySQL5.6 on CentOS (redhat) using root account (if, smartly, not using root then you should issue 'sudo' at the beginning of the shell command 'mysql'
|
Hi @firozhaneef - sorry you're having trouble. This problem has been covered a few times before. Your problem is caused by one of two things:
OR
|
I have already installed mysql, created a database name as 'snipeit_laravel', edited the database.php file and change the username and password with mysql username and password. I had successfully installed snipe-it once, but i was getting 'unhandled exception error, while i was trying to access through webbrowser. I hadn't specify any complete url address in the config file at the time of installation. So i removed that directory and setup files completly from apache, i created another folder as snipe-it-fta.com and copied all the snipe-it files to this directory. I have created database again and run the setup, then it got triggered this database error. Snipe: i think, database.php file recognition might be the issue, i changed the database.php file with even wrong parameters, it showed the same error. so some how installer couldn't find the database.php file. let me try as you said, will update you tomorow. because i am from saudi arabia, gonna sleep now. |
You could also check your apache access_log and error_log (usually in /var/log/httpd), then check the Laravel framework log (app/storage/log) it might provide details on what is not working. This error also happens if your Apache does not have 'execute' permissions on the snipe diretory and/or does not have write permissions in the app/storage directory.
|
Pretty sure my solution will fix this for @firozhaneef. It's come up a few times, and moving the DB file almost always works. |
Moving the database.php file from the environment folder to the config root? Is there anything common about the distro, Apache, PHP or Laravel versions to go on? We can try and reproduce it and isolate the scenario. In theory... if PHP and Laravel even start execution, it really should be throwing the exception error into app/storage/logs file. If there are NO logs in the app/storage location for a missing database config file, and no unhandled exception error recorded by Laravel we might want to see if this is an issue to ask Laravel about. firozhaneef, it would be helpful if you could report back on your progress and any errors that appear in the following log files:
|
Sorry all... its late and i am clearly missing the point here! ;) the error is actually thrown during artisan install - not loading the web app. Please disregard the above stuff... but would still like to find out if there is any common distro php or laravel that causes this issue. |
Thanks for your support @snipe and @technogenus. I have successfully installed snipe-it and started using it. I copied database.php to config directory and ran php artisan app:install command. Thats it. Once i installed snipe-it, i couldn't login to the web interface with registered username and password. So i have manually checked the user details in mysql database and i found that emailid filed was holding only 20 character and my email id's character length was more than 20. So i have edited email id manually, then it rocks.. Once again, thanks for such a wonderful software. |
Great! glad its working. Which code version did you pull, and did you run php artisan migrate? In the latest develop versions the database, email column is 255 characters long. |
Sorry - scratch that! Snipe has already pulled the develop branch into master... the two branches are currently equal so either will have all the same fixes. |
Yes, that is a true statement :( |
I have seen supplier list in online demo of snipe-it. but i couldn't find this feature with what i have installed in my pc. I am using snipe-it-v.0.3.6-alpha. |
Do you maybe mean manufacturer? |
I am using snipe-it-v.0.3.6-alpha. i have downloaded this 3 days ago from the snipe-it website. Where i can find the lastest virsion 0.4.3? I have seen manufacturer list but not suppliers. Let me ask you about one more feature that is asset tracking history. ex: to know who all were used a particular asset before. Do you have any plan to implement this feature? |
Sorry. Please ignore my question regarding the asset history. This feature is already available with snipe-it. Great Job. |
Can you please advice me that where i can find the lastest version 0.4.3? |
@firozhaneef the latest version of the software is available on the master or develop branch. It hasn't been settled into a formal release yet, but that code is the most recent. |
Do you have any plan to import users from ldap directory or ldap synchronization? |
That is on the roadmap, yes. There is currently a python script that handles importing from AD, which is linked to in the readme. (We didn't create it, but it was graciously shared with us by the creator, who is also a Snipe IT user) |
Thanks @snipe. When we can expect the version 1.0? |
Hah - I think we have to get out of alpha before we worry about 1.0. It's pretty stable tho, and nothing we do would be destructive, so it's a lower risk alpha/beta situation. The user can login and see what assets they have assigned to them, and can also (in the future) request assets that have been marked as requestable (for example, test devices). We will likely provide the option to have users that are not "real" users in the future tho, as that's a requested feature by several people. |
@snipe i am really happy with the features which Snipe IT currently offers. I was little curious about 1.0 release. That's why i asked. The feature, as you said, any user can login into the system and request for available resources, is really great. Let me download and test the master 0.4.3 and will get back to you. |
Hi i installed snipe-it software in windows 2008 server and iam running the application in local environment but when i type localhost:8080 i receive he following error do no what it is and how to proceed please help me iam new to this error message |
Sounds like your storage directory and sub-directories is not writeable by the web server. (Also, you should really create your own issue instead of threadjacking other people's. They get emailed when people reply to this, and your problem has nothing to do with their issues.) |
@YCYee912 Did you actually run the (Please open a new issue next time, as this issue was closed and isn't related to your current issue.) |
Hi, i got below problem. tried a few things but same error. snipeit]# php artisan app:install --env=production |
html]# php composer.phar install --no-dev --prefer-source
Generating autoload files PHP Warning: require(/var/www/html/bootstrap../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/bootstrap/autoload.php on line 17 |
The only thing I can suggest is that you delete your Also, next time please create a new issue, as your issue is unrelated to the original issue in this ticket. |
owh, thanks... i will create new ticket. |
I have installed snipe-it, but i am getting this error message:Error in exception handler. Please help..
The text was updated successfully, but these errors were encountered: