---- "requestfromserver('printers_st', 23) | |
requestfromserver('error_st', 31) | |
requestfromserver('news_st', 59) | |
} | |
else | |
arefresh = false | |
} | |
</scriptri<div" ...... |
Thanks for your answer.Seeing the view-source in chrome, i detected an error in the code (mark as red) ,Copy an paste the code in an html file, and correcting it the Status page works.Can i correct in my Dns 323?
----
"requestfromserver('printers_st', 23)requestfromserver('error_st', 31) requestfromserver('news_st', 59) } else arefresh = false } </scriptri<div"
......
requestfromserver('printers_st', 23)requestfromserver('error_st', 31)requestfromserver('news_st', 59)}elsearefresh = false}</script>
<div id="st_tt" class="ttip">
Hello.
I have the same probleme but with a DNS325 A
The status.cgi work when i put " //" after "</script>"
"requestfromserver('printers_st', 23)
requestfromserver('error_st', 31)
requestfromserver('news_st', 59)
}
else
arefresh = false
}
</script> //
OEF"
But " //" appear in the top of status page
and error msg stay on the top too.
Thank a lot Joao for this works
Cordially
Hello.
I have the same probleme but with a DNS325 A
The status.cgi work when i put " //" after "</script>"
"requestfromserver('printers_st', 23)requestfromserver('error_st', 31)requestfromserver('news_st', 59)}elsearefresh = false}</script> //
OEF"
But " //" appear in the top of status page
and error msg stay on the top too.
Thank a lot Joao for this works
Cordially
Le 01/07/2016 à 20:30, João Cardoso a écrit :
which is correct.
You can edit the cgi script at /usr/www/cgi-bin/status.cgi after logging in as the 'root' user, same password as the webUI.The original can be found at /rootmnt/ro/usr/www/cgi-bin/status.cgi and is not editable, as is on read-only flash memory.If you find that they are different, and both contain the error you report, then there is some problem.Anyway, any changes will vanish after a reboot, so to make them permanent please report back your results for further steps.if the changes *always* works, as Norbert says that sometimes it works after navigating away from the Status and returning to Status afterwards.
And BTW, what is your DNS-323 revision level? A1, B1 or C1?
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
I don't no, but when I
change "</script>" to "</script><//>" Status
page is fine.
I don't no, but when I change "</script>" to "</script><//>" Status page is fine.
Hello.
I have the same probleme but with a DNS325 A
The status.cgi work when i put " //" after "</script>"
When I put "<//>" after "</script>" in status.cgi, Status page is OK for me (under firefox).
Cordialy
function frefresh(obj) {
arg = obj.checked == true ? "yes" : "no"
if (arg == "yes") {
arefresh = true
requestfromserver('systems_st', 11)
requestfromserver('network_st', 11)
requestfromserver('disks_st', 13)
requestfromserver('raid_st', 13)
requestfromserver('mounted_filesystems_st', 17)
requestfromserver('mounted_remote_filesystems_st', 17)
requestfromserver('remotely_mounted_filesystems_st', 19)
requestfromserver('backup_st', 19)
requestfromserver('filesystem_maintenance_st', 23)
requestfromserver('printers_st', 23)
requestfromserver('error_st', 31)
requestfromserver('news_st', 59)
}
else
arefresh = false
}
</scriptri<div id="st_tt" class="ttip">Checking this will refresh different sections in the page every 10 to 20 seconds.<br> This consumes CPU, so if you are waiting for something lengthly to accomplish<br> it will actually take more time if autorefresh is enabled.</div>
Same issue like JavCam.
Model: DNS-323-B1
Update from RC 4 to RC5 and the status page was empty. It display fine sometimes.
Add "<//>" after "</script>" in status.cgi file fix the issue.
wget -O status.out http://localhost/cgi-bin/status.cgi
</scriptri<div
<//>
When script or style data is the content of an element (SCRIPT and STYLE), the data begins immediately after the element start tag and ends at the first ETAGO ("</") delimiter followed by a name start character ([a-zA-Z]); note that this may not be the element's end tag. Authors should therefore escape "</" within the content. Escape mechanisms are specific to each scripting or style sheet language.
HI
"wget -O status.out http://localhost/cgi-bin/status.cgi"
return that
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<link rel="icon" type="image/png" href="../dns-323.png">
<title>Alt-F 0.1RC5 Status Page</title>
<style type="text/css">
.bgl {text-align: center; font-weight: bold; width: 100px; }
</style>
<link rel="stylesheet" type="text/css"
href="/scripts/dull/dull.css">
<script type="text/javascript"
src="/scripts/dull/dull.js"></script>
</head>
<body >
<script type="text/javascript">
var menu = new Array();
var men = {label:"Logout", url:"/cgi-bin/logout.cgi"};
menu.push(men);
men = {label:"Status", url:"/cgi-bin/status.cgi"};
menu.push(men);
men = {label:"Shortcuts", smenu:[{item:"Add", url:"\"\"
onclick=\"return addbookmark()\""},
{item:"Remove", url:"\"\" onclick=\"return rmbookmark()\""},
{item:"Remove All", url:"\"\" onclick=\"return rmall()\""},
{item:"<hr>", url:"#"},
]};
menu.push(men);
men = {label:"Setup", smenu:[{item:"Host", url:"host.cgi "},
{item:"Time", url:"time.cgi"},
{item:"Mail", url:"mail.cgi"},
{item:"Proxy", url:"proxy.cgi"},
{item:"Hosts", url:"hosts.cgi"},
{item:"Users", url:"usersgroups.cgi"},
{item:"Debian", url:"debian.cgi"},
{item:"Folders", url:"browse_dir.cgi?wind=no?browse=/mnt"},
]};
menu.push(men);
men = {label:"Disk", smenu:[{item:"Utilities",
url:"diskutil.cgi"},
{item:"Filesystems", url:"diskmaint.cgi"},
{item:"RAID", url:"raid.cgi"},
{item:"Partitioner", url:"diskpart.cgi"},
{item:"Wizard", url:"diskwiz.cgi"},
{item:"Quotas", url:"quota.cgi?admin=admin"},
]};
menu.push(men);
men = {label:"Services", smenu:[{item:"Network",
url:"net_services.cgi"},
{item:"System", url:"sys_services.cgi"},
{item:"User", url:"user_services.cgi"},
]};
menu.push(men);
men = {label:"Packages", smenu:[{item:"Alt-F",
url:"packages_ipkg.cgi"},
{item:"ffp", url:"packages_ffp.cgi"},
]};
menu.push(men);
men = {label:"System", smenu:[{item:"Utilities",
url:"sys_utils.cgi"},
{item:"Settings", url:"settings.cgi"},
{item:"Firmware", url:"firmware.cgi"},
{item:"About", url:"about.cgi"},
]};
menu.push(men);
menuSetup("top","");
</script>
<div id="tt_help" class="ttip">Get a descriptive
help</div>
<div id="tt_settings" class="ttip"></div>
<h2 class="title">Alt-F 0.1RC5 Status Page <a
href="../status_hlp.html" onmouseover="popUp(event,'tt_help')"
onmouseout="popDown('tt_help')"><img src="../help.png"
alt="help" border=0></a></h2>
<noscript>
<p class="error"><strong>
JavaScript is needed by Alt-F web pages, and you don't have it
enabled.<br>
See <a href="http://www.enable-javascript.com"
target="_blank">
how to enable JavaSCript</a> on your browser.
</strong></p>
</noscript>
<script type="text/javascript">
arefresh = false
function requestfromserver(target, refresh) {
var req = new XMLHttpRequest();
if (req == null)
return;
req.onreadystatechange = function() {
if (req.readyState != 4) return; // only if req is "loaded"
if (req.status != 200) return; // only if "OK"
document.getElementById(target).innerHTML = req.responseText;
delete req;
if (arefresh == true && refresh != 0)
setTimeout( function() {requestfromserver(target, refresh);},
refresh * 1000);
}
url="/cgi-bin/status.cgi?refresh=" + target
req.open("GET", url, true);
req.send();
}
function frefresh(obj) {
arg = obj.checked == true ? "yes" : "no"
if (arg == "yes") {
arefresh = true
requestfromserver('systems_st', 11)
requestfromserver('network_st', 11)
requestfromserver('disks_st', 13)
requestfromserver('raid_st', 13)
requestfromserver('mounted_filesystems_st', 17)
requestfromserver('mounted_remote_filesystems_st', 17)
requestfromserver('remotely_mounted_filesystems_st', 19)
requestfromserver('backup_st', 19)
requestfromserver('filesystem_maintenance_st', 23)
requestfromserver('printers_st', 23)
requestfromserver('error_st', 31)
requestfromserver('news_st', 59)
}
else
arefresh = false
}
</script>
<div id="st_tt" class="ttip">Checking this will refresh
different sections in the page every 10 to 20 seconds.<br>
This consumes CPU, so if you are waiting for something lengthly to
accomplish<br>
it will actually take more time if autorefresh is
enabled.</div>
<div id="error_st">
<fieldset><legend
class="red">Errors/Warnings</legend>
<form action="/cgi-bin/sys_utils_proc.cgi" method="post">
Examine and Clear the error/warning messages:
<input type=submit name="logaction"
value="/var/log/systemerror.log">
</form>
<ul><li>Your md0 raid1 device is
degraded!</li></ul>
</fieldset>
</div>
<div id="news_st">
</div>
<div id="systems_st">
<fieldset><legend>System</legend>
<table><tr>
<td><div class="bgl">Temperature</div> <div
class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
70%;">
<div class="meter-text" style="color:
#000;">38.0°C/100°F</div>
</div>
</div></td>
<td><div class="bgl">Fan speed</div> <div
class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
50%;">
<div class="meter-text" style="color:
#000;">3000</div>
</div>
</div></td>
<td><div class="bgl">Load</div> <div
class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
73%;">
<div class="meter-text" style="color:
#000;">1.47</div>
</div>
</div></td>
<td><div class="bgl">CPU</div> <div
class="meter-wrap">
<div class="meter-value" style="background-color: #F66; width:
100%;">
<div class="meter-text" style="color:
#FFF;">100%</div>
</div>
</div></td>
<td><div class="bgl">Memory</div> <div
class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
86%;">
<div class="meter-text" style="color: #000;">86% of
256MB</div>
</div>
</div></td>
<td><div class="bgl">Swap</div> <div
class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
0%;">
<div class="meter-text" style="color: #000;">0% of
517MB</div>
</div>
</div></td>
</tr><tr>
<td colspan=2><strong>Name:</strong>
HDSAVE-DNS-325</td><td></td>
<td colspan=2><strong>Model:</strong>
DNS-325-Ax</td><td></td>
</tr><tr>
<td colspan=3><strong>Date:</strong> Sun Jul 3
10:12:41 CEST 2016</td>
<td colspan=2><strong>Uptime:</strong> 0 day(s)
0 hour(s)</td><td></td>
</tr></table></fieldset>
</div>
<div id="network_st">
<fieldset><legend>Network</legend>
<strong>Speed:</strong>1000Mbps
<strong>Duplex:</strong>full
<strong>MTU:</strong>1500
<strong>TX:</strong>244.3KiB
<strong>Rx:</strong>234.9KiB
<strong>IP:</strong>192.168.0.171
</fieldset>
</div>
<div id="disks_st">
<fieldset><legend>Disks</legend>
<table><tr><th align=left>Bay</th>
<th>Dev.</th>
<th>Model</th>
<th>Capacity</th>
<th>Power Status</th>
<th>Temp</th>
<th>Health</th>
</tr>
<tr align=center>
<td align=left>left</td>
<td>sda</td>
<td align=left>WDC WD30EZRX-00DC0B0</td>
<td> 3.0TB </td>
<td id=sda_pstatus_id> active or idle </td>
<td id=sda_temp_id> 35°C/95°F </td>
<td id=sda_health_id> <span
class=black>passed</span> </td>
</tr>
<tr align=center>
<td align=left>right</td>
<td>sdb</td>
<td align=left>WDC WD15EARS-00Z5B1</td>
<td> 1.5TB </td>
<td id=sdb_pstatus_id> active or idle </td>
<td id=sdb_temp_id> 36°C/96°F </td>
<td id=sdb_health_id> <span
class=black>passed</span> </td>
</tr>
<tr align=center>
<td align=left>usb</td>
<td>sdc</td>
<td align=left>HDT725032VLAT80</td>
<td> 320.1GB </td>
<td id=sdc_pstatus_id> -- </td>
<td id=sdc_temp_id> -- </td>
<td id=sdc_health_id> -- </td>
</tr>
</table></fieldset>
</div>
<div id="raid_st">
<fieldset><legend>RAID</legend>
<table><tr align=center>
<th align=left>Dev.</th>
<th>Capacity</th>
<th>Level</th><th>State</th>
<th>Status</th><th>Action</th>
<th>Done</th><th>ETA</th>
</tr>
<tr align=center>
<td align=left>md0</td>
<td>0.5GB</td>
<td>raid1</td>
<td>clean</td>
<td><span class="red">degraded</span></td>
<td>idle</td>
<td align=left></td>
<td></td>
</tr>
</table></fieldset>
</div>
<div id="mounted_filesystems_st">
<fieldset><legend>Mounted Filesystems</legend>
<table><tr align=center>
<th>Dev.</th>
<th>Label</th>
<th>Capacity</th><th>Available</th>
<th>FS</th><th>Mode</th>
<th>Dirty</th><th>Automatic FSCK in</th>
</tr>
<tr>
<td>sda2</td>
<td></td>
<td align=right>2.7TB</td>
<td><div class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
66%;">
<div class="meter-text" style="color:
#000;">936.8GB</div>
</div>
</div></td>
<td>ext4</td>
<td>RW</td>
<td><span class="red"></span> </td>
<td>11 mounts or 65 days</td>
</tr>
<tr>
<td>sda4</td>
<td></td>
<td align=right>460.6MB</td>
<td><div class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
1%;">
<div class="meter-text" style="color:
#000;">452.4MB</div>
</div>
</div></td>
<td>ext4</td>
<td>RW</td>
<td><span class="red"></span> </td>
<td>10 mounts or 65 days</td>
</tr>
<tr>
<td>sdb2</td>
<td></td>
<td align=right>1.3TB</td>
<td><div class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
40%;">
<div class="meter-text" style="color:
#000;">824.5GB</div>
</div>
</div></td>
<td>ext4</td>
<td>RW</td>
<td><span class="red"></span> </td>
<td>16 mounts or 75 days</td>
</tr>
<tr>
<td>sdb4</td>
<td></td>
<td align=right>476.3MB</td>
<td><div class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
1%;">
<div class="meter-text" style="color:
#000;">468.8MB</div>
</div>
</div></td>
<td>ext4</td>
<td>RW</td>
<td><span class="red"></span> </td>
<td>13 mounts or 65 days</td>
</tr>
<tr>
<td>sdc1</td>
<td>Philips External</td>
<td align=right>293.3GB</td>
<td><div class="meter-wrap">
<div class="meter-value" style="background-color: #6F6; width:
14%;">
<div class="meter-text" style="color:
#000;">252.4GB</div>
</div>
</div></td>
<td>ext4</td>
<td>RW</td>
<td><span class="red"></span> </td>
<td>8 mounts or 65 days</td>
</tr>
</table></fieldset>
</div>
<div id="mounted_remote_filesystems_st">
</div>
<div id="remotely_mounted_filesystems_st">
<fieldset><legend>Remotely Mounted
Filesystems</legend>
<table><tr align=center>
<th>Host</th>
<th>Share</th>
<th>FS</th>
</tr>
<tr><td>pc-luc</td><td>volume_1
</td><td>cifs</td></tr>
<tr><td>pc-luc</td><td>volume_2
</td><td>cifs</td></tr>
</table></fieldset>
</div>
<div id="backup_st">
</div>
<div id="filesystem_maintenance_st">
</div>
<div id="printers_st">
</div>
<form action="">
Autorefresh <input type=checkbox name="arefresh" value="yes"
onclick="frefresh(this)" onmouseover="popUp(event,'st_tt')"
onmouseout="popDown('st_tt')">
</form></body></html>
-- You received this message because you are subscribed to the Google Groups "Alt-F" group. To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com. Visit this group at https://groups.google.com/group/alt-f. For more options, visit https://groups.google.com/d/optout.
<br />
."
Line 20 "JavaScript is needed by Alt-F web pages, and you don't have it enabled.<br>"
without "." before "<br> and without another mod, status page work fine or with a space after "." and "<br />" instead of "<br>" and without another mod, status page work fine too.
Hello
adding escaped works on all
tested configurations.
Joao thank you very much.
Thanks for hunting it down.
But does it makes sense? adding a space before the '.'? And Alt-F has not find a single "<br />".
But I was able to reproduce the issue on an old win-6 machine on several browsers!
To me, the issue is caused by browsers. The fact that sometimes it works and others not, together with the correct html generated by the status.cgi script (but shown as invalid on the browser source code view) pointed me in that direction.
The (browsers) issue seems to be bad code reuse from the <script> and <noscript> elements; accordingly to the 4.01 standard, the first can't have '/>' before the closing </script>, while the second can. I.e., within a <noscript> no end tag is allowed, but on a <noscript> it is allowed (the standard even gives examples of <noscript> with end tags).
But I might be misreading the standard.
So I escaped (highlighted in red) the existing end tags within the <noscript> code as:
Hello
adding escaped works on all tested configurations.
</script>
<div id="st_tt" class="ttip">Checking this will refresh different sections in the page every 10 to 20 seconds.<br>
</scriptri<div id="st_tt" class="ttip">Checking this will refresh different sections in the page every 10 to 20 seconds.<br>
The corruption happens when there is TCP segmentation.
In this case a small HTTP continuation message (264 bytes) is being segmented into a 2 byte followed by a 262 byte TCP message and being corrupted in the process. I have no idea why such a small message is getting segmented.The previous HTTP continuation message has the "...</script" portion at the end and the next HTTP continuation message has "ri" in the first segment and "<div..." in the second. It is very strange. If you know how to use Wireshark look at frames 32 and 34 in the attachment. Beyond this I don't know how to narrow down the source of this corrupted segmentation (webserver? kernel?).
[root@DNS-325]# ethtool --show-offload eth0Features for eth0:...tcp-segmentation-offload: ontx-tcp-segmentation: ontx-tcp-ecn-segmentation: off [fixed]tx-tcp6-segmentation: off [fixed]
Hummmm about the video files....
In that case, I should increase the jumbo frames toore than 1500 (used by old devices, and kept this value due to compatibility).
I will set to 3000, and see how it goes with the videofiles.....
[]'s
Paulo
sent from Android
My Linux debugging skills are not that great (I am primarily a protocol guy) but I will do what I can to assist here. What I did try is changing the frame size in the host setup page from 1500 to 1480 and the status page now loads using HTTP. As far as I can tell there is no corruption of the page either (no TCP segmentation seen in a packet capture.) I'm not sure what this means yet but I think we are getting closer.I wonder if this is the same issue from another thread about problems streaming video files with RC5.
--
ethtool -K eth0 tso off
ethtool -K eth0 tso on
net: mv643xx_eth: TSO TX data corruption fixesas previously discussed [1] the mv643xx_eth driver has someissues with data corruption when using TCP segmentation offload (TSO)
To support TCP segmentation offload (TSO), a network device must support outbound (TX) checksumming and scatter gather. For this reason, you must turn on scatter gather and outbound checksumming prior to configuring TSO. All three options can be turned on or off with a single ethtool command of the form:# ethtool -K <interface_name> tx <value> sg <value> tso <value>
Actually, I am dealing with some data corruption problem on my DNS-320-A1, I thought of everything that can be the cause, but did not came here to search till now
Hello
Use "ethtool -K eth0 tso off" in script user
in line 63 the original file (usr/www/cgi-bin/status.cgi) else is used without the use of brackets.
else {
arefresh = false }
solves the problem....
This silent corruption over samba is quite worrying.. Is there a release fix or we have to use "ethtool -K eth0 tso off" in script user?
Will that work on every reboot?
I just installed Alt-F yesterday and curiosity about the non working status page