It is possible that a fairly high surge current (several amps) develops to charge the low ESR 2×220nF caps when you connect the cable. Once they reach 24V, cable inductance keeps pushing the current forward and LM317 will not absorb a lot of current, limiting itself to ~1.5A. So the current will go into charging the input caps above 24V, potentially up to 48V.
Try again with an electrolytic added at the input. If you have a scope, observe the input voltage waveform when power is connected.