Docker version 17.05.0-ce deprecated, recommend upgrade to 17.06.2 or newer


(Miguel) #1

Hi!

I am updating my Discourse.

I received this message:

23

I try to do that, but this appears to me:

00

Any solution?

Thanks!


(Gerhard Schlager) #2

Depends on your Linux distribution. For Ubuntu it would be Get Docker CE for Ubuntu | Docker Documentation


(Miguel) #3

I have Discourse installed on DigitalOcean.


(Rafael dos Santos Silva) #4

That is just a warning. Not the cause of the error.

As said in the message, PLEASE SCROLL UP AND LOOK FOR EARLIER ERROR MESSAGES.

Sounds like you it’s related to the PostgreSQL upgrade.


(Andrew Waugh) #5

Latest will definitely run on 17.05.0-ce (I’m running it on a test machine).


(Jay Pfaffman) #6

You can get the logs saved in a file by running

git pull
./discourse-doctor

(Miguel) #8

Sorry for the delay, I did not get the notification.

This is what I get:

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-58-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Fri Aug 17 12:09:26 EDT 2018

  System load:  1.28               Processes:              117
  Usage of /:   94.9% of 58.93GB   Users logged in:        1
  Memory usage: 18%                IP address for eth0:    159.203.123.246
  Swap usage:   0%                 IP address for docker0: 172.17.42.1

  => / is using 94.9% of 58.93GB

  Graph this data and manage this system at:
    https://landscape.canonical.com/

114 packages can be updated.
89 updates are security updates.

New release '16.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Fri Aug 17 12:09:27 2018 from 84.pool80-103-136.dynamic.orange.es
root@forowikitetas:~# git pull
fatal: Not a git repository (or any of the parent directories): .git
root@forowikitetas:~# ./discourse-doctor
-bash: ./discourse-doctor: No such file or directory
root@forowikitetas:~# cd /var/discourse
root@forowikitetas:/var/discourse# git pull
remote: Counting objects: 33, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 33 (delta 23), reused 21 (delta 13), pack-reused 0
Unpacking objects: 100% (33/33), done.
From https://github.com/discourse/discourse_docker
   d032356..5c190b1  master     -> origin/master
Updating d032356..5c190b1
Fast-forward
 discourse-doctor                |   2 +-
 image/README.md                 |  18 ++++------------
 image/base/Dockerfile           |   8 ++++++-
 image/base/thpoff.c             |  39 ++++++++++++++++++++++++++++++++++
 image/build.rb                  | 100 --------------------------------------------------------------------------------------
 launcher                        |   2 +-
 templates/postgres.template.yml |   2 +-
 templates/redis.template.yml    |   2 +-
 templates/web.template.yml      |   3 ++-
 9 files changed, 56 insertions(+), 120 deletions(-)
 create mode 100644 image/base/thpoff.c
 delete mode 100644 image/build.rb
root@forowikitetas:/var/discourse# ./discourse-doctor
DISCOURSE DOCTOR Thu Aug 23 14:05:31 EDT 2018
OS: Linux forowikitetas 3.13.0-58-generic #97-Ubuntu SMP Wed Jul 8 02:56:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


Found containers/app.yml

==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=wikitetasforo.com
SMTP_ADDRESS=in-v3.mailjet.com # (mandatory)
DEVELOPER_EMAILS=wikitetas@gmail.com
SMTP_PASSWORD=* # (optional, WARNING the char '#' in pw can cause problems!)
SMTP_PORT=587 # (optional)
SMTP_USER_NAME=
LETSENCRYPT_ACCOUNT_EMAIL=

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 17.05.0-ce, build 89658be

DOCKER PROCESSES (docker ps -a)

CONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS              PORTS                                      NAMES
48951d88d2c5        local_discourse/app   "/sbin/boot"        6 months ago        Up 3 weeks          0.0.0.0:80->80/tcp, 0.0.0.0:2222->22/tcp   app

48951d88d2c5        local_discourse/app   "/sbin/boot"        6 months ago        Up 3 weeks          0.0.0.0:80->80/tcp, 0.0.0.0:2222->22/tcp   app

Discourse container app is running


==================== PLUGINS ====================
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-canned-replies.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git

No non-official plugins detected.

See https://github.com/discourse/discourse/blob/master/lib/plugin/metadata.rb for the official list.

========================================
Discourse version at wikitetasforo.com: Discourse 2.1.0.beta1 
Discourse version at localhost: Discourse 2.1.0.beta1 


==================== MEMORY INFORMATION ====================
RAM (MB): 4048

             total       used       free     shared    buffers     cached
Mem:          3953       3761        191        277         40       1912
-/+ buffers/cache:       1808       2144
Swap:            0          0          0

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem                 Size  Used Avail Use% Mounted on
/dev/disk/by-label/DOROOT   59G   45G   12G  80% /
/dev/disk/by-label/DOROOT   59G   45G   12G  80% /var/lib/docker/aufs
/dev/disk/by-label/DOROOT   59G   45G   12G  80% /

---------- Container Disk Space ----------
unknown shorthand flag: 'w' in -w
See 'docker exec --help'.


==================== DISK INFORMATION ====================

WARNING: GPT (GUID Partition Table) detected on '/dev/vda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/vda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1               1   125829119    62914559+  ee  GPT

==================== END DISK INFORMATION ====================

==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Or just send a test message to yourself.
Email address for mail test? ('n' to skip) [wikitetas@gmail.com]: wikitetas@gmail.com
Sending mail to wikitetas@gmail.com. . . 
unknown shorthand flag: 'w' in -w
See 'docker exec --help'.

Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to

==================== DONE! ====================
unknown shorthand flag: 'w' in -w
See 'docker exec --help'.
The output of this program may be available at http://wikitetasforo.com/MzNhNzBjMzUxYTQwNmRh.txt
You should inspect that file carefully before sharing the URL.

You can examine the output of this script with 
LESS=-Ri less /tmp/discourse-debug.txt

BUT FIRST, make sure that you know the first three commands below!!!

Commands to know when viewing the file with the above command (called 'less'): 
q              -- quit
/error<ENTER>  -- search for the word 'error'
n              -- search for the next occurrence
g              -- go to the beginning of the file
f              -- go forward a page
b              -- go back a page
G              -- go to the end of the file

(Jay Pfaffman) #9

You’ll want to change your SMTP password now. If you’d shared the file that discourse-doctor creates rather than its output, the password would be removed.

Because the container was running when you ran discourse-doctor, it didn’t try to rebuild.


(Miguel) #10

It’s true, big mistake … I’ll change it.

How could I fix the original bug I’m talking about in my first message?

Sorry my bad english!


(Jay Pfaffman) #11

I think that you want to

apt update
apt install docker-ce

That should upgrade docker and I believe that you should be in good shape after that. Oh, but that’s just a warning, so Docker isn’t the problem, but it probably won’t hurt.

But you’ve not shared enough info for us to see what the problem is.

If you ./launcher stop app and then run Discourse doctor, it’ll put the output of the build in /tmp/discourse-debug.txt so you can look at it to see where the problem is.


(Rafael dos Santos Silva) #12

You may want to fix this


(Miguel) #13

Nothing works. The same error appears :frowning: I cant upgrade discourse.


(Miguel) #14

When I write this appears: E: Unable to locate package docker-ce