JW

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 160 total)
  • Author
    Posts
  • in reply to: Communication Line bound to server signal limitation #8870
    JW
    Participant

    My Test Result

    When doing 1000,2000,3000,4000 signals per device, every thing works well.

    When doing 5000 signals per device, communicator gets all the signals, but only 318 signals are sent to server. (which is different from 8000 signal test)

    the signals sent to server seems to be uncertain when the limit is exceeded.

    in reply to: Bulk Creation of Devices and Communication Lines #8829
    JW
    Participant

    The method I use is edit the xml files inside the yourprojectname/BaseXML folder. KP.xml is the device table; Incnl.xnl is input channel.

    If you are familiar with xml, you can write a script to generate a complete xml file.

    Or you can make 1 example in the configuration database first, then use a script or text editor to duplicate the lines and replace the content. then copy the lines your generated back to the xml file.

      <KP>
        <KPNum>10</KPNum>
        <Name>Example</Name>
        <KPTypeID>214</KPTypeID>
        <Address>1</Address>
        <CallNum>127.0.0.1</CallNum>
        <CommLineNum>1</CommLineNum>
        <Descr />
      </KP>
    in reply to: Communication Line bound to server signal limitation #8827
    JW
    Participant

    Thanks Mikhail. I checked my other project, 3000 signals per device worked correctly. So surely 2810 is not the limit.
    Will test 4000 and 4500. 4000×2 is much more convenient than 8×1000, and should be enough for most of my projects.

    in reply to: VM communication #8815
    JW
    Participant

    Set VirtualBox network as “Bridge Adapter” will make your host and VM just like 2 machine in a LAN environment.

    I have been running this setup for a long time, no issue so far.

    For Modbus salve in window 7 VM, you will need to set firewall in bound rule to allow port 502 traffic.
    For Modbus salve in Linux VM, you will need to change port number to larger than 1024, e.g. 1502.

    in reply to: The aspx page is not displayed #8795
    JW
    Participant

    Which repository did you install mono from?

    My coworker encountered some issues when install mono from repository for ubuntu.

    I reinstall mono from repository for Raspbian, then everything works fine.

    add repository for Raspbian from mono home page

    sudo apt install apt-transport-https dirmngr gnupg ca-certificates
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    echo "deb https://download.mono-project.com/repo/debian stable-raspbianbuster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
    sudo apt update

    reinstall mono and also reinstall this 2 plugin

    sudo apt-get install mono-complete
    sudo apt-get install libapache2-mod-mono mono-apache-server4
    in reply to: scheme view stuck with loading animation #8596
    JW
    Participant

    I did another test on my laptop as server
    Windows 10, i5 + 16GB RAM

    Using Firefox both locally and remotely will have this issue.

    There is an error on Firefox when stuck on loading.
    ns_error_not_initialized schemeform.js

    https://drive.google.com/file/d/1I-vHlothMHODKWG7C_nNVINvF_xL367a/view?usp=sharing

    in reply to: scheme view stuck with loading animation #8593
    JW
    Participant

    I tried on 3 of my servers, both are Linux
    1. 2 core cpu + 1GB ram (+2gb ssd swap)
    2. 4 core 8th gen i5 + 8GB ram

    The issue appear on both while I am using Firefox from my laptop within 1~3 minute of clicking.
    I tried Chrome, after clicking about 10 minutes, they are still working.

    in reply to: scheme view stuck with loading animation #8584
    JW
    Participant

    The issue can be reproduce on the official demo website.
    http://rapidscada.net/scada/Login.aspx
    Use Firefox
    Click “Home scheme” and “Server room scheme” repeat a few times

    screen cap
    https://drive.google.com/file/d/1WrJHLx8mlKARNsTVEk-HH14z4gVD7aad/view?usp=sharing

    in reply to: scheme view stuck with loading animation #8582
    JW
    Participant

    After brief test, seems only happens when using Firefox. But not 100% sure at the moment.

    in reply to: Mono high cpu usage #8517
    JW
    Participant

    the browser session stays connected, and sacadaweb log has no error, after modifying the config of logrotate.

    in reply to: Mono high cpu usage #8499
    JW
    Participant

    I found the cause, it was logrotate service.

    the original conf includes reloading apache since the hanlde of log file is changed after logrotate. then it has to reload apache to write to new handle.

    /var/log/apache2/*.log {
    	daily
    	missingok
    	rotate 14
    	compress
    	delaycompress
    	notifempty
    	create 640 root adm
    	sharedscripts
    	postrotate
                    if invoke-rc.d apache2 status > /dev/null 2>&1; then \
                        invoke-rc.d apache2 reload > /dev/null 2>&1; \
                    fi;
    	endscript
    	prerotate
    		if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
    			run-parts /etc/logrotate.d/httpd-prerotate; \
    		fi; \
    	endscript
    }

    I’m testing conf below. “copytruncate” copy to a new file but keeps the old file and truncate old file.

    /var/log/apache2/*.log {
    	copytruncate
    	daily
    	missingok
    	rotate 14
    	compress
    	delaycompress
    	notifempty
    }
    in reply to: Mono high cpu usage #8498
    JW
    Participant

    log from scadaweb, seems reloading every midnight

    2021-03-06 00:00:29 <opticalsensing><www-data><ACT> Initialize common web application data
    2021-03-07 00:00:25 <opticalsensing><www-data><ACT> Initialize common web application data
    2021-03-08 00:00:25 <opticalsensing><www-data><ACT> Initialize common web application data
    2021-03-09 00:00:25 <opticalsensing><www-data><ACT> Initialize common web application data
    2021-03-10 00:00:11 <opticalsensing><www-data><ACT> Initialize common web application data
    2021-03-11 00:00:29 <opticalsensing><www-data><ACT> Initialize common web application data
    2021-03-12 00:00:22 <opticalsensing><www-data><ACT> Initialize common web application data

    log from apache2, reloading every mid night too…

    
    Mar 05 00:00:27 opticalsensing systemd[1]: Reloading The Apache HTTP Server.
    Mar 05 00:00:28 opticalsensing systemd[1]: Reloaded The Apache HTTP Server.
    Mar 06 00:00:25 opticalsensing systemd[1]: Reloading The Apache HTTP Server.
    Mar 06 00:00:25 opticalsensing systemd[1]: Reloaded The Apache HTTP Server.
    Mar 07 00:00:20 opticalsensing systemd[1]: Reloading The Apache HTTP Server.
    Mar 07 00:00:21 opticalsensing systemd[1]: Reloaded The Apache HTTP Server.
    Mar 08 00:00:21 opticalsensing systemd[1]: Reloading The Apache HTTP Server.
    Mar 08 00:00:21 opticalsensing systemd[1]: Reloaded The Apache HTTP Server.
    Mar 09 00:00:21 opticalsensing systemd[1]: Reloading The Apache HTTP Server.
    Mar 09 00:00:21 opticalsensing systemd[1]: Reloaded The Apache HTTP Server.
    Mar 10 00:00:07 opticalsensing systemd[1]: Reloading The Apache HTTP Server.
    Mar 10 00:00:07 opticalsensing systemd[1]: Reloaded The Apache HTTP Server.
    Mar 11 00:00:26 opticalsensing systemd[1]: Reloading The Apache HTTP Server.
    Mar 11 00:00:26 opticalsensing systemd[1]: Reloaded The Apache HTTP Server.
    Mar 12 00:00:18 opticalsensing systemd[1]: Reloading The Apache HTTP Server.
    Mar 12 00:00:18 opticalsensing systemd[1]: Reloaded The Apache HTTP Server.
    
    in reply to: Mono high cpu usage #8497
    JW
    Participant

    every day midnight

    in reply to: Mono high cpu usage #8483
    JW
    Participant

    About the mono issue
    I tried, but haven’t find a way to reproduce it.

    I disabled chart plotting and hide minute data export. So there should be one or more cause other than these 2.

    It happened to one of my server on AWS without GUI a few times. But after I reinstall the whole server, this issue haven’t appear in last 2 months.

    I am going to make a program to monitor the cpu usage by mono, try if I can capture what cause the issue.

    about to the error log above
    What’s the proper way to have a client showing the scada page 7×24?
    when first login:
    – checked “remember me”
    – autologin not installed
    After a long time, the browser seem lost the authentication:
    – the current page data is still refreshing
    – while navigate to other view, the page said user do not have right to access
    – the error log above appears every day 00:00 ever since
    – after refresh the whole page by F5, all view can be accessed

    How long does the browser lose the authentication? Should I have the browser refresh the page regularly to keep the authentication valid?

    in reply to: about SCADA V6 #8468
    JW
    Participant

    I am kind of love and hate the xml file.

    Pros:
    To modify multiple channels, it can be done with text editor supports regular expression on any pc. I have been modifying the InCnl.xml in text editor more than the administrator app.
    User may need to build many projects, or modify a project many times.

    Cons:
    But when other programs need to read data from the InCnl.xml, it’s so slow, for the InCnl.xml with 10k channels, may take more than 10s.
    I found a work around is to read the InCnl.dat, which takes 1-2s, not ideal but acceptable.

    Saving config file in DB is easier to read but less continent to modify, in my opinion.

Viewing 15 posts - 91 through 105 (of 160 total)