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

Whoops Something Went Wrong #3511

Closed
robblehead opened this issue Apr 21, 2017 · 4 comments
Closed

Whoops Something Went Wrong #3511

robblehead opened this issue Apr 21, 2017 · 4 comments

Comments

@robblehead
Copy link

Expected Behavior (or desired behavior if a feature request)

login to GUI


Actual Behavior

error message "Whoops Something Went Wrong"


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
    latest available
  • What OS and web server you're running Snipe-IT on
    Ubuntu 14.04
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
    install.sh
  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error

PDOException in Connector.php line 55:
SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)

  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
    Clean install. Attempting PreFlightSetup
  • If a stacktrace is provided in the error, include that too.

in Connector.php line 55
at PDO->__construct('mysql:host=localhost;dbname=', null, null, array('0', '2', '0', false, false)) in Connector.php line 55
at Connector->createConnection('mysql:host=localhost;dbname=', array('driver' => 'mysql', 'host' => 'localhost', 'database' => null, 'username' => null, 'password' => null, 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, 'unix_socket' => '', 'dump_command_path' => '/usr/bin', 'dump_command_timeout' => '300', 'dump_using_single_transaction' => true, 'options' => array(), 'name' => 'mysql'), array('0', '2', '0', false, false)) in MySqlConnector.php line 24
at MySqlConnector->connect(array('driver' => 'mysql', 'host' => 'localhost', 'database' => null, 'username' => null, 'password' => null, 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, 'unix_socket' => '', 'dump_command_path' => '/usr/bin', 'dump_command_timeout' => '300', 'dump_using_single_transaction' => true, 'options' => array(), 'name' => 'mysql')) in compiled.php line 11845
at ConnectionFactory->Illuminate\Database\Connectors{closure}()
at call_user_func(object(Closure)) in Connection.php line 924
at Connection->getPdo() in Connection.php line 792
at Connection->reconnectIfMissingConnection() in Connection.php line 677
at Connection->run('select * from information_schema.tables where table_schema = ? and table_name = ?', array(null, 'users'), object(Closure)) in Connection.php line 349
at Connection->select('select * from information_schema.tables where table_schema = ? and table_name = ?', array(null, 'users')) in MySqlBuilder.php line 21
at MySqlBuilder->hasTable('users') in compiled.php line 6325
at Facade::__callStatic('hasTable', array('users')) in Setting.php line 65
at Setting::setupCompleted() in CheckForSetup.php line 22
at CheckForSetup->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForSetup), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9963
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 compiled.php line 9963
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 compiled.php line 9963
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 compiled.php line 9963
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 compiled.php line 13474
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9963
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 compiled.php line 11964
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9963
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 compiled.php line 9963
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 compiled.php line 9948
at Pipeline->then(object(Closure)) in compiled.php line 2366
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2350
at Kernel->handle(object(Request)) in index.php line 59

  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproduceable on the demo.
  • Include any additional information you can find in app/storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way.

Clean install. using basic FQDN since it will be only available to local network. I am able to load preflight setup 1 time. When I make change to .env for email setup and then reboot server this error occurs every time. But I can access the preflight setup fine before server reboot or modifying the .env file.

  • Indicate whether or not you've manually edited any data directly in the database
@robblehead
Copy link
Author

I have successfully installed on minimal centos7 with no issues at all. I really want it up and running on Ubuntu and it's proving more difficult

@robblehead
Copy link
Author

Just tried changing the DB username and password with no change. (I am not 100% sure what the install sets the DB username to during the script?)

@snipe
Copy link
Owner

snipe commented Apr 21, 2017

The install doesn't set the username or password - you have to edit the .env file to include that information. https://snipe-it.readme.io/docs/configuration

If you've updated your .env and it's not reflecting the new settings, try the recommendations here:
https://snipe-it.readme.io/docs/common-issues#section-changes-to-my-env-file-dont-seem-to-be-updating

@robblehead
Copy link
Author

what does the install.sh set the DB_DATABASE name to?

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