|
Bugzilla – Full Text Bug Listing |
| Summary: | Canna can not start | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | Mitsutoshi NAKANO <bkbin005> |
| Component: | Other | Assignee: | Fuminobu Takeyama <ftake> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Major | ||
| Priority: | P5 - None | CC: | bwiedemann, dvaleev, forgotten_xGw9TrnVng, ftake, maiku.fabian, mgriessmeier, qantas94heavy |
| Version: | 13.2 | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | openSUSE 13.2 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Mitsutoshi NAKANO
2014-12-21 01:28:10 UTC
/usr/sbin/cannaserver -syslog /usr/sbin/cannaserver: invalid option -- 'y' Usage: cannaserver [-p num] [-l num] [-u userid] [-syslog] [-inet] [-d] [dichome] it seems as if it does not understand the -syslog option even though its Usage suggests that it would The security-okir.patch changes -syslog option to -s, but usage and canna.service have forgotten it. Several mistakes in this commit: https://build.opensuse.org/request/show/204858 Sorry, I could not notice in the review phase. - "-syslog" option is wrong (as Mitsutoshi says) - the path in the canna-tmpfiles.conf is wrong + should be /tmp or change the path by adding a patch - user name for cannaserver is wrong + wrong fix: https://build.opensuse.org/package/rdiff/M17N/canna?linkrev=base&rev=29 $ sudo -u wnn /usr/sbin/cannaserver -s still don't work for me. It silently exits. *** Bug 911526 has been marked as a duplicate of this bug. *** I've packaged fixed version. Please confirm that it works for your environment: https://build.opensuse.org/package/show/home:ftake:branches:M17N/canna (In reply to Fuminobu Takeyama from comment #5) > https://build.opensuse.org/package/show/home:ftake:branches:M17N/canna Your fix seems to run normally on my environment. Thank you! The changed version of service.canna now works correctly: [Unit] Description=Canna Japanese Conversion Engine [Service] Type=forking ExecPre=/bin/rm -rf /tmp/.iroha_unix ExecStart=/usr/sbin/cannaserver -s -u wnn -r /var/lib/canna ExecStopPost=/bin/rm -rf /tmp/.iroha_unix [Install] WantedBy=multi-user.target It would be great to add this patch to the openSuSE update repositories. Thank you very much! ありがとうございます。 While the patch isn't available via YaST online update yet, the simplest work-around is to manually edit /usr/lib/systemd/system/canna.service as follows: -------------------------------------------------------------- [Unit] Description=Canna Japanese Conversion Engine [Service] Type=forking ExecPre=/bin/rm -rf /tmp/.iroha_unix ExecStart=/usr/sbin/cannaserver -s /var/lib/canna/dic ExecStopPost=/bin/rm -rf /tmp/.iroha_unix [Install] WantedBy=multi-user.target -------------------------------------------------------------- And then executing (as root) the following commands: # systemctl daemon-reload # systemctl restart canna.service This is an autogenerated message for OBS integration: This bug (910933) was mentioned in https://build.opensuse.org/request/show/280698 13.2 / canna Update released for openSUSE 13.2 - resolved fixed openSUSE-RU-2015:0072-1: An update that has two recommended fixes can now be installed. Category: recommended (low) Bug References: 878691,910933 CVE References: Sources used: openSUSE 13.2 (src): canna-3.7p3-234.4.1 The current fix is still not quite right. The file /tmp/.iroha_unix/IROHA does not get automatically removed when the service starts. So if the machine crashes while canna is running, canna won't ever start again unless that file is manually removed. Perhaps "ExecPre" should be "ExecStartPre" in canna.service? confirmed. I submitted a new package to M17N. Additional fix mentioned in comment 13 is present since Leap 42.1. 13.2 does not has the fix but it is now EOL. |