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

ERROR 1046 (3D000) at line 1: No database selected #1

Open
fabvlvs opened this issue Jul 6, 2014 · 15 comments
Open

ERROR 1046 (3D000) at line 1: No database selected #1

fabvlvs opened this issue Jul 6, 2014 · 15 comments
Labels

Comments

@fabvlvs
Copy link

fabvlvs commented Jul 6, 2014

building of image using TKLdev fails shortly after "Starting MySQL database server: mysqld .."
No iso is generated. genisoimage does not appear to have run.

@wvengen
Copy link
Member

wvengen commented Jul 7, 2014

Thanks for your bug report. I'll try to reproduce. If you have the logs at hand, it would be helpful to post the offending lines with context.

@wvengen wvengen added the bug label Jul 7, 2014
@fabvlvs
Copy link
Author

fabvlvs commented Jul 7, 2014

@wvengen
Copy link
Member

wvengen commented Jul 8, 2014

Thanks. I guess this is a timing issue, I can't reproduce it. Will investigate more.

@wvengen
Copy link
Member

wvengen commented Jul 8, 2014

Does this happen too when building the rails appliance? The error happens while TKL's common script rails is executed.

@fabvlvs
Copy link
Author

fabvlvs commented Jul 8, 2014

I'll try to build the rails appliance when I get to office.

Sent from a phone

On Jul 8, 2014, at 4:41 AM, wvengen [email protected] wrote:

Does this happen too when building the rails appliance? The error happens when TKL's common script rails is executed.


Reply to this email directly or view it on GitHub.

@wvengen
Copy link
Member

wvengen commented Jul 9, 2014

Thanks, looking forward to it.

@fabvlvs
Copy link
Author

fabvlvs commented Jul 9, 2014

rails appliance also failed. Here's some of the log (see end):
https://gist.github.com/fabvlvs/16529d3a3930d1d5dc5a

The errors at end read:
IOError: [Errno 2] No such file or directory: '/turnkey/fab/products/core/changelog'
make: *** [build/stamps/root.patched] Error 1

@wvengen
Copy link
Member

wvengen commented Jul 10, 2014

Thanks for taking the time to check. This is an error either with TurnkeyLinux or your build setup. Would you like to open a bug with them, mentioning #1 ?

@fabvlvs
Copy link
Author

fabvlvs commented Jul 10, 2014

While I haven't opened a bug, I have submitted the errors to the forum, which I think is a more appropriate venue if my setup could still be the issue.

It would be pretty sad if I can't even set up a turnkey system. I even used the tutorial.

On Jul 10, 2014, at 4:00 AM, wvengen [email protected] wrote:

Thanks for taking the time to check. This is an error either with TurnkeyLinux or your build setup. Would you like to open a bug with them, mentioning #1 ?


Reply to this email directly or view it on GitHub.

@JedMeister
Copy link
Contributor

@fabvlvs Did you post on the forums? I couldn't see it...

@fabvlvs
Copy link
Author

fabvlvs commented Jul 12, 2014

Yeah I keep getting blocked by the spam filter. Then I tried again and something else went wrong. I'm out of town until 15-7.

Sent from a phone

On Jul 12, 2014, at 8:18 AM, Jeremy Davis [email protected] wrote:

@fabvlvs Did you post on the forums? I couldn't see it...


Reply to this email directly or view it on GitHub.

@fabvlvs
Copy link
Author

fabvlvs commented Jul 31, 2014

Ok so there was a bug in tkldev (or its documentation), and they know about it, now. You have to build core first. Using the workaround I was able to build rails app. Still not able to build foodsoft, though. Same error.

@lirazsiri
Copy link
Contributor

FWIW, I traced the Core issue to a bug in common/ and committed a fix:

turnkeylinux/common@e28b297

But, this only takes effect on newly built TKLDev images, so I also
commmited a fix to TKLDev's setup script to grab Core automatically and
a reference in the documentation to download the setup script and run it
so you don't have to do that by hand.

On 31/07/14 07:00, fabvlvs wrote:

Ok so there was a bug in tkldev (or its documentation), and they know about it, now. You have to build core first. Using the workaround I was able to build rails app. Still not able to build foodsoft, though. Same error.


Reply to this email directly or view it on GitHub:
#1 (comment)

@fabvlvs
Copy link
Author

fabvlvs commented Aug 3, 2014

thanks. Okay, Starting fresh.
...
the setup script did this:
HTTP request sent, awaiting response... 503 backend read error
2014-08-03 17:22:40 ERROR 503: backend read error.
...
scratch that. A little later, the script downloads. Continuing...

@fabvlvs
Copy link
Author

fabvlvs commented Aug 3, 2014

fails with same error. I had not noticed the 'df: Warning: cannot read table of mounted file systems'

+++ ls -d /var/lib/gems/1.9.1/gems/passenger-4.0.48
++ echo /var/lib/gems/1.9.1/gems/passenger-4.0.48

  • PASSENGER_ROOT=/var/lib/gems/1.9.1/gems/passenger-4.0.48
  • sed -i 's|PASSENGER_ROOT|/var/lib/gems/1.9.1/gems/passenger-4.0.48|g' /etc/apache2/conf.d/passenger
  • MYSQL_BATCH='mysql --user=root --password= --batch'
  • MYSQL_ADMIN='mysqladmin --user=root --password='
  • /etc/init.d/mysql start
    df: Warning: cannot read table of mounted file systems: No such file or directory
    [ ok ] Starting MySQL database server: mysqld . ..
    [info] Checking for tables which need an upgrade, are corrupt or were
    not closed cleanly..
    '+ for DB_ENV in test development production
  • DB_NAME=turnkeylinux-foodsoft_test
  • mysqladmin --user=root --password= create turnkeylinux-foodsoft_test --default-character-set=utf8
  • mysql --user=root --password= --batch --execute 'grant all privileges on turnkeylinux-foodsoft_test.* to turnkeylinux-foodsoft@localhost identified by '''7d9262e15e3c980e1e0b0c0ef4a9132d'''; flush privileges;'
    ERROR 1046 (3D000) at line 1: No database selected
    make: *** [build/stamps/root.patched] Error 1'

JedMeister added a commit to JedMeister/foodsoft that referenced this issue Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants