Difference between revisions of "Jorgal"

From Apertium
Jump to navigation Jump to search
(Created page with "Docs for updating gtweb.uit.no/jorgal because I never remember how to edit the gt docs Omsetjingstenaren apertium-apy køyrer som brukaren «apy», og koden til både den o...")
 
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Docs for updating gtweb.uit.no/jorgal because I never remember how to edit the gt docs
 
   
 
Docs for updating https://gtweb.uit.no/jorgal because I never remember how to edit the gt docs:
   
  +
==Installing new pairs==
   
  +
See https://github.com/unhammer/gtweb-apy-conf#installing-new-language-pairs
Omsetjingstenaren apertium-apy køyrer som brukaren «apy», og koden til
 
  +
både den og html-sidene er under /home/apy. I /home/apy finst to skript,
 
  +
==Ensuring current pairs are up-to-date==
update-apy-server og update-html-pages, som det går an å køyra for å
 
  +
ssh into gtweb and run
oppdatera kjeldekoden til dei. Etter oppdatering av omsetjngstenaren, må
 
  +
han omstartast; full oppdatering av koden blir då:
 
  +
<pre>sudo systemctl start dnf-automatic</pre>
  +
  +
(This command will take care of cleaning metadata first, and restarting apy afterwards.)
  +
  +
The dnf upgrade should happen every morning, but if Tino's nightly repo needs a lot of time to compile, or the build service is down, things may lag a bit more. Look at the bottom of http://apertium.projectjj.com/apt/logs/apertium-sme-nob/stderr.log if you're interested in what might have happened.
  +
  +
  +
==Automatic updates and restarts==
  +
There are some systemd units that do the automatic package updates and restarting of the MT service ([[Apy]]).
  +
  +
To inspect the updating units:
   
 
<pre>
 
<pre>
  +
systemctl cat dnf-automatic.service
sudo -u apy /home/apy/update-apy-server
 
sudo systemctl restart apy
+
systemctl cat dnf-automatic.timer
sudo -u apy /home/apy/update-html-pages
 
 
</pre>
 
</pre>
   
  +
The dnf-automatic.service should restart Apy after running (see the ExecStopPost line)).
Eg la til nokre ekstra linjer i /etc/httpd/conf/httpd.conf:
 
  +
  +
  +
We also restart Apy twice more a day, just in case it gets stuck or something:
 
<pre>
 
<pre>
  +
systemctl cat restart-apy.service
<Directory "/home/apy/apertium-html-tools/build">
 
  +
systemctl cat restart-apy.timer
Options SymLinksIfOwnerMatch
 
AllowOverride None
 
Require all granted
 
</Directory>
 
Alias /jorgal /home/apy/apertium-html-tools/build
 
 
</pre>
 
</pre>
   
  +
More info at https://github.com/unhammer/gtweb-apy-conf#README.org
og ei ny fil /etc/systemd/system/apy.service som gjer at
 
omsetjingstenaren startar på oppstart av gtweb-maskina.
 
   
  +
==What versions are running?==
   
  +
gtweb.uit.no/jorgal is running the packages from Tino's nightly repo, so they should be at most 24 hours out-of-date, given the build wasn't broken (if the version in SVN doesn't compile when Tino's machine tries updating, the package isn't updated). There are some more details at ~apy/README on gtweb.
Språkpara er dei som er installert med «dnf install»
 
  +
(ExecStart i /etc/systemd/system/apy.service gir stien til
 
  +
modes-filene).
 
  +
gtweb.uit.no/mt and gtweb.uit.no/mt/testing should also now be running the nightly repo, but see the file /opt/mt/README on gtweb for how to make sure.
  +
  +
  +
(https://build.opensuse.org/package/show/home:TinoDidriksen:nightly/apertium-sme-nob shows the latest available nightly sme-nob package, while http://apertium.projectjj.com/apt/logs/apertium-sme-nob/stderr.log shows the build log of that package.)
  +
  +
  +
==How do I see unknown words?==
  +
<pre>
  +
ssh gtweb /home/apy/dump-missing-words
  +
</pre>
   
 
[[Category:Giellatekno]]
 
[[Category:Giellatekno]]

Latest revision as of 12:03, 28 February 2017

Docs for updating https://gtweb.uit.no/jorgal because I never remember how to edit the gt docs:

Installing new pairs[edit]

See https://github.com/unhammer/gtweb-apy-conf#installing-new-language-pairs

Ensuring current pairs are up-to-date[edit]

ssh into gtweb and run

sudo systemctl start dnf-automatic

(This command will take care of cleaning metadata first, and restarting apy afterwards.)

The dnf upgrade should happen every morning, but if Tino's nightly repo needs a lot of time to compile, or the build service is down, things may lag a bit more. Look at the bottom of http://apertium.projectjj.com/apt/logs/apertium-sme-nob/stderr.log if you're interested in what might have happened.


Automatic updates and restarts[edit]

There are some systemd units that do the automatic package updates and restarting of the MT service (Apy).

To inspect the updating units:

systemctl cat dnf-automatic.service
systemctl cat dnf-automatic.timer

The dnf-automatic.service should restart Apy after running (see the ExecStopPost line)).


We also restart Apy twice more a day, just in case it gets stuck or something:

systemctl cat restart-apy.service
systemctl cat restart-apy.timer

More info at https://github.com/unhammer/gtweb-apy-conf#README.org

What versions are running?[edit]

gtweb.uit.no/jorgal is running the packages from Tino's nightly repo, so they should be at most 24 hours out-of-date, given the build wasn't broken (if the version in SVN doesn't compile when Tino's machine tries updating, the package isn't updated). There are some more details at ~apy/README on gtweb.


gtweb.uit.no/mt and gtweb.uit.no/mt/testing should also now be running the nightly repo, but see the file /opt/mt/README on gtweb for how to make sure.


(https://build.opensuse.org/package/show/home:TinoDidriksen:nightly/apertium-sme-nob shows the latest available nightly sme-nob package, while http://apertium.projectjj.com/apt/logs/apertium-sme-nob/stderr.log shows the build log of that package.)


How do I see unknown words?[edit]

ssh gtweb /home/apy/dump-missing-words