Calibration unit

Error (85): Axis has not been homed

Symptom
While trying to move one of the element of the calibration unit, or while running a focus/offset script, there is an error.
Problem
The calibration unit has not been initialized
Solution
From the command line, run:
kcwiHomeCalUnit

Calibration GUI will not run calibrations, citing a configuration mismatch

Symptom
Calibraiton GUI will not run calibrations showing a mismatch between configurations selected and configurations already scripted.
Re-preparing scripts as directed does not fix it.
Solution
First step is re-preparing the scripts as directed, in case the observer selected a certain number of configurations to calibrate, prepared scripts, and then changed their mind about which configurations to calibrate.... without preparing the scripts again.
If that doesn't work, the GUI is badly confused about which scripts are selected. Open a terminal:
  1. Run cdata to get to the data directory.
  2. Run cd checked_in_gui to move into the directory where the selected configurations are listed.
  3. Run rm *.state to remove all of the state files there. That will let the GUI start from scratch.
  4. Confirm that the selected configurations are what the observer wants to calibrate, prepare the scripts, and run them. New state files will have appeared in the checked_in_gui directory that should match the ones selected and the various "all_calibration.csh", "dome_calibrations.csh", and "nodome_calibrations.csh" scripts should only have the slected state files (otherwise delete them too and try again).

Dome flats have no counts

Symptom
Dome flats have almost no counts, or are much fainter than usual.
Problem
  1. Dome lamps might not be working
  2. Hatch might not be open
  3. Tertiary mirror might have faulted
Solution
  1. Check if lamps are on or off
    • Visually check K2 nasmyth camera
    • Also check dome flats .fits image header. The spectral flat lamps 'FLSPECTR' should be 'On'
    • If lamps are off, turn on the lamps by running modify -s dcs flspectr=1
    • If lamps are on, but counts are still low, a lamp might have burnt out. Increase calibration exposure time in .cal file in observer's folder.
  2. Check if KCWI hatch is open in the Blue Exposure GUI
  3. Check Focal Station in FACSUM
    • If the FocalStn is listed as 'Faulted', the tertiary might not be pointed at KCWI and faulted on the way
    • KCWI needs to be re-sent and tertiary re-initialized
    • FocalStn on FACSUM should then update to 'RNAS'

Calibration script failed to run

Symptom
Calibration script failed to run with a pop up dialogue box titled: Not running calibrations
Problem
Solution

Computers & Software

For SCIENCE DETECTORS, please click here to see that section below

DCS or instrument keywords missing in image headers

Symptom
Keywords such as RA, Dec, ROTPPOSN, or keywords related to the instrument status, are not found in the image headers. These keywords can still be obtained from the kcwiserver command line via show -s dcs commands or by showing individual servers keywords.
Problem
The kcwiheaders process has lost its connection to DCS or to one of the servers, or it is not running.
Solution
Use this procedure to restart kcwiheaders, as well as kcwi global and kcwihistory just in case:
  1. Wait for the exposure to end; do not begin another
  2. kcwi stop kcwi head hist mon
  3. kcwi start kcwi (wait 60 sec, until gshow -s kcwi %wav% returns values)
  4. kcwi start head (full name kcwiheaders, can be abbreviated head)
  5. kcwi start hist (full name kcwihistory, can be abbreviated hist)
  6. kcwi start mon (full name kcwimon, can be abbreviated mon)
  7. In 60 sec, check if kcwiheaders have started using kcwi status head
Newly-acquired images should now have these keywords in the image header.
If CCDCFG or other blue detector keywords are missing from the headers, see this entry.
Service connections have been broken by the restarts, so restart the Status GUI, the Blue/Red Exposure GUIs, and the Blue/Red Config GUIs.

MIRA fails with "cp: missing second argument" error

