Skip to content
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

APy Service #17

Open
flammie opened this issue Aug 16, 2019 · 3 comments
Open

APy Service #17

flammie opened this issue Aug 16, 2019 · 3 comments
Labels

Comments

@flammie
Copy link
Member

flammie commented Aug 16, 2019

I tried to upgrade my manual installation to ubuntu packaging as instructed in README:

$ wget -qO- https://apertium.projectjj.com/apt/install-nightly.sh | bash
$ apt-get install apertium-apy

The resulting server doesn't seem to be functional:

flammie@flammie:~$ sudo systemctl start apertium-apy
flammie@flammie:~$ sudo systemctl status apertium-apy
● apertium-apy.service - Translation server and API for Apertium
   Loaded: loaded (/lib/systemd/system/apertium-apy.service; enabled; vendor preset: enabled)
   Active: inactive (dead) (Result: exit-code) since pe 2019-08-16 08:53:43 EDT; 5s ago
     Docs: http://wiki.apertium.org/wiki/Apertium-apy
  Process: 28320 ExecStart=/usr/bin/apertium-apy /usr/share/apertium/modes (code=exited, status=1/FAILURE)
 Main PID: 28320 (code=exited, status=1/FAILURE)

elo 16 08:53:42 flammie.name systemd[1]: apertium-apy.service: Unit entered failed state.
elo 16 08:53:42 flammie.name systemd[1]: apertium-apy.service: Failed with result 'exit-code'.
elo 16 08:53:43 flammie.name systemd[1]: apertium-apy.service: Service hold-off time over, scheduling restart.
elo 16 08:53:43 flammie.name systemd[1]: Stopped Translation server and API for Apertium.
elo 16 08:53:43 flammie.name systemd[1]: apertium-apy.service: Start request repeated too quickly.
elo 16 08:53:43 flammie.name systemd[1]: Failed to start Translation server and API for Apertium.

The problem seems to be with the locale but I think the startup scripts should handle setting the correct locale?

It seems that the startup script tries to set C.UTF8 locale but somehow doesn't work, using /etc/default/apertium-apy fixed it:

flammie@flammie:~$ cat /etc/default/apertium-apy 
LC_ALL=C.utf8
@flammie
Copy link
Member Author

flammie commented Aug 16, 2019

ehh, I spoke too soon, it was just systemd being slow and it didn't start in the end -_-

@sushain97
Copy link
Member

hmm, so is there an issue or not?

@flammie
Copy link
Member Author

flammie commented Aug 21, 2019

Yeah, so the init script doesn't work out of the box as it is, although, the container I have is I think not 100 % default ubuntu LTS 16.04 but quite close. So to reproduce just did something like:

sudo apt-get install apertium-apy
sudo systemctl enable apertium-apy
sudo systemctl start apertium-apy

maybe it can be tested on docker or somethign

@TinoDidriksen TinoDidriksen transferred this issue from apertium/apertium-apy Sep 9, 2019
@TinoDidriksen TinoDidriksen changed the title ubuntu packaging and inti scripts APy Service Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants