Opened 12 years ago
Closed 12 years ago
#223 closed defect (fixed)
rasmgr writes ill-formatted rasmgr.conf file
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | 8.4 |
Component: | rasmgr | Version: | 8.3 |
Keywords: | rasmgr.conf | Cc: | |
Complexity: | Medium |
Description
rasmgr writes ill-formatted rasmgr.conf file. It seems to forget a new line after the first line of the file (see below), which defines the data base host and the associated connect string. Below is what I get on my machine after rasmgr overwrites the file:
# rasmgr config file (v1.1)
# warning: do not edit this file, it may be overwritten by rasmgr!
#
define dbh rasdaman_host -connect RASBASEdefine srv N1 -host WorkingBee -type n -port 0x1b5a -dbh rasdaman_host
change srv N1 -countdown 200 -autorestart on -xp —timeout 300
define srv N2 -host WorkingBee -type n -port 0x1b5b -dbh rasdaman_host
change srv N2 -countdown 200 -autorestart on -xp —timeout 300
…
This prevents the any servers from being started. Manually editing the file resolves the issue until rasmgr overwrites it again.
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Hi Dimitar
It's been a while since I noticed it the first time. I had a look and I think it was probably introduced by commit 60f1d6c3de6bbb4fcb4db8295edec6fb714b83c9 from 19/07/2012 regarding rasmgr_conf.cc. There is probably a
ofs << std::endl;
missing at the end of the inserted lines.
Alex
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yes you're right, changeset:60f1d6c3de6bbb4fcb4db8295edec6fb714b83c9/rasmgr/rasmgr_config.cc Strange how I haven't had issues with this so far. Submitted patch to fix it.
Alex, did you come across this issue recently? I've never had this problem.