Symptom
The MIRA procedure starts but as soon as a focal plane camera image is taken, the script ends with an error about missing second argument on "cp"
Problem
The filename of the focal plane camera images is wrong.
Solution
The filename of the focal plane camera should be in the format: kfYYMMDD_<number>.fits
  1. Check the expected filename with the command framerootfpc
  2. Check the current filename with the command show -s kfcs outfile
  3. If they are different, use the following command to fix the problem: modify -s kfcs outfile=`framerootfpc`
  4. Re-run MIRA

Starting the eventsounds GUI

Symptom
No sounds (Exposure Complete, Readout Complete, etc.) are playing.
Problem
The eventsounds GUI or soundboard has crashed or failed to start.
Solution
The eventsounds GUI should be restarted.
From a kcwirun@kcwiserver terminal, run
kcwi start eventsounds

Starting kcwihistory, kcwiheader, or kcwimon

Symptom
The kcwihistory, kcwiheaders, or kcwimon is sending software alarm emails, with messages such as "kcwihistory resuscitation count is excessive".
Problem
The kcwihistory, kcwiheader, or kcwimon has crashed or failed to start.
Solution
The kcwihistory, kcwiheader, or kcwimon should be restarted.
  1. From any terminal, run kcwi stop kcwihistory (or kcwiheaders, or kcwimon)
  2. Check if it has stopped with kcwi status kcwihistory
  3. Run kcwi start kcwihistory In 30 sec, check with kcwi status hist to see if it is running.
  4. You may also need to check all the rest of the processes, including kcwi global, to see if they are the reason the other ones crashed. You can check them all by running kcwi status from kcwiserver.
______________
Old directions
  1. From a kcwirun@moolelo terminal, run $RELDIR/etc/init.d/kcwihistory stop! It will stop even as it tells you that kcwirun lacks the right permissions to do so.
  2. Once kcwihistory has stopped (you can check with the status option), run $RELDIR/etc/init.d/kcwihistory start . Check with status to see that kcwihistory is happily running one process.

Kcwiheaders excessive memory consumption

Symptom
The kcwiheaders is sending software alarm emails, with messages such as "kcwiheaders memory consumption is excessive".
Problem
The kcwiheaders has a slow memory leak and after being active a long time eventually starts using too much memory. If it continues to run and take more memory, eventually it crashes and then headers stop being generated.
Solution
The kcwiheaders should be restarted.
  1. From any terminal, run kcwi stop kcwiheaders or kcwi stop head
  2. Check if it has stopped with kcwi status kcwiheaders
  3. Run kcwi start kcwiheaders
  4. In 30 sec, check with kcwi status head to see if it is running. You can also watch the vis_emir kcwimon display, but it will take a little longer to update.

DS9 AutoDisplay crashed, reports as "running" but won't stop/restart

Symptom
The DS9 AutoDisplay (say AutoDisplayR) GUI has crashed/closed and cannot be reopened.
Problem
The process might no longer be running, but the background service might be.
Solution
  1. Check kcwi status displayr to see if process is running, also note if a valid PID is returned.
  2. Alternately, check ps -elf | grep -i display
  3. If process is running, try to stop it with kcwi stop displayr, or kcwi stop! displayr, or xkill displayr
  4. If it reports 'nothing to stop', it is likely due to a stale PID file. [Ticket 38283]
  5. Look for PID file: ls /kroot/var/run
  6. View PID file: cat /kroot/var/run/kcwidisplayr.pid
  7. Delete the stale PID file: rm /kroot/var/run/kcwidisplayr.pid
  8. Restart AutoDisplay: kcwi start displayr
  9. Verify: kcwi status displayr (should now show as running with a valid PID)

Note: Check both `kcwi` and `kcwiserver` hosts if needed. Call SWOC if PID files persist in multiple locations.

AutoDisplay image oriented wrong

Symptom
The DS9 blue/red AutoDisplay image does not seem to be oriented correctly

Solution
Go to the 'Zoom' tab in AutoDisplay DS9 window

Mechanisms

Generic errors running mechanisms

Symptom
Mechanism moves fail with errors such as:
Problem
Either the Galil controller or the server is in a bad state. A stage might not be initialized.
Solution
1. Check if the stages are homed/initialized.
 
Calibration Unit:
If the failure is related to the calibration unit, it is always safe to initialize it again.
From the background menu, Home/Initialize Components > Initialize Calibration Unit
This can take a long time.
If you are sure of which stage is not initialized, you can use the low level engineering GUI:
KCWI Engineering > Low Level Engineering GUIs > Calibration Unit
The GUI is self-explanatory, and stages can be homed one by one.
 
Blue Exchanger
The only stage that needs to be initialized is the grating rotator. The status can be checked with:
show -s kbes grhomed
If it needs to be initialized, use:
modify -s kbes grhome=1
 
Blue Camera Focus
The status can be checked with:
show -s kbms fochomed
If it needs to be initialized, use:
modify -s kbms fochome=1
Once this is done, you need to restore a sensible focus value, such as focusb -1.85
 
Red Exchanger
The only stage that needs to be initialized is the grating rotator. The status can be checked with:
show -s kres grhomed
If it needs to be initialized, use:
modify -s kres grhome=1
 
Red Camera Focus
The status can be checked with:
show -s krms fochomed
If it needs to be initialized, use:
modify -s krms fochome=1
Once this is done, you need to restore a sensible focus value, such as focusr -1.40
 
2. If this doesn't solve the problem after sending the move again, we need to look at restarting the servers.
 
The calibration unit is controlled by the kcas server, the blue exchanger is on kbes, the blue camera focus stage is on kbms, the red exchanger is on kres, and the red camera focus stage is on krms.
Any server can be restarted with kcwi restart <server>
It is always a good idea to restart the kcwi global, kcwiheader, kcwihistory, kcwimon after restarting a server
kcwi stop kcwi head hist mon
kcwi start kcwi (wait 60s)
kcwi start head; kcwi start hist; kcwi start mon (head can take 60 sec to finish starting, check with kcwi status head
 
3. If the problem persists, it might be time to power cycle the Galils.
 
The main command is kcwiPower, with kcwiPowerStatus showing everything.
Note that the Galils are coupled. The rotator, IFU stage, and the calibration server are on the same port (server 3, port 8), the blue exchanger and the blue mechanisms are on the same port (server 1, port 7), and the red exchanger and red mechanisms are on the same port (server 2, port 7). Be aware that power cycling one of them, will power cycle the other too. This means that a stage might need to be initialized again even if it was working before.

Follow this procedure:

If that doesn't work, call the Instrument Master.

Hatch not opening using keywords or GUI

Symptom
The hatch keywords and commands (hatch open/close) seem to have no effect on the hatch, no light is visible, the hatch close returns a "2"
Problem
The hatch motors are confused between limits (hatch close returns code 2), in a bad state, or the galil is confused
Solution
First try rehoming the hatch with modify -s khas bladecal=reset bladecal=homed
After this, test the hatch with hatch open (exit code 1 is open) and hatch close (exit code 0 if closed, 2 if still confused between limits).
 
If attempting to rehome returned the error: "Error setting bladecal: bladecal: ERR_WRONG_CTRL_MODE (-5254) Wrong control mode for request" do:
 
If that didn't work, power cycle the hatch with the kcwiPower 1 2 command
Restart khas with kcwi restart khas
Test the hatch with hatch open/close

Blue Camera Focus mechanism is not homing, reports spurious errors

Symptom
The focus mechanism is not working. The errors can be "Move already in progress" or "Moves are locked"
Problem
Unless there is a move in progress or the moves are locked, this is likely to be a problem with the kbms server not being able to communicate with the hardware, and the most likely cause is a failure of the Lantronix terminal server
Solution

Blue (commonly BM) grating did not install properly

Symptom
Blue Exposure GUI and Blue Config GUI report the grating as "None". In the Blue Config GUI yellow lights are on for 'B Grating' and B Cwave and B Pwave wavelengths are set to 0.00.

Problem
Occasionally, the grating rotator is rotated slightly too far during grating installation. Once it is out of tolerance, it reports the grating as "None".
Solution

KBlue filter shows 'Error'

Symptom
'Blue Filt' light on KCWI Status GUI turned Yellow while displaying 'Error'.

Problem
KBlue filter did not install/uninstall properly during a configuration change.
Solution

Red camera focus move fails with 'Error moving focus mechanism'

Symptom

Problem
The red camera focus mechanism timed out and did not complete its move to the requested focus position and the KCWI Red Mechanism Service (krms) entered an error state.
Solution
  1. Restart the KCWI Red Mechanism Service and wait 60 seconds:
    • kcwi restart krms
    • sleep 60
  2. Confirm that the Red Mechanism Server GUI updates after the restart. If moves are locked, replace #### with the movelock password and run:
    • modify -s krms movelock=####
  3. Set the red focus to the desired value:
    • focusr -1.38
  4. If the command completes without an error, the red focus mechanism has recovered.
  5. Because krms was restarted, restart the KCWI global, history, header, and monitoring services:
    • kcwi stop kcwi head hist mon
    • kcwi start kcwi, then wait 60 seconds
    • kcwi start head
    • kcwi start hist
    • kcwi start mon
    • Wait 60 seconds, then check with kcwi status head
  6. Restart the following GUIs, which may be stale after the service restarts:
    • KCWI Status
    • KCWI Blue Config
    • KCWI Blue Exposure Control
    • KCWI Red Config
    • KCWI Red Exposure Control

Rotator

Rotator does not seem to communicate with TCSU, is stuck on Idle, Halt, or Slew

Symptom
FACSUM reports an incorrect status, and Sky PA cannot be set.
Problem
The rotator is not fully initialized, or watchrot has died or is in a bad state.
Solution
  1. Restart watchrot from a terminal on kcwiserver:
    kcwi stop watchrot
    kcwi start watchrot
  2. If that doesn't work, stop watchrot FIRST (disable KCWI Rotator in the background menu), initialize/home the rotator from the background menu, then enable the KCWI rotator again.

Rotator has high errors, not tracking closely (less extreme)

Symptom
High rotator errors; drive/tracking lags or catches up in big jumps.
Problem
The rotator is not fully initialized, watchrot has died or is in a bad state, or the kros service has died or is lagging.
Solution
  1. Restart watchrot from a terminal on kcwiserver:
    kcwi stop watchrot
    kcwi start watchrot


  2. If that doesn't work, stop watchrot FIRST (disable KCWI Rotator in the background menu), initialize/home the rotator, then enable the KCWI rotator again.


  3. If that doesn't work, restart kros from a terminal on kcwiserver:
    kcwi stop kros
    kcwi start kros
    kcwi status kros

    Check whether it started; give it 30 seconds.

  4. If kros started, stop watchrot first, initialize/home the rotator from the background menu, then enable the KCWI rotator again.


  5. If kros started, restart KCWI global, headers, history, and monitoring:
    kcwi stop kcwi
    kcwi start kcwi


    Wait 60 seconds, confirm gshow -s kcwi %wav% returns values, then run:

    kcwi restart kcwihistory
    kcwi restart kcwimon
    kcwi restart kcwiheaders

    Wait 60 seconds and confirm the header service started.

  6. Restart the Status GUI, Blue/Red Exposure GUIs, and Blue/Red Config GUIs because service connections were broken by the restarts.

Rotator stops tracking at random times, does not reach the requested position

Symptom
There are many possible symptoms: the rotator might stop tracking and stay in a fixed position, try to reach a requested PA without getting there, move back and forth between tracking and slewing, or stay stuck in "slew".
Problem
One possible problem is overheating of the rotator Galil. This can cause one or two rotator encoders to read incorrect values, which causes the rotator tracking software to shut down tracking.
Solution
  1. Verify that the encoders are reading incorrect values. Open the rotator engineering GUI and check encoders ABDE. Encoders D and E usually show errors. Also check whether the top-right indicator says Encoder Error = True
  2. Check the electronic cabinet temperature with kcwiTempStatus The Cab Int (cabinet interior) temperature should be below 20 C. If no value is returned, kt2s may be in simulation mode; stop and start it.
  3. If the temperature is too high, cool the cabinet. Increase the glycol flow or check that the glycol valve is open; a good reference value is 1 GPM. If needed, ask someone at the summit to open the electronic cabinet door. This releases heat into the dome and may cause light contamination.
  4. Stop watchrot:
    kcwi stop watchrot
  5. Reset the rotator Galil:
    modify -s kros reset=1
  6. Restart the rotator server:
    kcwi restart kros
    Then restart KCWI global, headers, history, and monitoring.
  7. Restart the Status GUI, Blue/Red Exposure GUIs, and Blue/Red Config GUIs because service connections were broken by the restarts.
  8. Initialize the rotator from the background menu.
  9. From the background menu, select KCWI Control, then Enable KCWI rotator.
  10. If this doesn't work, remove two encoders from the standard position measurement. Log in to the rotator Galil and follow these instructions:
    telnet rotgalil
    SN AB
    ^]

    This setting goes away if the Galil is reset.
  11. As a last resort, call the Instrument Master to restart power to the rotator. Power cycling means you must rehome the rotator, calibration unit, and IFU stage because they share a power switch. Avoid doing this on-sky if possible.

