mysql xenial install hook fails (-su: ./install: /usr/bin/python: bad interpreter: No such file or directory)

Bug #1551045 reported by Ryan Beisner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql (Juju Charms Collection)
Fix Released
High
James Page

Bug Description

mysql xenial install hook fails (-su: ./install: /usr/bin/python: bad interpreter: No such file or directory)

The mysql charm needs a pre-install hook to install python, similar to what was done @ the mongodb charm:
https://code.launchpad.net/~james-page/charms/trusty/mongodb/forward-compat-xenial/+merge/287312

2016-02-29 00:25:00 ERROR juju.worker.uniter.operation runhook.go:107 hook "install" failed: fork/exec /var/lib/juju/agents/unit-mysql-0/charm/hooks/install: no such file or directory

root@juju-beis0-machine-2:/var/lib/juju/agents/unit-mysql-0/charm/hooks# ls -1 /usr/bin/python*
/usr/bin/python3
/usr/bin/python3.5
/usr/bin/python3.5m
/usr/bin/python3-jsondiff
/usr/bin/python3-jsonpatch
/usr/bin/python3-jsonpointer
/usr/bin/python3m

Tags: uosci

Related branches

Ryan Beisner (1chb1n)
Changed in mysql (Juju Charms Collection):
status: New → In Progress
importance: Undecided → High
assignee: nobody → James Page (james-page)
Revision history for this message
Marco Ceppi (marcoceppi) wrote : Re: [Bug 1551045] [NEW] mysql xenial install hook fails (-su: ./install: /usr/bin/python: bad interpreter: No such file or directory)

I would prefer to make the MySQL charm Python3 compatible. Same with MongoDB

On Sun, Feb 28, 2016 at 7:45 PM Ryan Beisner <email address hidden>
wrote:

> Public bug reported:
>
> mysql xenial install hook fails (-su: ./install: /usr/bin/python: bad
> interpreter: No such file or directory)
>
> The mysql charm needs a pre-install hook to install python, similar to
> what was done @ the mongodb charm:
>
> https://code.launchpad.net/~james-page/charms/trusty/mongodb/forward-compat-xenial/+merge/287312
>
> 2016-02-29 00:25:00 ERROR juju.worker.uniter.operation runhook.go:107
> hook "install" failed: fork/exec /var/lib/juju/agents/unit-
> mysql-0/charm/hooks/install: no such file or directory
>
> root@juju-beis0-machine-2:/var/lib/juju/agents/unit-mysql-0/charm/hooks#
> ls -1 /usr/bin/python*
> /usr/bin/python3
> /usr/bin/python3.5
> /usr/bin/python3.5m
> /usr/bin/python3-jsondiff
> /usr/bin/python3-jsonpatch
> /usr/bin/python3-jsonpointer
> /usr/bin/python3m
>
> ** Affects: mysql (Juju Charms Collection)
> Importance: High
> Assignee: James Page (james-page)
> Status: In Progress
>
>
> ** Tags: uosci
>
> ** Branch linked: lp:~james-page/charms/trusty/mysql/forward-compat-
> xenial
>
> ** Changed in: mysql (Juju Charms Collection)
> Status: New => In Progress
>
> ** Changed in: mysql (Juju Charms Collection)
> Importance: Undecided => High
>
> ** Changed in: mysql (Juju Charms Collection)
> Assignee: (unassigned) => James Page (james-page)
>
> --
> You received this bug notification because you are subscribed to mysql
> in Juju Charms Collection.
> Matching subscriptions: MySQL-Charm
> https://bugs.launchpad.net/bugs/1551045
>
> Title:
> mysql xenial install hook fails (-su: ./install: /usr/bin/python: bad
> interpreter: No such file or directory)
>
> Status in mysql package in Juju Charms Collection:
> In Progress
>
> Bug description:
> mysql xenial install hook fails (-su: ./install: /usr/bin/python: bad
> interpreter: No such file or directory)
>
> The mysql charm needs a pre-install hook to install python, similar to
> what was done @ the mongodb charm:
>
> https://code.launchpad.net/~james-page/charms/trusty/mongodb/forward-compat-xenial/+merge/287312
>
> 2016-02-29 00:25:00 ERROR juju.worker.uniter.operation runhook.go:107
> hook "install" failed: fork/exec /var/lib/juju/agents/unit-
> mysql-0/charm/hooks/install: no such file or directory
>
> root@juju-beis0-machine-2:/var/lib/juju/agents/unit-mysql-0/charm/hooks#
> ls -1 /usr/bin/python*
> /usr/bin/python3
> /usr/bin/python3.5
> /usr/bin/python3.5m
> /usr/bin/python3-jsondiff
> /usr/bin/python3-jsonpatch
> /usr/bin/python3-jsonpointer
> /usr/bin/python3m
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/charms/+source/mysql/+bug/1551045/+subscriptions
>

Revision history for this message
James Page (james-page) wrote :

Marco

My current proposal un-wedges all of our Xenial testing; py3 would be great as well, but if we can maintain a charm that supports both cases that would be awesome.

Revision history for this message
Ryan Beisner (1chb1n) wrote :

+1 on this work-around and the mongodb change to un-wedge xenial. It's not deployable at all after the python27 removal in xenial-dev, and that blocks a lot of other things that are inter-related on mysql and mongodb.

James Page (james-page)
Changed in mysql (Juju Charms Collection):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.