• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • 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.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

Forwarded to devs 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.
 
Back
Top