Sending a Sky PA change is interrupted by a Virtual Circuit Disconnect

Symptom
The observer attempted to set the Sky PA position angle using the Blue Exposure GUI but failed with some version of the following error:
**********************************************
Virtual circuit disconnect 192, 192
vm-k2epicsserver:7502
**********************************************
Error setting ROTMODE: Can't put k2:dcs:pnt:fast.DROT to channel access (User specified timeout on IO operation expired)
Problem
The virtual disconnect interfered with changing the PA, so it was never sent or only partially sent.
Solution
Resend the "Set Sky PA" command by reclicking the button on the Blue Exposure GUI. Check FACSUM that the Rotator successfully goes to the requested angle. If not follow other rotator troubleshooting directions.

Science Detectors

Blue/Red Detectors have almost no light after a Mira (FPCam still in beam)

Symptom
The observers are trying to start their science/standard exposure right after a Mira, and there is no light or almost no light on either detector. What light there is does not look normal. See picture below for an 800sec blue and 300sec red example.

Problem
The observers have probably forgotten to re-send their configuration, so the Focal Plane Camera is still in beam instead of their slicer. The Blue Config GUI shows a yellow light next to IFU, indicating that the FPCam is still in place.
Solution
Have the observer send their configuration from the Configuration Manager in Firefox using the green play button. After pressing "Execute", wait until the move is complete, shown by the Execute window closing AND the Blue Config GUI shows the correct slicer installed.

Blue Detector stops taking images or rejects input

Symptom
It is impossible to start a new exposure. Neither the command line nor the buttons are able to initiate an exposure.
Problem
The detector server is in a bad state. This usually results from pausing an exposure following with an abort or stop.
Solution
The detector server should be restarted.
  1. From the login menu, open a terminal as the CURRENT user
  2. Run kcwiRecoverBlueDetector
  3. Take a test exposure tintb 0; goib

Missing blue header keywords such as CCDCFG

Symptom
The CCDCFG or other blue detector keywords are missing from the blue header.
Problem
The blue detector server is confused.
Solution
The detector server should be restarted.
  1. From the login menu, open a terminal as the CURRENT user
  2. Run kcwiRecoverBlueDetector
  3. Check if kcwiheaders is started with kcwi status head; if not restart it and wait 60sec.
  4. Take a test exposure tintb 0; goib

Blue Detector server is not starting or stopping

Symptom

