Much depends on how the railgun technology works.
For example, would it be possible to replace the bullets with very small metal pellets (possibly metal foam or wireballs) covered in soft rubber and ablative foam? This would enormously decrease the range, but the weapons could become nonlethal - less metal to be electromagnetically accelerated, way less kinetic energy, no penetrative power to speak of.
Or the other way round: heavier projectiles, that would not be accelerated to the same disastrous speeds, and whose nature could be further rendered less lethal. Imagine a rigid steel wire, powering a nerf bullet with a soft (or not so soft) rubber tip. This could still have a significant range - it would be a sort of arrow - while not being necessarily lethal. The energy transfer from the railgun coil would probably shorten the railgun lifetime significantly - instead of a quick electromagnetic fling you'd get a comparatively slower build-up.
Or "micro-flechette rounds" - depending on the size of the flechettes, air friction could slow them down enough to not be (immediately) lethal, or not unless some vital organ gets mulched (e.g. liver or spleen). The railgun would still be lethal at point-blank range, which could be useful in some scenarios. And of course it would depend on which bullets were fired.
This might have any negative effect on the railguns' life that we might desire (from none at all, to turning them into one-shot blunderbusses when the internal linear coupled coil overloads and cracks, or even melts down).
Also the firing could have lots of attached special effects, like the ablative foam exploding with a loud bang (2 kps is way over the speed of sound), or the wireballs igniting due to atmospheric friction (that is actually very unlikely at sea level, but who knows... maybe magnesium-steel wireballs were selling for a song and someone thought they might cheaply replace pure steel ones).
"Nonlethal" means actually "not intentionally and directly lethal". Someone hit in the face, or at point-blank range, or set on fire by an unintentionally incendiary round could still die. A hard hit in the wrong place can still kill someone with the appropriate condition. Hitting someone who is driving... etc.