Bug 19286 - Error while upgrading language
Summary: Error while upgrading language
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Installation and upgrade (command-line installer) (show other bugs)
Version: 16.11
Hardware: All All
: P5 - low major
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-09 19:45 UTC by Claudio Costales
Modified: 2019-06-27 09:24 UTC (History)
1 user (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Crowdfunding committed: 0
Crowdfunding contact:
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
es-ES translation error (31.08 KB, application/pdf)
2017-09-09 20:49 UTC, Claudio Costales
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Costales 2017-09-09 19:45:22 UTC
I have upgraded Koha from 16.06 to 16.11. All worked fine except language translation (spanish es-ES). Command line echoes this message:

Error: the selected language is already installed. Try --update if you want to re-install it.


I tried koha-translate --update es-ES but it fails
I tried koha-translate --remove es-ES but it fails
I tried koha-translate --install es-ES but it fails
Comment 1 Katrin Fischer 2017-09-09 20:01:39 UTC
What are the error messages for the other commands?

It seems the package commands are not working in kohadevbox, but I could install es-ES fine from koha-shell using those commands:

sudo koha-shell instance
cd misc/translator
perl translate install es-ES
Comment 2 Claudio Costales 2017-09-09 20:12:41 UTC
Thanks Katrin,

I upgraded Koha in a standard way from release 16.06 to release 16.11:

  sudo apt-get update
  sudo apt-get install koha-common


When the upgrade process finished the command line echoed this message:

  Error: the selected language is already installed. Try --update if you want to re-install it.



Koha now runs only in english and the spanish language in syspref is missing.

Sadly I have no more information.
Comment 3 Claudio Costales 2017-09-09 20:27:27 UTC
My Koha installation has 3 instances, all of them have run in spanish for years with no problem.
Comment 4 Katrin Fischer 2017-09-09 20:28:32 UTC
Try to use the commands I have put down in my post for a workaround so you can get Spanish back to working. We will look into the problem.
Comment 5 Claudio Costales 2017-09-09 20:49:15 UTC
Created attachment 67035 [details]
es-ES translation error
Comment 6 Claudio Costales 2017-09-09 20:50:03 UTC
es-ES filesystems were deleted while upgrading!!

Please see file attached.
Comment 7 Katrin Fischer 2017-09-09 20:54:54 UTC
What's the output of I tried koha-translate --install es-ES? Is there any error message?
Comment 8 Claudio Costales 2017-09-09 20:59:19 UTC
The output was:

Error: the selected language is already installed. Try --update if you want to re-install it.


****************

Please read comments 5 and 6.
Comment 9 Katrin Fischer 2017-09-09 21:00:24 UTC
Please have a bit of patience - we might not be able to resolve this during the weekend.
Comment 10 Claudio Costales 2017-09-09 21:01:31 UTC
I understand... thanks Katrin
Comment 11 Tomás Cohen Arazi (tcohen) 2017-09-09 21:02:39 UTC
Hi Claudio, I suggest you remove the es-ES translation, using

$ sudo koha-translate --remove es-ES

Then finish the install process

$ apt -f install

Then install the translation

$ sudo koha-translate --install es-ES

Important things to note:
- You might had custom stuff that interfered with the process
- You might have ran the process from one of the translating directories, and thus interfered with the process (because it would be used and thus non-removable).
- The --update option con koha-translate actually removes the translation and then generates it, so it is normal that it get
Comment 12 Tomás Cohen Arazi (tcohen) 2017-09-09 21:05:26 UTC
To get it deleted in the process. The question is why it aborted, but we can check it next week.

I upgraded myself two servers with 16.05 and 50 instances, to 16.11 last week, so I'm sure it must be environmental.

Good luck!
Comment 13 Katrin Fischer 2017-09-09 21:07:43 UTC
Thx Tomas!
Comment 14 Claudio Costales 2017-09-09 21:44:59 UTC
(In reply to Tomás Cohen Arazi from comment #11)
> Hi Claudio, I suggest you remove the es-ES translation, using
> 
> $ sudo koha-translate --remove es-ES

Command line output:
Error: the selected language is already installed. Try --update if you want to re-install it.


> 
> Then finish the install process
> 
> $ apt -f install
> 
> Then install the translation
> 
> $ sudo koha-translate --install es-ES

Command line output:
Error: the selected language is already installed. Try --update if you want to re-install it.

> 
> Important things to note:
> - You might had custom stuff that interfered with the process

What kind of "custom stuff" do you refer to? The instalation is 100% standard. Where should I look for?


> - You might have ran the process from one of the translating directories,
> and thus interfered with the process (because it would be used and thus
> non-removable).

I run the process from my user "root" directory

> - The --update option con koha-translate actually removes the translation
> and then generates it, so it is normal that it get

Ok, I understand why it is missing...

******************

Thanks Tomás.
Comment 15 Claudio Costales 2017-09-09 23:12:21 UTC
Katrin, Tomás

I found de error and fixed it.

There were 2 directories "es-ES" created under "ccr" and "prog" directories in the OPAC filesystem hierarchy. Both directories were empty. I compared these directories versus a local installation I have in my notebook and decided to delete them. Then I reinstalled es-ES language without problems. All works fine again.

I don't know if those directories remains there for legacy reasons but I'm sure that are linked with the install/update process.

If you agree I will cancel this bug.

Many thanks for your help and commitment!!