rpcKey_clientFuncs.c 3928: Server is not ready.
ERROR - Access to the RPC client is not allowed for service kbds!
Failed to open service "kbds".
ERROR - Access to the RPC client is not allowed for service kbds!

Problem
The most likely cause is dirty fibers. This causes a loss of communication between the ARC board and the controller. If you look at the log stored in /var/log/kroot/kcwi.log in kcwitarg (not kcwiserver), you will see entries such as:

Dec 18 16:08:36 kcwitarg kbds_server: arc_api.c,517: Failed to setup ARC device: ( CArcPCIe::Command() ): ( CArcPCIe::ReadReply() ): Time Out [ 2 sec ] while waiting for status
Exception Details: 0x203 TDL 0x7d 0xffffffff 0xffffffff 0xffffffff
Dec 18 16:08:36 kcwitarg kbds_server: arc.c,208: Failed to setup ARC device

Solution
The fiber ends should be cleaned.
  1. The problem is likely to be in the control room, but it might also be on the instrument side. Clean both.
Recovering after cleaning the fibers involves the following steps
  1. Power cycle the rotator: kcwiPower 3 8 off, wait 10 sec, kcwi stop kros kcas, kcwiPower 3 8 on, wait 60 sec, kcwi start kros kcas, wait 60 sec, see if the rotator will home successfully (Home/Initialize menu), then home calibration stages too. If they fail, clean the fibers again and start over.
  2. Restart kbds and krds: kcwi stop kbds, kcwi stop! krds, wait 10 sec, kcwi start kbds krds, wait 60 sec, try to show their power status gshow -s kbds ccdpower -s krds ccdpower Blue will likely be powered on as default, red will be powered off as default. If the services won't show keywords, clean the fibers and start over.
  3. Restart kcwi global, head, hist, mon: kcwi stop kcwi head hist mon, kcwi start kcwi, wait 60 sec, kcwi start hist mon, wait 10 sec, kcwi start head, wait 50 sec.
  4. Service connections have been broken by the restarts, so restart the Status GUI, the Blue/Red Exposure GUIs, and the Blue/Red Config GUIs.
  5. Run vis_emir kcwimon & to open the monitoring software to check that all the services are happy.
  6. Run kcwiInit to set all the various directories (yes you want a new directory, nothing will be overwritten), frame prefixes and numbers, etc. If it barfs about services like above, clean the fibers again.
  7. Open kcwiDisplayb and kcwiDisplayr from the background menu (Individual GUIs section) and then in a terminal: tintr 1, tintb 1, object TEST, imtype TEST, goibr 5 5 This will attempt to take 5 blue and 5 red images. If all 5 come through and look ok, ending with final frame number 5 on both, fiber recovery complete! If not, clean the fibers again.
  8. The KCWIA guider will be mad after fiber comms got interrupted. Restart guider camera power with kcwiPower 2 1 cycle and call SWOC to finish recovering the guider.

Red Detector server has crashed, recovery

Symptom
Problem
The red detector server gets into a bad state when an exposure or readout is interrupted at the wrong time, such as:
In this state, the detector's internal reset that should be hidden becomes saved as a bias frame, and the GUIs and headers can become inconsistent with the true exposure sequence.
Solution
The detector server should be restarted.
  1. From the login menu, open a terminal as the CURRENT user
  2. Run kcwiRecoverRedDetector and follow directions.
  3. Take a test exposure tintr 0; goir
 
Explicitly, the red recovery script does the below steps as well as restarting the GUIs and eventsounds.
  1. Stop the red detector server
    kcwi stop! krds
  2. Start the red detector server and then give it 60 sec to start.
    kcwi start krds
  3. Then restart kcwi global, kcwiheaders, kcwihistory, kcwimon
  4. Initialize the red side, which resets detector parameters, directories, prefixes, autoshut=1, ccdpower=1
    kcwiInit -red
  5. Service connections have been broken by the restarts, so restart the Status GUI, the Blue/Red Exposure GUIs, and the Blue/Red Config GUIs.

