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

occ install doesn't create DB #5049

Closed
enoch85 opened this issue May 22, 2017 · 18 comments
Closed

occ install doesn't create DB #5049

enoch85 opened this issue May 22, 2017 · 18 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: install and update needs info stale Ticket or PR with no recent activity

Comments

@enoch85
Copy link
Member

enoch85 commented May 22, 2017

Steps to reproduce

  1. Install Nextcloud 12 with .occ and set DB name
  2. Notice that DB is not created
  3. Create a DB manually
  4. Run .ooc install again
  5. Notice that Nextcloud successfully installs

https://github.com/nextcloud/vm/blob/master/nextcloud_install_production.sh#L268 (added the workaround until this is fixed)

Expected behaviour

DB should be created during install.

Actual behaviour

DB is not installed.

Error message in red that admin couldn't connect to DB because it doesn't exists

Server configuration

Operating system:
Ubunt Server 16.04
Web server:
Apache 2.4
Database:
MySQL 5,7
PHP version:
7.0

Ref similar issue from before #2661

@enoch85
Copy link
Member Author

enoch85 commented May 22, 2017

#5034

@lightonflux
Copy link

lightonflux commented May 23, 2017

We had the same situation with NC11 → #2646 which was fixed by this pull request

@tessus
Copy link

tessus commented May 24, 2017

@lightonflux how is it possible that something that was fixed in nc11 is not in the code of nc12? maybe bad merges?

@lightonflux
Copy link

@tessus Was merged properly and the code is still there.

@enoch85
Copy link
Member Author

enoch85 commented Jun 9, 2017

@lightonflux Still doesn't work, so the fact that the code is still there doesn't change anything.

@enoch85
Copy link
Member Author

enoch85 commented Jul 21, 2017

@rullzer Can you please have a look at this?

@enoch85
Copy link
Member Author

enoch85 commented Jul 27, 2017

I'm surprised that this isn't fixed yet.

@MorrisJobke MorrisJobke removed this from the Nextcloud 12.0.3 milestone Aug 30, 2017
@arodriguezf
Copy link

I´m having this problem using the VM downloaded from your web, any fix?

@enoch85
Copy link
Member Author

enoch85 commented Sep 1, 2017

@arodriguezf Nextcloud is already installed in the VM, so I don't understand how you can have this issue?

@enoch85
Copy link
Member Author

enoch85 commented Feb 16, 2018

@MorrisJobke Is this in NC 13 now? Haven't tested as I create a DB per default in the scripts before Nextcloud is installed.

@MorrisJobke
Copy link
Member

@MorrisJobke Is this in NC 13 now? Haven't tested as I create a DB per default in the scripts before Nextcloud is installed.

Don't know. Haven't tested again.

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@skjnldsv skjnldsv added the 1. to develop Accepted and waiting to be taken care of label Jun 6, 2019
@stale stale bot removed the stale Ticket or PR with no recent activity label Jun 6, 2019
@skjnldsv
Copy link
Member

skjnldsv commented Jun 6, 2019

Still occuring @enoch85 ?

@skjnldsv skjnldsv added 0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info and removed 1. to develop Accepted and waiting to be taken care of labels Jun 6, 2019
@skjnldsv skjnldsv changed the title [STABLE 12] .occ install doesn't create DB occ install doesn't create DB Jun 6, 2019
@enoch85
Copy link
Member Author

enoch85 commented Jun 6, 2019

@skjnldsv Have to test it, solved it by creating the DB before so it worked since. But it's a workaround, not a fix to the real issue.

Will let you know.

@ghost
Copy link

ghost commented Jul 6, 2019

This issue has been automatically marked as stale because it has not had recent activity and it seems to be missing some essential informations. It will be closed if no further activity occurs. Thank you for your contributions.

@ghost ghost added the stale Ticket or PR with no recent activity label Jul 6, 2019
@kesselb
Copy link
Contributor

kesselb commented Jul 6, 2019

Why should nextcloud create the database? Many users are confused because nextcloud creates a database user on setup. I would prefer that nextcloud just uses the provided credentials and print some warning if the db is missing or has the wrong charset. Would like to hear your opinion @enoch85

@enoch85
Copy link
Member Author

enoch85 commented Jul 6, 2019

Why should nextcloud create the database?

It's convenient. Simple as that. :)

For me though, I don't need it anymore since it's been implemented in the VM to create a DB before occ:install is run ever since this issue arise.

I would be OK with closing.

@skjnldsv
Copy link
Member

skjnldsv commented Jul 6, 2019

@rullzer @MorrisJobke @nickvergessen in or out of our roadmap?

@MorrisJobke
Copy link
Member

@rullzer @MorrisJobke @nickvergessen in or out of our roadmap?

"Out" in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: install and update needs info stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

8 participants