Wednesday, 2013-10-02

*** nowen (~nowen@99-174-93-102.lightspeed.tukrga.sbcglobal.net) has joined #wikid12:17
*** nowen1 (~nowen@99-174-93-102.lightspeed.tukrga.sbcglobal.net) has joined #wikid12:24
*** nowen1 is now known as nowen_work12:24
*** nowen has quit (Ping timeout: 246 seconds)12:24
*** mkirank (7ab35238@gateway/web/freenode/ip.122.179.82.56) has joined #wikid15:31
*** mkirank has quit (Client Quit)15:34
*** mkirank (7ab35238@gateway/web/freenode/ip.122.179.82.56) has joined #wikid16:00
mkirankHi16:01
nowen_workhi16:01
mkirank@nowen_work I need some help on getting the slave wikid system running as master16:01
nowen_workok16:02
mkirankjust to give you a background16:02
mkirankwe had wikid configured as master and slave, at some point we tried to upgrade the master and it failed, it has been broken till date16:03
nowen_workok - I remember16:03
mkirankand now we want to see if we can bring the slave system back up16:03
mkirankyeah I had to check with our team to see if this was fine and I heard back today16:03
nowen_workgood to hear16:04
nowen_workon the slave, run 'wikidctl setup'16:04
nowen_workchoose N when asked about the network16:04
nowen_workand Y about replication16:05
mkirankok16:05
mkirankok now I'm at will this system function as master ,slave or none16:05
nowen_worknone16:05
nowen_workconfirm that and then run 'wikidctl start'16:06
mkirankok basic setup done16:06
mkirankwe have a local mod for wikid it's asking me for password let me check16:07
mkiranktried to bail out and got these messages16:08
mkirankStarting Logger service...Database listener not available!  Logger NOT started! Starting TimeCop service...Database listener not available!  Timecop NOT started!16:08
nowen_workby bail out, do you mean ctrl-c?16:09
mkirankyes16:09
nowen_workok16:09
nowen_workdo you not know the password?16:09
mkirankIt is asking me for wikid user password16:09
nowen_workwhat user are you now?16:10
mkirankwikid16:10
nowen_workcan you su to root?16:10
mkirankyes I can su to root but there seems to be a modification in our wikidctl that has a check to make sure that script is run as wikid user16:10
mkirankI can comment that and try16:10
nowen_workwell, you can su to wikid as root, right?16:11
mkirankI can su to wikid user but there seems to be some sudo setup so it asks me for wikid user password16:12
nowen_workis this something you'll set up?16:12
mkirankno it has already been setup by someone else16:14
nowen_workI mean at your company.  We have support for sudo now, but I don't think it was in your version16:14
nowen_worksudo support was added in 3.50-b134216:15
mkirankI guess the person who setup wikid added some modification to wikidctl , it looks like the wikid user needs sudo only for rsync which is used for replication16:15
nowen_workok - so when you ran start, you got prompted for the user's password or for the passphrase for the server?16:16
*** nowen_work is now known as nowen16:16
mkirankit prompted for wikid users password16:17
nowensu to root and change their password16:17
mkirankok did that will now try wikidctl start16:18
mkirankwikidctl start Starting database...Success! Success! [sudo] password for wikid:  [sudo] password for wikid:  [sudo] password for wikid:  Success! Starting Logger service...Database listener not available!  Logger NOT started! Starting TimeCop service...Database listener not available!  Timecop NOT started! Tomcat server already started.16:19
nowentell me the version of WiKID again?16:20
mkirankwikid-server-enterprise-3.4.1.b3314-116:21
nowenhmm. well you can try 'service postgresql start' and then 'wikidctl start'16:21
mkirankservice postgresql status shows it is running16:22
nowenwhat port is it listening to?16:22
nowenor on,16:22
mkirankits listening on non standard port 543416:22
nowenrun 'wikidctl promote'16:24
nowenhmm16:25
nowenthat probably won't do it16:25
nowenlook in /var/lib/pqsql/data/postgresql.conf16:25
nowendo you see the port listed?16:25
mkirankthe port line is commented there but I can login to postgres using psql -p 5434 wikid tomcat16:27
nowen5434 is the port for replication.  for some reason, the change back to 5432 didn't take16:28
nowenI suggest editing it back to 5432, restarting postgres and restarting wikid16:28
mkirankok I looked in the log directory16:28
mkirankinstall.log has todays date and these entries16:28
mkiranksudo: no tty present and no askpass program specified Initializing WiKID database ... /opt/WiKID/sbin/sudo.sh: line 11: [: too many arguments16:29
mkirankThis may be a local modification done by the previous sysadmin16:31
mkirankShould we comment out the modification and run the setup as root ?16:32
nowenprobably.16:33
nowenyou could also try updating sudo16:34
mkirankupdate to ?16:35
nowenthe latest.  'yum update sudo'16:35
nowenI know that when we added sudo to wikid, it required an update for sudo16:35
mkiranklooks like there is no update to sudo16:36
nowen rpm -qa | grep sudo16:36
nowensudo-1.7.2p1-22.el5_9.116:36
mkirankI saw this in the log16:36
mkirankSorry, user wikid is not allowed to execute '/usr/bin/psql -h localhost -d wikid -f /opt/WiKID/conf/database/db-data.sql' as postgres on mgmt2.genares.net.16:36
nowenso you have that problem and postgres is on the wrong port16:37
mkiranksudo-1.7.2p1-10.el516:37
nowenwhat are the perms on /opt/WiKID ?16:37
mkirankdrwxr-xr-x 14 wikid wikid 4096 Mar 21  2013 WiKID16:38
nowenI suggest changing the port first, starting postgres and then wikid16:38
nowenif you still have sudo issues, I can get you a fresh copy of the script16:39
mkirankIs that sudo.sh script part of wikid ?16:40
nowenno16:40
mkirankok it must be the local modification16:41
mkirankI looked in the bin directory, there is a backup of the original wikidctl script16:42
nowenoh, wait16:42
nowenit is a wikid script16:42
nowenis it this: http://pastebin.com/7DLX414q16:42
mkirankit is similar , but we seem to have an older version with a few changes16:45
nowenchange the port, I'm not convinced it is a sudo error16:46
mkirankok so do I change it in the postgre.conf ?16:46
nowenyes, that should work16:46
mkirankok I did a grep on wikid directory to check for 5434 it looks like there has been some local changes to even wikid.pl, there seems to be a backup of the original wilid.pl I can paste a diff if you want to look at it16:49
nowendid you change the port in postgresql.conf?16:49
nowenonce we get it running, we can update via rpm and all the customizations will be over-written16:50
mkirankok but if wikidctl uses wikid.pl then does the local customization be used ?16:51
nowenI doubt it.16:52
mkirankok16:52
nowenif postgres is running it won't16:52
mkirankI'll change the port16:52
mkirankchanged the port and restarted postgre it's still running on port 543416:54
nowenhmm16:55
nowenyou have port = 5432 ?16:55
mkirankyes16:55
nowenand you just ran 'service postgresql restart' ?16:56
mkirankdid a stop changed conf file and then start16:56
nowenhuh, why would it not use it's own conf file?16:57
mkirankwe use puppet to configure the system, let me see if there is anything there16:58
mkirankok it looks like the port can be defined in sysconfig/postgres17:02
mkirankok now the port is changed17:02
mkiranknow do I run wikidctl start ?17:04
nowenyes17:04
mkirankok got these messages17:05
mkirankwikidctl start Database already started. Starting Logger service...Success! Starting TimeCop service...Success! Starting wAuth protocol daemon... Passphrase is good.  Proceeding ...Success! Tomcat server already started. Starting RADIUS protocol daemon ...Success! LDAP protocol not enabled.17:05
nowenthat seems good.17:05
nowenlog into the WiKIDAdmin17:05
mkirankhmm getting a service temporarily unavailable17:06
nowenhmm  run 'netstat -anp | grep 443'17:06
mkiranktcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      17363/httpd17:07
nowenis apache running on this machine?17:07
nowenthat should be java/tomcat17:07
mkirankits apache talking to tomcat via ajp17:08
nowenwhy?17:08
mkirankhold on a minute , I'm checking something quick17:09
nowenapache should not be running on the server17:09
mkirankok let me see if I can stop apache and only use tomcat17:12
mkirankOk I have stopped http but I guess we need to make tomcat changes17:15
nowenno17:16
nowenjust restart wikid17:16
mkirankgave a wikidctl restart its just waiting there17:17
mkirankok now I see the messages17:18
mkirankthere does not seem to be any process listening on 8017:19
mkirankwe have a tomcat connector on 800917:19
nowendid you'll modify tomcat too?17:19
mkirankI guess they had modified it too17:20
mkirankthere are 2 files server.xm and server-wikid.xml does tomcat use both ?17:21
nowenhow about we re-install the rpm17:24
nowenhttp://wikidsystems-dl.com/wikid-server-enterprise-3.4.1.b3314-1.noarch.rpm17:24
mkirankIf we do install this does it wipe out the configurations ?17:27
nowenthe database will not change.  That's where the token data is.  You can tar that up anyway.17:28
nowenrunning rpm -Uvh --force should fix the mods17:29
nowenyou can tar up /opt/WIKID, /var/lib/pgsql/data and /etc/WiKID and have it all backed up17:29
mkirankgive me a couple of minutes17:32
mkirankonce we get the new wikid running how do we get the old configurations back , from the database backup ?17:34
nowenwhat configurations?17:38
nowenor which configurations do you mean?17:38
mkirankthe old setup from the master17:38
nowendo you mean the user's token data?17:39
mkirankI do not know how the system was used but my question is when we do a new install how do we configure the server to act as a radius server17:40
mkirankdo we need something from the old setup of wikid17:40
nowenany configurations for things like your VPN are in the database and won't be affected17:40
nowenall the stuff you see in the WiKIDAdmin are in the database17:41
mkirankok17:42
mkirankmy only worry is that when we tried the upgrade on the master it failed17:43
mkirankbut I guess in this case there is nothing to worry as it is already broken17:43
nowenwell, you'll have really messed with the system. I'm not sure of anything17:43
mkirank:-)17:44
nowenI hope this will at least get it started17:44
nowenare these virtual machines?17:44
mkirankanother question17:44
mkirankno these are not vm;s17:45
mkiranknow that we have wikid runnin but unable to access it via http, in case we are able to access it , will it have the same settings as master assuming that it was replicating fine17:45
nowenyes, it should have all the data that the master had, if it was replicating17:46
nowenwhat company are you with again?17:48
mkirankgenares17:48
mkirankok let me take a backup of the directories17:51
mkirankI will confirm once with the team before the install18:01
mkirankthis might take a while , I will not be able to go forward without permission18:07
nowena bit confused by that since it isn't working.18:15
mkirankyeah If it was my decision I would have gone for it :-)18:17
nowenalso, it's not really an update - since it is the same version!18:18
mkirankI will try to convince them18:18
mkirankwould'nt it be a good option to start with the latest version18:19
nowenthe database schema is differnt18:19
nowenyou have you upgrade from the older version18:19
mkirankah18:19
mkirankso the upgrade would be from the web UI ?18:20
nowenno, an rpm -U18:21
mkirankno I meant from the version we have to the new version with changed schema18:21
mkirankwould that be a rpm -U too18:22
nowenrpm -U is the only upgrade systems we have.  the webui upgrade doesn't work18:23
*** immotus (~immotus@rrcs-24-153-193-34.sw.biz.rr.com) has joined #wikid18:30
nowenimmotus: let me know if you have any questions18:41
immotusnowen: thanks!  I'm actually looking at the same problem you were helping mkirank with Sept 27th.  I'm learning WiKID from the ground up, so I thought I'd lurk in here for awhile to see what I can pick up :^)18:43
nowengotcha18:43
nowenyou know, another thing we could do it set up another wikid server and just copy the database to it18:44
immotusnowen: copy the slave's database over to a new wikid server to be the master?18:44
nowenyes18:45
nowenit has to be the same version as the slave18:45
nowenwhat utilities rpm do you have?18:46
nowenit can be a VM18:46
immotusnowen: interesting.. that might at least get us back to where we were when we started..  are there any major configs that we would lose.. or important data files.. or is most of WiKID neatly tucked into the database?18:47
nowenit is mostly in the db.  the certs are in /opt/WIKID/private.18:48
immotusnowen: I like that idea.. that way we could bring it up in a VM, test it, and then boss will be more confident about rolling it into production.  One of his concerns, though, is to find out exactly what went wrong so we don't run into the same problem again when we upgrade.18:50
mkirankI was able to get a new install on my dev sandbox18:50
nowenbased on what I have seen there were a number of customizations that would screw up any upgrade18:50
nowenmkirank: it needs to be http://wikidsystems-dl.com/wikid-server-enterprise-3.4.1.b3314-1.noarch.rpm18:51
nowenor the db won't work18:51
mkirankso install the same version and copy over the db18:52
nowenyes18:52
* immotus thanks WiKIDLogBot for having readable IRC logs18:52
nowenwhat wikid-utilities rpm are you running ?18:52
nowenimmotus:  :-)18:53
mkirankwikid-utilities-3.0.5-118:53
nowenhttp://wikidsystems-dl/wikid-utilities-3.0.5-1.i386.rpm18:55
mkirank@nowen thanks18:58
nowenwas apache running on the master too?19:06
immotusnowen: looks like it is19:08
nowenif you turn it off, does WiKID start correctly?19:08
mkirank@nowen on the master we did an upgrade to a different version , I suspect the schema changes might be the issue19:09
nowenupgrading via rpm updates the schema19:10
mkirankok19:12
immotusnowen: just curious.. what timezone are you in?19:28
immotusnowen: I'm in CDT19:28
nowenEDT19:30
immotusnowen: thanks.  from the logs it looks like you're king of this chat room so I wanted to have a good guess as to what your office hours are :^)19:31
nowen;-)19:31
*** mkirank has quit (Quit: Page closed)19:37
*** nowen has quit (Ping timeout: 248 seconds)20:18
*** nowen (~nowen@99-174-93-102.lightspeed.tukrga.sbcglobal.net) has joined #wikid20:20
*** nowen has quit (Quit: Leaving.)21:10
*** nowen (~nowen@99-174-93-102.lightspeed.tukrga.sbcglobal.net) has joined #wikid21:11
*** immotus has parted #wikid ("Konversation terminated!")21:13
*** nowen has quit (Quit: Leaving.)22:56

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!