Guider and Focal Plane Camera

The Focal Plane Camera is not exposing, is rejecting keyword changes

Symptom
Exposures fail, attemps to change the exposure time fail, the camera cannot be powered up
Problem
Either the camera hardware or the kfcs server are in a bad state
Solution
  1. First check if the focal plane camera is in by typing slicer into a terminal and seeing if you get fpcam back. If not, FPCam is not in beam, fix with slicer fpcam
  2. Use these commands to restore camera functionalities (MUST BE DONE FROM KCWISERVER):
    fpcamPower off
    fpcamPower on

    If you are lucky, the camera turned on and successfully set the 4x4 binning. If not, continue.

  3. Use these commands to restore camera functionalities (MUST BE DONE FROM KCWISERVER):
    fpcamPower off
    kcwi restart kfcs
    fpcamPower on

    If the camera turned on and successfully set the 4x4 binning, continue to the next step to restore all the settings, services, and displays. If not, try the above set one more time, then call the instrument master.

  4. Restart the AutodisplayFPC from the KCWI Individual GUIs background menu
  5. Restart the kcwi global, kcwiheaders, kcwihistory, kcwimon
    kcwi stop kcwi; kcwi start kcwi
    kcwi stop head; kcwi start head
    kcwi stop hist; kcwi start hist
    kcwi stop mon; kcwi start mon
  6. Restore the correct prefix and data directory for the kfcs server.
    Use outdir -all to check the directory for tonight (like /s/sdata1400/kcwi1/<UTDATE>):
    kcwiInit

If it is necessary to continue displaying FPC images, the FPC image display must also be restarted. This can be done from the background menu, under KCWI Individual GUIs.
Service connections have been broken by the restarts, so restart the Status GUI, the Blue/Red Exposure GUIs, and the Blue/Red Config GUIs.

The NEW KCWIA guider is not happy.

Symptom
The KCWIA andor camera guider will not take an exposure.
Problem
The k2-andor-camserver2 KCWIA camera server is not happy. The mechanisms run on k2-magiq-camserver1, and while it could be unhappy, it normally is not.
Solution
See Shui's page for SWOC to guide your steps: https://www.keck.hawaii.edu/twiki/bin/view/Software/SoftwareOnCallNotes#K2KCWIA
If they ask you to power cycle the KCWIA camera, the steps are:

The OLD guider reports "INTERNAL MODE" or shows two vertical black lines

Symptom
Using the EXPOSE button produces errors for "INTERNAL MODE"
Problem
The kcwi magiq camera server is not working correctly.
Solution
The OA can fix this problem by restarting the KCWI magiq camera server and the magiq server.

If you want to try to fix it yourself, follow these steps:

Test that the Guider is now working correctly:

General OLD GUIDER problems: No images, no control of mechanisms, rcp errors...

Symptom
Often after an instrument swap, the guider is unresponsive: no images, no control of mechanism, generic rpc errors on the console
Problem
A number of problems can cause this: incorrect power up sequence, problems with the fiber connections, Galil in a confused state, spurious software running on the magiq servers, incorrect initialization of the magiq interface card in the back of k2-magiq-camserver1
Solution
The first approach is to power cycle the magiq server using the kcwiPower command, then restart the camera server and the magiq server.
If that doesn't work, this is a ticket submitted by Liz (K2-24972):
Long story -
 
In summary, this problem requires the intervention of software on call, and might require rebooting the magiq server k2-magiq-camserver1.

KCWI blue focus analysis fails

Symptom
The KCWI blue focus analysis fails with error 'Optimal parameters not found'
Problem
One or more focus images in the blue focus sequence are bad or atypical (maybe distorted or poorly illuminated bars), so the script cannot fit the bar profiles in that frame. Because the bad frame is still listed in the blue focus .imfile used by kcwi-blue-focus-analyze, the fitting routine fails on that frame and the entire focus analysis aborts
Solution