I recently learned there was an attempted coup against the Japanese emperor near the end of WWII to stop him from surrendering to the US. This lead me to wonder if the US or other Allies faced any uprisings during post-WWII occupation of Germany and Japan. Are there any accounts of Allied soldiers encountering armed rebellion against their occupation?
In Japan, there was essentially no armed resistance of any kind. The Japanese government largely co-operated in demobilising the armed forces and securing/handing over materiel (although they did stand by and allow looting). The Japanese army in Japan was basically gone by the end of 1945, and its command and administrative structures dismantled through 1946.
Some hidden caches of arms were found by occupation forces, but there does not seem to be any serious attempt at utilising these by Japanese forces.
In one sense, uprisings in Japan were unnecessary - the government was largely co-operative, able to have a say and its voice heard in reform implementation. Resistance is either based on realistically viable, mistreatment, and/or a lack of other options for involvement in administration. None of these things rang true.
Germany was largely the same, although in 1945 there was some (very) small-scale resistance from so-called Werwolf groups, but this was small-scale and minor, and its most important impact was likely creating distrust of the German population in Allied soldiers and officials, than any actual military or political consequences.