-
Notifications
You must be signed in to change notification settings - Fork 4
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
Uwazi 1.4 is out #36
Uwazi 1.4 is out #36
Conversation
uwazi 1.4 has just been release
Did it worked for you (with at least less bugs than before) on dockerized uwazi? Just confirm this (I will also act here as reviewer, so we can have at least two humans double checking |
Am Donnerstag, den 29.11.2018, 19:19 -0800 schrieb Emerson Rocha Luiz:
Did it worked for you (with at least less bugs than before) on
dockerized uwazi? Just confirm this (I will also act here as
reviewer, so we can have at least two humans double checking
As far as I am concerned, there was little difference, just that it
finally has the possibility to manage languages that I desperately
needed.
There was an issue with credentials of one account suddenly not working
anymore, but I am not clear where that came from and whether this was
related to the upgrade.
What this make me thinking about is what mechanism we could have to
upgrade a dockerized Uwazi, because what I did was probably not very
elegant, yet I did it to make sure existing data is preserved.
1. Ran docker-compose down
2. docker image rm (name of the uwazi-docker image)
3. Move current uwazi-docker dir (which also contains all user data
in subdirs) to uwazi-docker.old
4. Checked out the uwazi-docker code from github
5. Changed the release number from 1.3. to 1.4 in the Dockerfile
6. ran docker image build .
7. moved uwazi-docker out of the way
8. moved uwazi-docker.old to uwazi-docker
9. docker-compose up -d
10. docker exec -it [name of uwazi docker container] bash
11. yarn migrate
12. yarn reindex
13. docker-compose down
14. docker-compose up -d
I guess some of the steps are redundant but I wanted to make absolutely
sure that I have a clean upgrade and that none of the existing user
data is lostAlso I am conscious of the fact that I ran yarn migrate and
yarn reindex at a stage where uwazi is already running, and I am less
than sure that is is meant to be so and I am not clear about what
possible side effects are
… —
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
5493e4bb","name":"GitHub"},"entity":{"external_key":"github/fititnt/u
wazi-docker","title":"fititnt/uwazi-docker","subtitle":"GitHub
repository","main_image_url":"
https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open
in GitHub","url":"
***@***.***
in #36: Did it worked for you (with at least less bugs than before)
on dockerized uwazi? Just confirm this (I will also act here as
reviewer, so we can have at least two humans double
checking"}],"action":{"name":"View Pull Request","url":"
#36 (comment)
"}}}
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "
#36 (comment)
",
"url": "
#36 (comment)
",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
***@***.***": "MessageCard",
***@***.***": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [fititnt/uwazi-docker] Uwazi 1.4 is out (#36)",
"sections": [
{
"text": "",
"activityTitle": "**Emerson Rocha Luiz**",
"activityImage": "
https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": ***@***.***",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
***@***.***": "ActionCard",
"inputs": [
{
"isMultiLine": true,
***@***.***": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
***@***.***": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\":
\"IssueComment\",\n\"repositoryFullName\": \"fititnt/uwazi-
docker\",\n\"issueId\": 36,\n\"IssueComment\":
\"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
***@***.***": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\":
\"PullRequestClose\",\n\"repositoryFullName\": \"fititnt/uwazi-
docker\",\n\"pullRequestId\": 36\n}"
},
{
"targets": [
{
"os": "default",
"uri": "
#36 (comment)
"
}
],
***@***.***": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
***@***.***": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\":
417996347\n}"
}
],
"themeColor": "26292E"
}
]
|
run apt-get clean after last apt-get install command to reduce image size, remove apt lists. Not required but good practice
Yes, I fully agree that the update process, for now, is not automated with uwazi docker, so the person have to login on the new uwazi and run the commands that are need to update the uwazi without docker. The issue that mentions part of this is #28, so if someone else goes there, also will see that you here documented at least one process of how to update the databases too |
@@ -16,7 +16,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ | |||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 \ | |||
&& echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list \ | |||
&& apt-get update \ | |||
&& apt-get install -y mongodb-org-shell mongodb-org-tools | |||
&& apt-get install -y mongodb-org-shell mongodb-org-tools \ | |||
&& apt-get clean && rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow. very great move here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that's just good practice. Got that from an introductory course I recently made
@vasyugan I'm doing a clean install on your actual pull request. Give me some time to check if no hard errors show UP. # fititnt at bravo in /alligo/code/fititnt/uwazi-docker on git:master x [3:46:44]
$ git checkout -b vasyugan-master master
M docker-compose.yml
Switched to a new branch 'vasyugan-master'
# fititnt at bravo in /alligo/code/fititnt/uwazi-docker on git:vasyugan-master x [3:47:10]
$ git pull https://github.com/vasyugan/uwazi-docker.git master
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 2), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
From https://github.com/vasyugan/uwazi-docker
* branch master -> FETCH_HEAD
Merge made by the 'recursive' strategy.
Dockerfile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
# fititnt at bravo in /alligo/code/fititnt/uwazi-docker on git:vasyugan-master x [3:47:55]
$ docker-compose run -e IS_FIRST_RUN=true --rm uwazi # Install/Re-install from empty data
(...) |
Strange. This is one unrelated error building the docker image. Also this remember me that (maybe in another commit or pull request, could be a good ideal force usage of mongo 3.4 also as the shell (that is only used if I remember to initiate the database the first time, but for now maybe we just accept this pull request. (...)
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for sgml-base (1.29) ...
Removing intermediate container fac4b374067f
---> bfca57aaa1d0
Step 4/8 : RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 && echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list && apt-get update && apt-get install -y mongodb-org-shell mongodb-org-tools && apt-get clean && rm -rf /var/lib/apt/lists/*
---> Running in 5980d71ffce7
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.l1Y4lb8lwg/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
gpg: key 58712A2291FA4AD5: public key "MongoDB 3.6 Release Signing Key <packaging@mongodb.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Ign:3 http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 InRelease
Hit:4 http://deb.debian.org/debian stretch-updates InRelease
Get:5 http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 Release [2393 B]
Hit:6 http://deb.debian.org/debian stretch Release
Get:7 http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 Release.gpg [801 B]
Get:9 http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6/main amd64 Packages [7721 B]
Fetched 10.9 kB in 0s (19.8 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org-shell : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
ERROR: Service 'uwazi' failed to build: The command '/bin/sh -c apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 && echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list && apt-get update && apt-get install -y mongodb-org-shell mongodb-org-tools && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100 |
Related nodejs/docker-node#936 (comment) |
For now using @vasyugan I will accept this PR, but I think we could wait a bit for if For now you do not need to make one extra commit to change the first line with the new FROM, but if you soon make a next PR just with one of these changes, I will accept because will work. I'm documenting this becase if someone more would like to test/use the uwazi-docker, will find these same issues (and I'm not talking just about uwazi, but pretty everyone that was using Ah, and @vasyugan , if you ask me that is not a good idea that these things could eventally break, think that for larger docker projects, we normaly would cache the full image on docker-hub (not build every time), but for now we do not have more people here to do the full thing. |
Since the uwazi installation instructions specify that you need 3.4, why are you using 3.6 then? |
Thats another thing I forgot to test long time ago. I thought they would soon upgrade to Mongo's new version, so I also did not bother downgrade the mongo version used only on the import. The specific version of mongo used on the database was exactly the version on the documentation. But yest, if you also know the commands that change that part of the dockerfile to use the 3.4, you can optimize this too. |
(Also, few more minutes to test this pull request, first I was testing on the master with the |
Why wouldn't you want to move to stretch, as jessie by this time is really old and unsupported upstream? |
It's good for me to move and I totally would accept PRs with that change. on the #37 I just hot pached to allow it still work for some extra time and the master here still working, but there is no extra reason to stay with jessie beyond just do the full testing. Maybe the only change need would be the reference to the mongo-db repository. But I'm a bit busy with other projects to do the full testing alone on this one, and I do not even have, at this time, one uwazi running in production to check the full changes, so this explain why I'm not also upgrading everything. |
@fititnt @vasyugan just to give you a heads up there is a breaking change with the elasticsearch version, now 5.6 is required (previously 5.5). Also, if you are using the blank state you should be ok but for existing dbs running "yarn migrate" is necessary along with the other steps explained in https://github.com/huridocs/uwazi#upgrading-uwazi-and-data-migrations. |
@txau I just created one issue on the main repository at huridocs/uwazi#2101. See https://github.com/fititnt/uwazi-docker/blob/master/docker-entrypoint.sh. Have some comands that could be easily parsed by bash (the ones who returno
I'm aware that this logic could take a few more released versions of uwazi to be fully tested (for example, even if the 1.5 have some draft of this, to make full testing we would need the 1.6 to test again). Even if the uwazi software can handle somewhat nice different versions of the database without stopping, I think the dockerized version could enforce by default be more strict on this by default. |
@vasyugan another thing that maybe I will do is re-release older versions of uwazi-docker (see https://github.com/fititnt/uwazi-docker/releases) with this change to stick with the jessie. In theory, this change on the default OS on the This is one additional reason of why the next versions of uwazi-docker, even if use the stretch, I think could be better to enforce the stretch on the Dockerfile instead of just rely on the version decided by the |
Huridocs just released Uwazi 1.4, with support for managing translations, a feature I was really looking forward to.