Bug #689
when migrating greyhole some monit files are showing errors
0%
Description
a number of monit config files suddently have this:
this_file_was_automatically_generated_on
producing ...
Starting Greyhole service watchdog...
Reloading monit: /etc/monit.d/mediatomb.conf:1: Error: syntax error ':'
this was visible when transitioning greyhole to mysql.
not clear if this was there already, or the process of updating something via a shell script caused it.
(it is conceivably possible it happens to me only)
History
#1 Updated by cpg about 10 years ago
do all of this as root: cp -a /etc/monit.d /tmp/monit-d-before 32 bits ----> rpm -Uvh http://greyhole.pommepause.com/releases/hda-greyhole-0.7.5-1.i386.rpm 64 bits ----> rpm -Uvh http://greyhole.pommepause.com/releases/hda-greyhole-0.7.5-1.x86_64.rpm /usr/share/greyhole/db_migration-sqlite2mysql.sh cp -a /etc/monit.d /tmp/monit-d-after then diff -urN /tmp/monit-d-before /tmp/monit-d-after
then update this bug!
#2 Updated by chucara about 10 years ago
When running 7.5-1 (32-bit) after having run 7.2-1 earlier:
ERROR 1396 (HY000) at line 2: Operation CREATE USER failed for 'greyhole'@'localhost'
ERROR 1050 (42S01) at line 1: Table 'settings' already exists
ERROR 1062 (23000) at line 7: Duplicate entry '15043' for key 'PRIMARY'
As expected, really.
No sign of the missing # from conf. (I also had this problem with mediatomb.conf)
Diff is clean.
#3 Updated by cpg about 10 years ago
fix for the generation of the monit files for the server:
http://alpha.amahi.org/tmp/hda-platform-5.6.2-1.noarch.rpm
re-generating the servers should work nicely now and not generate an translation error now
#4 Updated by cpg about 10 years ago
- Subject changed from when migratin greyhole some monit files are showing errors to when migrating greyhole some monit files are showing errors
#5 Updated by gboudreau about 10 years ago
#6 Updated by moncapitaine about 10 years ago
I ran the migration script to use mysql with greyhole and came up with a similar error:
Reloading monit: /etc/monit.d/crashplan.conf:1: Error: syntax error ':'
Greyhole did not start automatically then, had to start it via Amahi settings-> servers, that worked.
EDIT: Greyhole reports to be working in Amahi settings window, but command service greyhole status says "isn't running", service greyhole star does not work.
I tried to install the package from above, but yum couldn't find it, seems to be somethin wrong with the link.
#7 Updated by ralfb about 10 years ago
- Status changed from New to Feedback
I ran below command to migrate to mysql, please see output below.
Guillaume mentioned an 'RPM'.
As I don't know, please tell me what that is and what to d with it.
The link to the RPM above seems dead.
Many thanks
Ralf
/usr/share/greyhole/db_migration-sqlite2mysql.sh
Stopping Greyhole service watchdog...
rm: cannot remove `/etc/monit.d/greyhole.conf': No such file or directory
Reloading monit: /etc/monit.d/mt-daapd.conf:1: Error: syntax error 'translation'
Done.
Stopping Greyhole service...
Shutting down Greyhole: [ OK ]
Done.
Creating MySQL database and user...
hda-create-db-and-user: creating greyhole
Done.
Modifying Greyhole configuration to use MySQL...
Done.
Migrating data from SQLite to MySQL...
Done.
Starting Greyhole service...
Starting Greyhole ... [ OK ]
Done.
Starting Greyhole service watchdog...
Reloading monit: /etc/monit.d/mt-daapd.conf:1: Error: syntax error 'translation'
Also available in: Atom