# Errors on docker container pfc-modbus-server

**URL:** <https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375>\
**Category:** Python\
**Tags:** docker\
**Created:** [January 16, 2023, 6:31pm UTC](https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375 "2023-01-16T18:31:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisrough](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chrisrough](https://www.wago.community/u/chrisrough)\
**Post date:** [January 16, 2023, 6:31pm UTC](https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375/1 "2023-01-16T18:31:44Z")

</div>

Hi all  
I’m getting these errors in docker logs when running the container - container keeps trying to restart.  
Does anybody know why?  
Thank you  
Best  
Chris

PORT: 502  
MAX CONNECTIONS: 5  
OPERATION MODE: 0  
MODBUS DELAY MS: 0  
KBUS CYCLE TIME MS: 50  
KBUS PRIORITY: 60

start init daemons  
dip-switch not found in /sys/devices/  
INFO: PROFIBUS DP device “UIO\_DPC31\_XINT” not available  
start kbusmodbusslave  
verbosity level is 7  
Not running in background  
kbusmodbusslave running…  
ADI Device[0]: libpackbus  
Found kbus device on: 0  
Modbus: Wait for KBUS to be initialized  
KBUS open device failure.  
Failed to start KBUS thread!

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [January 17, 2023, 6:52am UTC](https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375/2 "2023-01-17T06:52:14Z")

</div>

Have you disabled the runtime ?  
Is the K-bus properly running (end module present, etc…) ?

---

<div class="post-metadata">

**Author:** ![chrisrough](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chrisrough](https://www.wago.community/u/chrisrough)\
**Post date:** [January 17, 2023, 2:00pm UTC](https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375/3 "2023-01-17T14:00:44Z")

</div>

runtime is disabled, yes  
we use Controller Type 751-9301 without KBUS  
docker container cannot run without KBUS?

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [January 17, 2023, 2:08pm UTC](https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375/4 "2023-01-17T14:08:37Z")

</div>

Docker can run without K-Bus, but you are using pfc-modbus-server.  
As its name says, this container is made to provide kbus IO’s to Modbus server on a PFC.  
It has no purpose on CC100.  
What do you want to do ? Provide IO’s to Modbus or to another Containerized application ?  
You might be interested in the following link :

> **[GitHub - Helmut-Saal/CC100-Node-Red: Node-Red Library to controll EA's on CC100](https://github.com/Helmut-Saal/CC100-Node-Red)**
>
> Node-Red Library to controll EA's on CC100. Contribute to Helmut-Saal/CC100-Node-Red development by creating an account on GitHub.

> **[cc100-howtos/HowTo\_Access\_Onboard\_IO at main · WAGO/cc100-howtos](https://github.com/WAGO/cc100-howtos/tree/main/HowTo_Access_Onboard_IO)**
>
> main/HowTo\_Access\_Onboard\_IO

This could easily be done using CODESYS as well !

---

<div class="post-metadata">

**Author:** ![chrisrough](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chrisrough](https://www.wago.community/u/chrisrough)\
**Post date:** [January 17, 2023, 4:23pm UTC](https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375/5 "2023-01-17T16:23:57Z")

</div>

Thank you for the links.

We would like to use RS485 (X11) interface on CC100 (751-9101) as Modbusmaster and read the attached energy counters (879-3020) using the Modbus interface.

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [January 18, 2023, 6:38am UTC](https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375/6 "2023-01-18T06:38:05Z")

</div>

Well in this case forget about pfc-modbus-server.  
Here is a Node-RED example for what you want to do :

> **[GitHub - WAGO/cc100-serial-communication: This repository shows how the...](https://github.com/WAGO/cc100-serial-communication)**
>
> This repository shows how the serial interface of the CC100 can be integrated into a Docker container (Node-RED) - GitHub - WAGO/cc100-serial-communication: This repository shows how the serial int...

And an dashboard example :

> **[GitHub - WAGO/cc100-mid-dashboard: This repo describes how to set up a sample...](https://github.com/WAGO/cc100-mid-dashboard)**
>
> This repo describes how to set up a sample dashboard for the WAGO MID in Node-RED - GitHub - WAGO/cc100-mid-dashboard: This repo describes how to set up a sample dashboard for the WAGO MID in Node-RED

---

<div class="post-metadata">

**Author:** ![chrisrough](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chrisrough](https://www.wago.community/u/chrisrough)\
**Post date:** [January 18, 2023, 6:56am UTC](https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375/7 "2023-01-18T06:56:02Z")

</div>

thank you, I’ll have a look  
do you also know about doing this in pure python?

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [January 18, 2023, 7:21am UTC](https://www.wago.community/t/errors-on-docker-container-pfc-modbus-server/375/8 "2023-01-18T07:21:23Z")

</div>

I’ve only used PyModbus for TCP communication but it looks it can handle serial communication as well. You should mount the /dev/tty serial port like it’s done in the Node-RED example.
