disapora-installer not installable on Disco

Bug #1828194 reported by Christian Ehrhardt 
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diaspora-installer (Debian)
Fix Released
Unknown
diaspora-installer (Ubuntu)
Fix Released
Undecided
Unassigned
Disco
Fix Released
Undecided
Unassigned
Eoan
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 * Without the fix diaspora-installer is uninstallable on Disco

 * backport a Debian fix (in Eoan already) to use the system bundler
   https://salsa.debian.org/ruby-team/diaspora-installer/commit/80dc2fd5

 * This blocks proposed migrations as it worked in the past, see
   http://autopkgtest.ubuntu.com/packages/diaspora-installer/disco/amd64

[Test Case]

 * Take Disco system (e.g. lxd container, multipass, uvtool)

 * Install diaspora-installer
   sudo DEBIAN_FRONTEND=noninteractive apt --assume-yes -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' install diaspora-installer

[Regression Potential]

 * Without the fix it is not working at all, I don't see how it can
   regress much further. In theory if one installed it in the past and
   upgraded then the new change will "pull in" ruby-bundler which - if
   that is a problem for anything - would trigger those.

[Other Info]

 * Found while preparing a postgres MRE in bug 1828012 as it would block
   this from migrating.

---

This seems to be a continuation of bug 1717801 and bug 1732520.
Looking at these past bugs the issues seem to come and go with slightly changing symptoms, maybe due to upstream changes e.g. on ruby gems and such - also the main installer is fetched externally.

The current state seems to be ok in all releases except Disco.
There it fails and that blocks other package e.g. the migration of postgresql in Disco.
(This was found analyzing test errors for bug 1828012)

Note - nothing else holds it in the Distribution:
$ reverse-depends src:diaspora-installer -r eoan
No reverse dependencies found

Note: test needs >=2G Memory.

But I found that installing the version from Eoan 0.7.6.1+debian1 in Disco works.
Check out https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919978 for the bug discussions.

