Running WinCC OA on CentOS with User other than root.

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
8 posts • Page 1 of 1
Harish
Posts:13
Joined: Fri Nov 11, 2016 8:39 am

Running WinCC OA on CentOS with User other than root.

Post by Harish »

We have installed WinCC 3.15 on CentOS. And running /executing WinCC Application with a User other than root.

Scenario:

WinCC Console is running as service.

This user has execute rights on all folders.

With this user some functions can not be executed, they returns error. e.g. Online backup returns following error: "WCCOAToolMedia ended unexpectedly"

Are there any standard suggestions/practices to run WinCC OA on CentOS as another user (other than root).

We will be happy if you share your experinces with this.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Running WinCC OA on CentOS with User other than root.

Post by mkoller »

"This user has execute rights on all folders."
You have 2 folder trees: the installation and your project.
This user needs at least rx rights on all directories in the installation and the project and it needs write rights for all files in the project.
You simply can make this user the owner of the whole project tree.

Harish
Posts:13
Joined: Fri Nov 11, 2016 8:39 am

Re: Running WinCC OA on CentOS with User other than root.

Post by Harish »

Hi Martin,

thanks for your reply.

The user has all rights to those directories you mentioned. Still it won't work. :(

Just to test we tried with all rights to all directories without any success.


Regards,

Harish

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Running WinCC OA on CentOS with User other than root.

Post by mkoller »

Then please get in contact with our support crew and describe exactly what you tried and what does not work with which errors

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Running WinCC OA on CentOS with User other than root.

Post by leoknipp »

Our support was working on similar topics in the last time.
Have you been in contact with the support?
Does it work when WinCC OA is not running as service?

Best Regards
Leopold Knipp
Senior Support Specialist

Harish
Posts:13
Joined: Fri Nov 11, 2016 8:39 am

Re: Running WinCC OA on CentOS with User other than root.

Post by Harish »

Yes, we already forwarded this issue to our Siemens partner.

Everything works fine if WinCC OA is running as Desktop application. :)

Regards,

Harish

agruber
Posts:147
Joined: Tue Sep 07, 2010 2:52 pm

Re: Running WinCC OA on CentOS with User other than root.

Post by agruber »

When I have tested for your error description I could not see the same one, but I have found some other problem.

On the more modern operating systems the sudo command lets certain environment variables not pass through to the called command with sudo, even when "preserve env"-flag (-E) is set.

With our suggested way in the documentation to run the pmon as another user the WinCC OA bin path is not added to the PATH environment variable from the WinCC OA processes, this results in WCCOAtoolMedia not to be found when running the online backup.

But the error message in that case is a different one:

Code: Select all

WCCILdata0:error in exec WCCOAtoolMedia: Datei oder Verzeichnis nicht gefunden
WCCILdata    (0), 2017.06.30 11:41:56.728, SYS,  SEVERE,    113, Online-Backup of database, DataManDpInternSup, refreshBckupStatus, Could not open output file from WCCOAtoolMedia
This is fixed in the upcoming P004 or can be solved by modification of the PMON start when you use the "old" init.d method. Within the init.d script call your pmon like this:

Code: Select all

sudo -E -u myOSuser PATH=$PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH ${PVSS_PATH}/bin/WCCILpmon &
As said, your error is different, so it will probably not solve your issue. But its worth a try.

BR,
Andreas
Customer Care

Harish
Posts:13
Joined: Fri Nov 11, 2016 8:39 am

Re: Running WinCC OA on CentOS with User other than root.

Post by Harish »

Hi Andreas,

I will give try. On positive results, i will post here.

Thanks.

Regards,

Harish

8 posts • Page 1 of 1