• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Docker: invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit

WebHostingAce

Silver Pleskian
Username:

TITLE

Docker: invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian 18.0.66 Update #2
Web Pro Edition
AlmaLinux 8.10 (Cerulean Leopard)

PROBLEM DESCRIPTION

Updating the Docker settings via the Plesk interface after Docker has been started through the CLI results in the error:

'invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit'

STEPS TO REPRODUCE

Start Docker via the CLI with the required Ulimit configuration:

Code:
#docker run --name=varnish-2 --ulimit memlock=-1 -p 127.0.0.1:32782:80 -p 127.0.0.1:7443:8443 -v /root/varnish/conf:/etc/varnish/ varnish:7.6.1

Then, go to the Plesk interface and try to update the 'Automatic start after system reboot' setting for this Docker container or any other setting

ACTUAL RESULT

Error Message: "invalid JSON: json: cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit" is displayed.

The setting will not be updated.

EXPECTED RESULT

Settings to be successfully updated.

ANY ADDITIONAL INFORMATION

(DID NOT ANSWER QUESTION)

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Thank you for the report. I forwarded it to our team and I will update you with more details as soon as possible.
 
@WebHostingAce the bug is confirmed and identified with ID EXTPLESK-6371. We will introduce a fix in the upcoming releases. Unfortunately, I cannot provide any ETA yet. Thank you once again for bringing that to our attention!
Any update on this issue? It's been a month already and do we have workaround while waiting for fix?
 
Just wanted to confirm that our team released an update today (Docker 2.1.2) which fixes the issue with the container failure:
Fixed the issue where an operation with a container failed with the “cannot unmarshal string into Go struct field HostConfig.HostConfig.Ulimits of type units.Ulimit” error. (EXTPLESK-6371)

Thank you for reporting the issue.
 
Back
Top