Example from Disco:
ubuntu@disco-dia1:~$ sudo DEBIAN_FRONTEND=noninteractive apt --assume-yes -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' install diaspora-installer
[...]
/usr/lib/diaspora-common/scripts/initdb.sh: 15: /usr/lib/diaspora-common/scripts/initdb.sh: bundle: not found
Checking if the database is empty...
Initializing database...
Database 'diaspora_production' already exists
rake aborted!
Errno::EACCES: Permission denied @ rb_sysopen - /usr/share/diaspora/config/initializers/secret_token.rb
/usr/share/diaspora/lib/tasks/generate_session_secret.rake:8:in `initialize'
/usr/share/diaspora/lib/tasks/generate_session_secret.rake:8:in `open'
/usr/share/diaspora/lib/tasks/generate_session_secret.rake:8:in `block (2 levels) in <top (required)>'
Tasks: TOP => generate:secret_token
(See full trace by running task with --trace)
rake aborted!
LoadError: cannot load such file --

Related branches

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: RM: disapora-installer - re-discussion - not installable in Disco/Eoan
Download full text (4.0 KiB)

Also affects Eoan

Setting up diaspora-common (0.7.6.1+debian1) ...
Creating/updating diaspora user account...
dbconfig-common: writing config to /etc/dbconfig-common/diaspora-common.conf

Creating config file /etc/dbconfig-common/diaspora-common.conf with new version
creating postgres user diaspora: success.
verifying creation of user: success.
creating database diaspora_production: success.
verifying database diaspora_production exists: success.
dbconfig-common: flushing administrative password
SSL enabled, configuring nginx for localhost...

Creating config file /etc/nginx/sites-available/diaspora with new version
Services List

Make diaspora user owner of diaspora_production database...
ALTER DATABASE
Allow diaspora user to create databases...
ALTER ROLE
Grant all privileges to diaspora user...
GRANT
Registering /etc/diaspora.conf via ucf

Creating config file /etc/diaspora.conf with new version

Creating config file /etc/diaspora/database.yml with new version
Processing triggers for mime-support (3.62ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.60.0-1) ...
No schema files found: doing nothing.
Processing triggers for libc-bin (2.29-0ubuntu2) ...
Processing triggers for rsyslog (8.1901.0-1ubuntu1) ...
Processing triggers for ufw (0.36-1ubuntu1) ...
Processing triggers for systemd (240-6ubuntu5) ...
Processing triggers for man-db (2.8.5-2) ...
Setting up libgdk-pixbuf2.0-dev:amd64 (2.38.1+dfsg-1) ...
Setting up libcairo2-dev:amd64 (1.16.0-4) ...
Processing triggers for install-info (6.5.0.dfsg.1-5) ...
Setting up librsvg2-dev:amd64 (2.44.10-2.1) ...
Setting up libmagickcore-6.q16-dev:amd64 (8:6.9.10.23+dfsg-2ubuntu2) ...
Setting up libmagickwand-6.q16-dev:amd64 (8:6.9.10.23+dfsg-2ubuntu2) ...
Setting up libmagickwand-dev (8:6.9.10.23+dfsg-2ubuntu2) ...
Setting up diaspora-installer (0.7.6.1+debian1) ...
Download diaspora tarball version 0.7.6.0 from github.com...
--2019-05-08 09:03:43-- https://github.com/diaspora/diaspora/archive/v0.7.6.0.tar.gz
Resolving github.com (github.com)... 192.30.253.112
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/diaspora/diaspora/tar.gz/v0.7.6.0 [following]
--2019-05-08 09:03:44-- https://codeload.github.com/diaspora/diaspora/tar.gz/v0.7.6.0
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/var/cache/diaspora-installer/diaspora-0.7.6.0.tar.gz’

/var/cache/diaspora-installer/diaspora-0.7.6.0. [ <=> ] 2.71M 778KB/s in 3.6s

2019-05-08 09:03:48 (778 KB/s) - ‘/var/cache/diaspora-installer/diaspora-0.7.6.0.tar.gz’ saved [2845165]

Checking integrity of download...
/var/cache/diaspora-installer/diaspora-0.7.6.0.tar.gz: OK
Extracting files...
Copying files to /usr/share/diaspora...
diaspora archive to copy: diaspora-0.7.6.0
Copying source tarball to /var/lib/diaspora/pub...

Read more...

summary: - RM: disapora-installer - not installable
+ RM: disapora-installer - re-discussion - not installable in Disco/Eoan
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hrm, the test results on autopkgtest suggest that this should be good in all but Disco.
At least in Eoan since diaspora-installer/0.7.6.1+debian which changed the bundler.

Maybe the VM tests are just too small (OOM killer or such)?

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Ha, now things make much more sense and local testing matches more what I see on autopkgtest.
It fails only on Disco and there in regard to the Yard gem.

summary: - RM: disapora-installer - re-discussion - not installable in Disco/Eoan
+ disapora-installer not installable on Disco
description: updated
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Differentiating Eoan and Disco which are on the same upstream version but with changes to the bundler also hint to the problem.

In the log, after the Yard message is displayed we have

Eoan (good):
Checking if the database is empty...
Initializing database...
Database 'diaspora_production' already exists
Rack::SSL is enabled
== 0 CreateSchema: migrating
-- adapter_name()
[...]

Disco (bad):
/usr/lib/diaspora-common/scripts/initdb.sh: 15: /usr/lib/diaspora-common/scripts/initdb.sh: bundle: not found
Checking if the database is empty...
Initializing database...
Database 'diaspora_production' already exists
rake aborted!
Errno::EACCES: Permission denied @ rb_sysopen - /usr/share/diaspora/config/initializers/secret_token.rb
[...]

So after all this might indicate that Disco needs the fix that Eoan has already.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Installing the version from Eoan 0.7.6.1+debian1 in Disco works.

Check out https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919978

description: updated
Changed in diaspora-installer (Ubuntu Eoan):
status: New → Fix Released
Changed in diaspora-installer (Ubuntu Disco):
status: New → Confirmed
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This is Debian native it seems, but versioning works the usual way, all these are good:
# old D->E Upgrade
$ dpkg --compare-versions 0.7.6.1build1 lt-nl 0.7.6.1+debian1
# new upgrade D -> D-updated
$ dpkg --compare-versions 0.7.6.1build1 lt-nl 0.7.6.1ubuntu0.1
# new upgrade D-updated -> E
$ dpkg --compare-versions 0.7.6.1ubuntu0.1 lt-nl 0.7.6.1+debian1

Test builds in PPA:
 https://launchpad.net/~paelzer/+archive/ubuntu/lp-1828194-fix-diaspora-installability

description: updated
description: updated
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Tests against the PPA worked successfuly.
Pre-verification is complete.

MP is up here: https://code.launchpad.net/~paelzer/+git/diaspora-installer/+merge/367093
Once an ack is there we can upload it to disco-unapproved

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

MP approved, uploaded for the SRU Team to consider

Changed in diaspora-installer (Ubuntu Disco):
status: Confirmed → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Christian, or anyone else affected,

Accepted diaspora-installer into disco-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/diaspora-installer/0.7.6.1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-disco to verification-done-disco. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-disco. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in diaspora-installer (Ubuntu Disco):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-disco
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Download full text (88.2 KiB)

Enabled proposed on a fresh Disco VM

That gave me
ubuntu@disco-dia-testproposed:~$ apt-cache policy diaspora-installer
diaspora-installer:
  Installed: (none)
  Candidate: 0.7.6.1ubuntu0.1
  Version table:
     0.7.6.1ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu disco-proposed/universe amd64 Packages
     0.7.6.1build1 500
        500 http://archive.ubuntu.com/ubuntu disco/universe amd64 Package

Installing that now works.
Thanks, setting verified.

Here the install log as reference:
Setting up diaspora-installer (0.7.6.1ubuntu0.1) ...
Download diaspora tarball version 0.7.6.0 from github.com...
--2019-05-09 06:22:52-- https://github.com/diaspora/diaspora/archive/v0.7.6.0.tar.gz
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/diaspora/diaspora/tar.gz/v0.7.6.0 [following]
--2019-05-09 06:22:52-- https://codeload.github.com/diaspora/diaspora/tar.gz/v0.7.6.0
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/var/cache/diaspora-installer/diaspora-0.7.6.0.tar.gz’

/var/cache/diaspora-installer/diaspora-0.7.6.0. [ <=> ] 2.71M 1.27MB/s in 2.1s

2019-05-09 06:22:55 (1.27 MB/s) - ‘/var/cache/diaspora-installer/diaspora-0.7.6.0.tar.gz’ saved [2845165]

Checking integrity of download...
/var/cache/diaspora-installer/diaspora-0.7.6.0.tar.gz: OK
Extracting files...
Copying files to /usr/share/diaspora...
diaspora archive to copy: diaspora-0.7.6.0
Copying source tarball to /var/lib/diaspora/public...
Setting up environment varibales...
Using /etc/diaspora.conf...
export DB_NAME=diaspora_production
Using system bundler...
Installing gems with rubygems ...
Fetching gem metadata from https://rails-assets.org/....
Fetching gem metadata from https://rails-assets.org/..
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rails-assets.org/..
Fetching gem metadata from https://rails-assets.org/...
Fetching gem metadata from https://rubygems.org/...
Fetching gem metadata from https://rails-assets.org/..
Fetching gem metadata from https://rails-assets.org/...
Fetching gem metadata from https://rubygems.org/...
Resolving dependencies...............
Fetching rake 12.3.2
Installing rake 12.3.2
Fetching concurrent-ruby 1.1.5
Installing concurrent-ruby 1.1.5
Fetching i18n 1.6.0
Installing i18n 1.6.0
Fetching minitest 5.11.3
Installing minitest 5.11.3
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching activesupport 5.1.6
Installing activesupport 5.1.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.8.0
Installing erubi 1.8.0
Fetching mini_portile2 2.3.0
Installing mini_portile2 2.3.0
Fetching nokogiri 1.8.2
Installing nokogiri 1.8.2 with native extensions
Fetching rai...

tags: added: verification-done verification-done-disco
removed: verification-needed verification-needed-disco
Changed in diaspora-installer (Debian):
status: Unknown → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Thank you for preparing and testing the package Christian! The autopkgtests for one architecture seem to be failing though:

http://autopkgtest.ubuntu.com/packages/d/diaspora-installer/disco/ppc64el

Sure, it's still better than being broken as previously, but before releasing the package I just wanted you to take a quick look and see if maybe there isn't anything missing etc. Anyway, I'm generally +1 on getting this out, just wanted to touch base before proceeding.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I have looked into that, but found no "easy" clou how to resolve this.
It is the same on Eoan btw, so it just generally faily on PPC64 it seems.

Given that it is universe-only I'm not sure we will do much more for it.

But please proceed to fix it in Disco as much as we can do for now.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package diaspora-installer - 0.7.6.1ubuntu0.1

---------------
diaspora-installer (0.7.6.1ubuntu0.1) disco; urgency=medium

  * Use system bundler (LP: #1828194)
    Thanks to Pirate Praveen for the fix in Debian 919978

 -- Christian Ehrhardt <email address hidden> Wed, 08 May 2019 12:07:02 +0200

Changed in diaspora-installer (Ubuntu Disco):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for diaspora-installer has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.