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

Problems using MariaDB #225

Closed
nonsenz opened this issue Mar 20, 2014 · 22 comments
Closed

Problems using MariaDB #225

nonsenz opened this issue Mar 20, 2014 · 22 comments

Comments

@nonsenz
Copy link

nonsenz commented Mar 20, 2014

hi and thanks for vaprobash.
i'm new to vaprobash and wanted to try it with mariadb instead of mysql. After including

config.vm.provision "shell", path: "https://raw.github.com/#{github_username}/#{github_repo}/#{github_branch}/scripts/mariadb.sh", args: [mariadb_root_password, mariadb_version]

in the Vagrantfile and running vagrant up i receive the following error:

Setting up mariadb-server-10.0 (10.0.9+maria-1~precise) ...
 * Stopping MariaDB database server mysqld
   ...done.
dpkg: error processing mariadb-server-10.0 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
 mariadb-server depends on mariadb-server-10.0 (= 10.0.9+maria-1~precise); however:
  Package mariadb-server-10.0 is not configured yet.
dpkg: error processing mariadb-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 mariadb-server-10.0
 mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

any idea whats wrong here? Have i missed something? I changed the syncing mode to rsync, but i don't see a connection:

 config.vm.synced_folder ".", "/vagrant",
      type: "rsync",
      rsync__exclude: ".git/",
      rsync__auto: true
@fideloper
Copy link
Owner

Hmmm a dependency issue (Looks like a dependency failed to install
correctly ) . It's either gonna work if you try again or something needs to
get installed as well.

Let me know if this consistently happens (on a fresh vagrant server), and
I'll take a look myself as well.

On Thursday, March 20, 2014, Sascha Kranz notifications@github.com wrote:

hi and thanks for vaprobash.
i'm new to vaprobash and wanted to try it with mariadb instead of mysql.
After including

config.vm.provision "shell", path: "https://raw.github.com/#{github_username}/#{github_repo}/#{github_branch}/scripts/mariadb.sh", args: [mariadb_root_password, mariadb_version]

in the Vagrantfile and running vagrant up i receive the following error:

Setting up mariadb-server-10.0 (10.0.9+maria-1~precise) ...

  • Stopping MariaDB database server mysqld
    ...done.
    dpkg: error processing mariadb-server-10.0 (--configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of mariadb-server:
    mariadb-server depends on mariadb-server-10.0 (= 10.0.9+maria-1~precise); however:
    Package mariadb-server-10.0 is not configured yet.
    dpkg: error processing mariadb-server (--configure):
    dependency problems - leaving unconfigured
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    No apport report written because the error message indicates its a followup error from a previous failure.
    Errors were encountered while processing:
    mariadb-server-10.0
    mariadb-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)

any idea whats wrong here? Have i missed something? I changed the syncing
mode to rsync, but i don't see a connection:

config.vm.synced_folder ".", "/vagrant",
type: "rsync",
rsync__exclude: ".git/",
rsync__auto: true

Reply to this email directly or view it on GitHubhttps://github.com//issues/225
.

@nonsenz
Copy link
Author

nonsenz commented Mar 20, 2014

I tried again using "vagrant provision" a second time with no luck. After that I tried a vagrant destroy and vagrant up with the same result.

@fideloper
Copy link
Owner

Thanks! Taking a look.

@fideloper
Copy link
Owner

Well, I have good news and bad news. The good news is that it worked for me. That bad news is that it worked for me, and I don't know what happened in your case. Can you show me your Vagrantfile?

@nonsenz
Copy link
Author

nonsenz commented Mar 20, 2014

I love good news!
Here is my Vagrantfile: https://gist.github.com/nonsenz/88981eac8e65d3de7195 Maybe I messed something up.

@Ilyes512
Copy link
Contributor

The only changes that could matter are the rsync and the ip adres change. Could you try it out with the original ip adres?

@fideloper
Copy link
Owner

That'd be annoying. I don't think that should affect the error being seen
tho. I'm hoping it was something temporary.

I would also try to delete your computers base precise64 box and
re-download it (or perhaps I should do mine, since mine is a bit older now).

On Fri, Mar 21, 2014 at 10:58 AM, Ilyes notifications@github.com wrote:

The only changes that could matter are the rsync and the ip adres change.
Could you try it out with the original ip adres?

Reply to this email directly or view it on GitHubhttps://github.com//issues/225#issuecomment-38283751
.

@Ilyes512
Copy link
Contributor

Hmm, I actually just got the same exact error:

Stderr from the command:

gpg: requesting key 1BB943DB from hkp server keyserver.ubuntu.com
gpg: key 1BB943DB: public key "MariaDB Package Signing Key <package-signing-key@mariadb.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1
dpkg-preconfigure: unable to re-open stdin: No such file or directory
 * Stopping MariaDB database server mysqld
   ...done.
dpkg: error processing mariadb-server-10.0 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
 mariadb-server depends on mariadb-server-10.0 (= 10.0.9+maria-1~precise); however:
  Package mariadb-server-10.0 is not configured yet.
dpkg: error processing mariadb-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 mariadb-server-10.0
 mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

@fideloper
Copy link
Owner

Thanks for testing this out! I wonder what's different between our setups.

I likely need to delete and get the latest precise64 box, mine's been
around forever.

Not being able to add the public key for the right package seems to be the
issue in any case:

gpg: requesting key 1BB943DB from hkp server keyserver.ubuntu.com

gpg: key 1BB943DB: public key "MariaDB Package Signing Key
<package-signing-key@mariadb.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1
dpkg-preconfigure: unable to re-open stdin: No such file or directory

On Fri, Mar 21, 2014 at 11:20 AM, Ilyes notifications@github.com wrote:

Hmm, I actually just got the same exact error:

Stderr from the command:

