Bobby T. Griffith seeks federal habeas corpus relief pursuant to 28 U.S.C. *111§ 2254 on the ground, inter alia, that his plea of guilty before a Missouri state court to the offense of sodomy was involuntary. After appointment of counsel and an evidentiary hearing, the United States District Court for the Eastern District of Missouri granted the petitioner relief.1 It ordered the petitioner’s judgment and sentence vacated, and granted the respondent one hundred and twenty days to allow the petitioner to file appropriate pleadings for specific performance of his plea bargain agreement and to be resentenced before a different judge; or to give the petitioner the opportunity to withdraw his plea of guilty and to grant him a jury trial as charged. We affirm for the reasons stated below.
Griffith was originally arrested on two charges of forgery and incarcerated. He was nineteen years old. He was subsequently charged with three counts of sodomy which allegedly occurred during his incarceration. After arraignment and dismissal of the forgery counts and the two companion counts of sodomy, the petitioner pled guilty to a single charge of sodomy. The plea was accepted by the court after inquiry into its voluntariness and after establishing its factual basis. See Boykin v. Alabama, 395 U.S. 238, 89 S.Ct. 1709, 23 L.Ed.2d 274 (1969); State v. Blaylock, Mo., 394 S.W.2d 364 (1965).
The sentencing was seven weeks later. After observing his eodefendant receive a sentence of thirty years, the following colloquy occurred:
THE COURT: [To petitioner’s attorney] I hate to put you on the spot, being a former Prosecutor, in your experience as a Prosecutor and an attorney have you ever read a presentence investigation like this?
MR. TRAMMELL: No, Your Honor, I haven’t.
THE COURT: Mr. Griffith, do you have any explanation about it?
THE DEFENDANT: I didn’t do it.
THE COURT: You didn’t do it? When did you decide you didn’t do it, Mr. Griffith?
THE DEFENDANT: I knew it all along, but what could I do, with them people hitting me on the head and spraying mace in my face, and the lawyer said I was going to get in on it anyway.
It is this proceeding that the petitioner argues establishes the involuntary nature of the plea previously given. He also asserts that the last sentence should read: “The lawyer said I was going to get five years on it anyway.” No inquiry was made by the sentencing judge to resolve the doubt cast over the voluntariness of the petitioner’s plea by the statements made by the petitioner at the time of sentencing.2 He was sentenced to thirty years.
*112Whether a waiver of constitutional rights is effective is an issue governed by federal standards. Boykin v. Alabama, supra, 395 U.S. at 243, 89 S.Ct. 1709. A plea of guilty embodies the waiver of several constitutional rights, including the right against self-incrimination, the right to confront one’s accusers and the right to a trial by jury. McCarthy v. United States, 394 U.S. 459, 466, 89 S.Ct. 1166, 22 L.Ed.2d 418 (1969). The strong presumption is against the validity of waivers of constitutional rights, and the acceptance of a plea of guilty must be approached with the utmost solicitude. Von Moltke v. Gillies, 332 U.S. 708, 723, 68 S.Ct. 316, 92 L.Ed. 309 (1948); Knight v. State of Minnesota, 484 F.2d 104, 106 (8th Cir. 1973). The record must affirmatively show, under the totality of the circumstances, that the plea of guilty was voluntary, and it is the duty of the judge to establish by inquiry as thorough as the circumstances demand its constitutional validity. Boykin v. Alabama, supra 395 U.S. at 242, 89 S.Ct. 1709; Von Moltke v. Gillies, supra 332 U.S. at 723-724, 68 S.Ct. 316; Smith v. Wolff, 506 F.2d 556, 560 (8th Cir. 1974).
This federal standard was not met here because the record does not affirmatively show that the plea of guilty was a voluntary one. To the contrary, it indicates clearly that the petitioner denied his prior admission of guilt. The record as thus made, without further inquiry by the court to insure the voluntariness of the plea, does not rebut the strong presumption against waiver of constitutional rights.3
But the failure of the state court to make a record affirmatively showing the voluntariness of a plea of guilty in accordance with the precepts of Boykin does not automatically vacate the plea. The state may still show, by way of post-conviction proceedings, that the plea was voluntarily made.4 Todd v. Lockhart, 490 F.2d 626, 627-628 (8th Cir. 1974) (per curiam).
The respondent has not carried its burden of proof here. There was no independent testimony offered by the state that the petitioner was not beaten or maced. There is, on the other hand, evidence in the record by other prisoners that they and the petitioner were beaten and maced and that the guilty plea was made in order to escape the custody of the jailers. See Machibroda v. United States, 368 U.S. 487, 493, 82 S.Ct. 510, 7 L.Ed.2d 473 (1962).
The District Court granted the petitioner relief on the ground that a plea bargain made with the prosecutor was breached. It relied on Santobello v. New York, 404 U.S. 257, 92 S.Ct. 495, 30 L.Ed.2d 427 (1971). We decline to adopt this reasoning because the agreement to recommend a five-year sentence was conditioned upon a request for recommendation by the state court. See n.2, supra. Further, it was explained to the petitioner that the recommendation, if *113made, would not be binding upon the court.5
We do, however, believe that the petitioner was influenced to plead guilty by his belief that a five-year sentence would be given. In our view, this understanding was not an unreasonable one and is an additional factor supporting a finding that the plea of guilty was an involuntary one.6 See Reed v. Turner, 444 F.2d 206, 209 (10th Cir. 1971) (the voluntariness of a plea of guilty turns on the subjective mind of the defendant); Ford v. United States, 418 F.2d 855, 858 (8th Cir. 1969) (same); United States v. Lester, 247 F.2d 496, 501 (2nd Cir. 1957).
The decision of the District Court is affirmed. The-judgment and sentence entered against the petitioner on his plea of guilty is vacated, with the right preserved in the State of Missouri to take such further action against the petitioner as is appropriate.