core icon indicating copy to clipboard operation
core copied to clipboard

[OC6Beta2} white screen in windows 2008 R2 server when logging in

Open ser72 opened this issue 13 years ago • 16 comments

Expected Result Ability to log in

Actual Result White screen

Steps

  1. Install ownCloud 6 Beta 2 on Windows 2008 r2 server
  2. Configure with MS SQL as database
  3. After inputting all information, the screen goes white and cannot log in

{OC6 Beta 2 Windows 2008 R2 server} Tested with both PHP 5.4.14 PHP 5.4.21

Both fail with the following error in the PHP error log:

[07-Nov-2013 15:17:46 UTC] PHP Fatal error: Call to protected method OC\DB\Connection::replaceTablePrefix() from context 'OC\DB\AdapterSQLSrv' in C:\inetpub\wwwroot\owncloud6beta2\lib\private\db\adaptersqlsrv.php on line 15

ser72 avatar Nov 07 '13 15:11 ser72

@ringmaster @DeepDiver1975 @butonic Any idea?

karlitschek avatar Nov 13 '13 15:11 karlitschek

this has been fixed recently afaik

@ser72 can you please retest with a more recent version - THX

DeepDiver1975 avatar Nov 13 '13 16:11 DeepDiver1975

let's close it for now and reopen if still exist.

karlitschek avatar Nov 13 '13 16:11 karlitschek

Attempted several times to try later build. Tried Nov 8 build and the latest build. Cannot even get to the login screen in either instance:

capture

All other instances of ownCloud on the same windows server, including my OC6Beta 2 I can get to the login screen.

ser72 avatar Nov 13 '13 17:11 ser72

Are you using an admin account to create a new database or an existing account to an existing database?

I'll say this about my experience: I can't use an existing database and account since OC always tries to create a new database with the same name and this (obviously) fails. Are there docs for the MSSQL install in 6.0? Maybe I've got incorrect expectations about what is expected for the installation.

ringmaster avatar Nov 13 '13 18:11 ringmaster

@ringmaster This is before I even create a database at this time. The error above occurs immediately when I try to browse to the initial setup login screen.?.?

ser72 avatar Nov 13 '13 18:11 ser72

To confirm then, you are providing a SQL Server admin username and password and the name of the database that you're intending for ownCloud to create for you?

Maybe this seems like a snarky/obtuse question, but did the MSSQL installer work before?

ringmaster avatar Nov 13 '13 19:11 ringmaster

I am not even getting that far. I can't even bring up the initial setup login to be able to enter whether I want to use MS SQL or mysql.

ser72 avatar Nov 13 '13 19:11 ser72

You're saying you don't see the page to enter initial OC and database credentials? This one?:

installer

I guess all I can say is that this "works for me" in master -- I see the initial setup page, as screenshot above. Though the installer itself working for MSSQL is another matter entirely.

ringmaster avatar Nov 13 '13 19:11 ringmaster

That's the screen. I have tried Nov 8 build, Today's build. I will try OC Beta 4 and see if I can get it.

ser72 avatar Nov 13 '13 19:11 ser72

@ringmaster : Must have had corrupt builds. Beta 4 gets me to that screen.

Now let me log in and see if I still get white screen or not.

More to come

ser72 avatar Nov 13 '13 20:11 ser72

If I install MSSQL on master with admin credentials and allow OC to create a new database for me, then the installation works. If I install MSSQL on master with the credentials of an existing user and database, the install fails with "database creation" related errors.

ringmaster avatar Nov 13 '13 20:11 ringmaster

@ringmaster : Yes I installed MSSQL with admin credentials and a NEW DB and I did not get white screen,

The behavior you describe about using an existing DB occurs on Linux installs as well -- not just Windows. If you want to use the same DB, you need to copy the config.php from the existing owncloud directory to the new owncloud directory -- you can modify the default data location to match the new instance, and then ownCloud will not bring you to the initial screen -- it will be just the login screen as if the instance has always existed. No new DB will be created.

ser72 avatar Nov 13 '13 20:11 ser72

:+1:

ser72 avatar Nov 13 '13 20:11 ser72

Maybe I need to file a new issue, then. Since I'm under the impression that regardless of the database engine (SQLite excepted), I should be able to manually create a database and user, then supply those to ownCloud at installation, and then instead of ownCloud using those credentials to create a new database, it would use them to log into the database that I created manually for that puprose. I'm a long-time proponent of keeping my server admin passwords to myself, so call me a little paranoid.

That said, can we close this ticket?

ringmaster avatar Nov 13 '13 20:11 ringmaster

@ringmaster Yes -- I'm closing it now.

ser72 avatar Nov 13 '13 20:11 ser72