gpg: requesting key 1BB943DB from hkp server keyserver.ubuntu.com
gpg: key 1BB943DB: public key "MariaDB Package Signing Key package-signing-key@mariadb.org" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
dpkg-preconfigure: unable to re-open stdin: No such file or directory

  • Stopping MariaDB database server mysqld
    ...done.
    dpkg: error processing mariadb-server-10.0 (--configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of mariadb-server:
    mariadb-server depends on mariadb-server-10.0 (= 10.0.9+maria-1~precise); however:
    Package mariadb-server-10.0 is not configured yet.
    dpkg: error processing mariadb-server (--configure):
    dependency problems - leaving unconfigured
    No apport report written because the error message indicates its a followup error from a previous failure.
    Errors were encountered while processing:
    mariadb-server-10.0
    mariadb-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply to this email directly or view it on GitHubhttps://github.com//issues/225#issuecomment-38286365
.

@Ilyes512
Copy link
Contributor

I notice that the script is executed again after the first trail:

 * Stopping MariaDB database server mysqld
   ...done.
dpkg: error processing mariadb-server-10.0 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
 mariadb-server depends on mariadb-server-10.0 (= 10.0.9+maria-1~precise); however:
  Package mariadb-server-10.0 is not configured yet.
dpkg: error processing mariadb-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 mariadb-server-10.0
 mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell "root" "10.0"

Stdout from the command:

>>> Installing MariaDB
... Tries it again and then it will show the message I and nonsenz posted 

edit:
Ok, I just tried it manually with the mariadb.sh script commented and I got the same error.

edit2:
I think I get the same thing when I try to install Mysql 5.6 (default is 5.5!). Can someone confirm this?

@nonsenz
Copy link
Author

nonsenz commented Mar 24, 2014

I tried to reinstall it like this with the same result:

$ apt-get purge mysql* mariadb*

The following packages will be REMOVED:
  libdbd-mysql-perl* libmariadbclient18* libmysqlclient18* mariadb-client-10.0* mariadb-client-core-10.0* mariadb-common* mariadb-server* mariadb-server-10.0* mariadb-server-core-10.0* mysql-common* php5-mysql*
...

$ apt-get install mariadb-server

dpkg: error processing mariadb-server-10.0 (--configure):

@Ilyes512
Copy link
Contributor

I tried that as well. I also posted a question on askubuntu about this issue. No responses yet :/

@byte
Copy link

byte commented Mar 29, 2014

Can you try:
sudo add-apt-repository -y "deb http://mirrors.supportex.net/mariadb/repo/$MARIADB_VERSION/ubuntu precise main"
sudo apt-get install -y mariadb-server

If that fails, can you please report a bug at http://mariadb.org/jira

We're prepping 10.0.10, so we need to make sure that it installs with ease. Thanks

@fideloper
Copy link
Owner

Hey @byte - These lines in the install script are still correct (for 12.04 Precise, right )?

Looks like it according to the MariaDB docs. Personally I haven't run into these issues, so the error could be something else.

@Ilyes512
Copy link
Contributor

@byte I have done that manually as well but with updating it apt-get update before installing. It gave me the same result. I haven't recently tried it again, but will do that later today once I am home.

@Ilyes512
Copy link
Contributor

Strange, but it seems to work again using the script as is. I have installed mariadb 10.0 twice successfully and also installed 5.5 successfully.

Can someone who had problems with installing mariadb try it again and report if it works again or not.

@nonsenz
Copy link
Author

nonsenz commented Mar 31, 2014

I tried it with vagrant destroy and vagrant up and ran into the old error. After that i tried

$ apt-get purge mysql* mariadb*
$ apt-get install mariadb-server

resulting in the same error. After that i tried:

$ apt-get purge mysql* mariadb*
$ add-apt-repository -y "deb http://mirrors.supportex.net/mariadb/repo/10.0/ubuntu precise main"
$ apt-get install -y mariadb-server

resulting in the same error. What i did not mention before are the perl locale errors every now and then:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TIME = "de_DE.UTF-8",
    LC_MONETARY = "de_DE.UTF-8",
    LC_ADDRESS = "de_DE.UTF-8",
    LC_TELEPHONE = "de_DE.UTF-8",
    LC_NAME = "de_DE.UTF-8",
    LC_MEASUREMENT = "de_DE.UTF-8",
    LC_IDENTIFICATION = "de_DE.UTF-8",
    LC_NUMERIC = "de_DE.UTF-8",
    LC_PAPER = "de_DE.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Don't know if these could have some evil sideeffects.

@ynaguib
Copy link

ynaguib commented Apr 14, 2014

I had the exact same problem today. I endup doing the following, and it worked:
apt-get purge mysql* mariadb*
apt-get install mariadb-client-10.0
apt-get install mariadb-server-10.0

hth

@Battant
Copy link

Battant commented Apr 11, 2016

Hello,

After upgrade from ubuntu 14.04 LTS to ubuntu 15,10, I get this error when I try to install mariadb

Failed to start mysql.service: Unit mysql.service failed to load: No such file or directory.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mariadb-server-10.0 (--configure):
subprocess installed post-installation script returned error exit status 6
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-10.0 (>= 10.0.23-0ubuntu0.15.10.1); however:
Package mariadb-server-10.0 is not configured yet.

dpkg: error processing package mariadb-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mariadb-server-10.0
mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
mparchet@mparchet-W240EU-W250EUQ-W270EUQ:/media/mparchet/Sav_linux$ cleare
No command 'cleare' found, did you mean:
Command 'clear' from package 'ncurses-bin' (main)
cleare: command not found
mparchet@mparchet-W240EU-W250EUQ-W270EUQ:/media/mparchet/Sav_linux$ clear

mparchet@mparchet-W240EU-W250EUQ-W270EUQ:/media/mparchet/Sav_linux$ sudo apt-get install mariadb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mariadb-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up mariadb-server-10.0 (10.0.23-0ubuntu0.15.10.1) ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
160411 12:38:32 [Note] /usr/sbin/mysqld (mysqld 10.0.23-MariaDB-0ubuntu0.15.10.1) starting as process 9262 ...
Failed to start mysql.service: Unit mysql.service failed to load: No such file or directory.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mariadb-server-10.0 (--configure):
subprocess installed post-installation script returned error exit status 6
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-10.0 (>= 10.0.23-0ubuntu0.15.10.1); however:
Package mariadb-server-10.0 is not configured yet.

dpkg: error processing package mariadb-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mariadb-server-10.0
mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Could you help me please ?

Best regarda

Battant

@fideloper
Copy link
Owner

Howdy!
Sorry for the delay, you might have resolved this already.

Things in vaprobash are only tested against 14.04. A lot of the repositories are specific to Ubuntu Trusty (14.04).

MariaDB on 15.04/15.10 needs a different repository added. YOu can use their wizard to see the commands to run here:
https://downloads.mariadb.org/mariadb/repositories/#mirror=accretive&distro=Ubuntu&distro_release=wily--ubuntu_wily&version=10.1

Note that the add-apt-repository is adding a repository for "wily" instead of "trusty". These all go by the ubuntu release code names rather than a numeric release - Trusty for 14.04, Vivid for 15.04, Wily for 15.10.

@fideloper
Copy link
Owner

That was to @Battant, since I didn't mention you in previous response.

@silentvick
Copy link

Hello

Although I didn't use the Vaprobash, I had the same problem with MariaDB (10.0.24) in ubuntu/trusty box (came across this issue through google). Just wanted to share that I managed to resolve it just by switching to phusion/ubuntu-14.04-amd64 box.

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

7 participants