Discussion:
Cannot edit HTML files from Windows 10 workstation
(too old to reply)
Jonathan N. Little
2024-11-28 18:36:28 UTC
Permalink
While accessing my development servers on LAN:

1) Cannot edit existing HTML files, error on saving.
2) Can save as new file name HTML, but then cannot reopen that new file
and edit it.
3) No problem with any other file types, PHP, JS, CSS, etc. Just HTML.

Background my setup for years I have a few development servers running
Ubuntu on LAN. I have only 1 Windows 10 desktop left (and maybe no
Windows after next year), running Ubuntu on everything else.

1) On development servers my vhosts roots located /home/sites/...
2) Permissions & ownership: drwxrwxr-x www-data:sambashare
3) Group sambashare for Windows client access group writable and samba
share defined with:
create mask = 0664
directory mask = 0775
force group = sambashare
force user = www-data
4) Also have local user access from my profile with a bindfs
/home/jonathan/www/ -> /home/sites/ which set id:gid but is accessable
from ~/www as jonathan:jonathan

Setup has worked for years. but upgraded one server to 24.04 and others
22.04 and noticed the problem. Here is what make no sense and what I
have tested:

From Windows 10 Pro (Editors do not matter vscode, notepad, notepad++):
1) Edit existing HTML on local fs: OK
2) Edit existing HTML on Ubuntu share: Nope
3) Edit existing HTML on Ubuntu share save as new HTML: OK
4) Create new HTML share and save: OK*
*can continue to edit and save as long as you do not close and reopen
5) Edit existing HTM on Ubuntu share: Nope
6) Edit existing HTML in ~/ share: Nope
7) Edit existing other files, PHP, JS, FOO: Ok
8) Rename existing HTML to non HTML extension: Ok!!!

From Ubuntu 24.04 (Editors do not matter vscode, gedit)
1) Edit existing HTML on local fs: OK
2) Edit existing HTML on Ubuntu share: Ok
3) Edit existing other files, PHP, JS, FOO: Ok

Shelling into server:
1) Edit existing HTML with nano via ~/ bind shortcut: Ok

On a whim I have an old PI2 that I tested OpenMediaVault and found same
issue editing HTML files from Windows. What the hell MS! This is new.
Any suggestions where to look? I will also MS forums, but getting useful
feedback their is very rare.
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Paul
2024-11-29 04:35:15 UTC
Permalink
Post by Jonathan N. Little
1) Cannot edit existing HTML files, error on saving.
2) Can save as new file name HTML, but then cannot reopen that new file
and edit it.
3) No problem with any other file types, PHP, JS, CSS, etc. Just HTML.
Background my setup for years I have a few development servers running
Ubuntu on LAN. I have only 1 Windows 10 desktop left (and maybe no
Windows after next year), running Ubuntu on everything else.
1) On development servers my vhosts roots located /home/sites/...
2) Permissions & ownership: drwxrwxr-x www-data:sambashare
3) Group sambashare for Windows client access group writable and samba
create mask = 0664
directory mask = 0775
force group = sambashare
force user = www-data
4) Also have local user access from my profile with a bindfs
/home/jonathan/www/ -> /home/sites/ which set id:gid but is accessable
from ~/www as jonathan:jonathan
Setup has worked for years. but upgraded one server to 24.04 and others
22.04 and noticed the problem. Here is what make no sense and what I
1) Edit existing HTML on local fs: OK
2) Edit existing HTML on Ubuntu share: Nope
3) Edit existing HTML on Ubuntu share save as new HTML: OK
4) Create new HTML share and save: OK*
*can continue to edit and save as long as you do not close and reopen
5) Edit existing HTM on Ubuntu share: Nope
6) Edit existing HTML in ~/ share: Nope
7) Edit existing other files, PHP, JS, FOO: Ok
8) Rename existing HTML to non HTML extension: Ok!!!
From Ubuntu 24.04 (Editors do not matter vscode, gedit)
1) Edit existing HTML on local fs: OK
2) Edit existing HTML on Ubuntu share: Ok
3) Edit existing other files, PHP, JS, FOO: Ok
1) Edit existing HTML with nano via ~/ bind shortcut: Ok
On a whim I have an old PI2 that I tested OpenMediaVault and found same
issue editing HTML files from Windows. What the hell MS! This is new.
Any suggestions where to look? I will also MS forums, but getting useful
feedback their is very rare.
Hello :-)

[Picture]

Loading Image...

Notice the error dialog. Well, that is a stack of error dialogs on top of
one another, that appeared like a machine gun, on my desktop. Enough dialogs
to exhaust some resource. I could not open ScreenShot to take a picture, so
I had to use my camera. I already got caught once within the last week, doing
a screenshot and having the OS lose it due to a mess like this. That's why this
time I was ready with the camera.

The Nautilus window behind it, has no date or file size. Presumably something
happened while it was trying to reach the Windows Server to refresh that information.

*******

There has been something wrong in Ubuntu for a while. That did not happen this week.

The same problem is not present in Linux Mint, not that I've noticed.

And when Nautilus is broken in Ubuntu, you can go to the Package Manager
and install Nemo, and just as Nemo runs on Linux Mint, it works properly
when installed on Ubuntu.

*******

This shows attempts to try to list what is going on, client to server.

[Picture]

Loading Image...

The W10 to W11 (server) connection works properly and has an SMB V3.1.1
connection. It uses an IPV6 address. Which is a neat trick when my router
is IPV4 only and has DHCP-V4. Those could be link-local addresses being
used. The machine could have used an IPV4 address if it wanted.

*******

The rest of the pictures, I won't include, because they need to be redone.

What's interesting in this one (doesn't rely too much on test conditions),
is Nautilus cannot display file properties, yet the Bash shell has all
the information on display.

[Picture]

Loading Image...

All a bit baffling.

Paul
Jonathan N. Little
2024-11-29 15:14:54 UTC
Permalink
Post by Paul
Post by Jonathan N. Little
1) Cannot edit existing HTML files, error on saving.
2) Can save as new file name HTML, but then cannot reopen that new file
and edit it.
3) No problem with any other file types, PHP, JS, CSS, etc. Just HTML.
Background my setup for years I have a few development servers running
Ubuntu on LAN. I have only 1 Windows 10 desktop left (and maybe no
Windows after next year), running Ubuntu on everything else.
1) On development servers my vhosts roots located /home/sites/...
2) Permissions & ownership: drwxrwxr-x www-data:sambashare
3) Group sambashare for Windows client access group writable and samba
create mask = 0664
directory mask = 0775
force group = sambashare
force user = www-data
4) Also have local user access from my profile with a bindfs
/home/jonathan/www/ -> /home/sites/ which set id:gid but is accessable
from ~/www as jonathan:jonathan
Setup has worked for years. but upgraded one server to 24.04 and others
22.04 and noticed the problem. Here is what make no sense and what I
1) Edit existing HTML on local fs: OK
2) Edit existing HTML on Ubuntu share: Nope
3) Edit existing HTML on Ubuntu share save as new HTML: OK
4) Create new HTML share and save: OK*
*can continue to edit and save as long as you do not close and reopen
5) Edit existing HTM on Ubuntu share: Nope
6) Edit existing HTML in ~/ share: Nope
7) Edit existing other files, PHP, JS, FOO: Ok
8) Rename existing HTML to non HTML extension: Ok!!!
From Ubuntu 24.04 (Editors do not matter vscode, gedit)
1) Edit existing HTML on local fs: OK
2) Edit existing HTML on Ubuntu share: Ok
3) Edit existing other files, PHP, JS, FOO: Ok
1) Edit existing HTML with nano via ~/ bind shortcut: Ok
On a whim I have an old PI2 that I tested OpenMediaVault and found same
issue editing HTML files from Windows. What the hell MS! This is new.
Any suggestions where to look? I will also MS forums, but getting useful
feedback their is very rare.
Hello :-)
[Picture]
https://i.postimg.cc/7ZBwhFnL/Ubuntu2404-nautilus-stacked-error-dialogs.jpg
Notice the error dialog. Well, that is a stack of error dialogs on top of
one another, that appeared like a machine gun, on my desktop. Enough dialogs
to exhaust some resource. I could not open ScreenShot to take a picture, so
I had to use my camera. I already got caught once within the last week, doing
a screenshot and having the OS lose it due to a mess like this. That's why this
time I was ready with the camera.
The Nautilus window behind it, has no date or file size. Presumably something
happened while it was trying to reach the Windows Server to refresh that information.
*******
There has been something wrong in Ubuntu for a while. That did not happen this week.
The same problem is not present in Linux Mint, not that I've noticed.
And when Nautilus is broken in Ubuntu, you can go to the Package Manager
and install Nemo, and just as Nemo runs on Linux Mint, it works properly
when installed on Ubuntu.
*******
This shows attempts to try to list what is going on, client to server.
[Picture]
https://i.postimg.cc/pVggG2q8/W10-to-W11-vs-others.gif
The W10 to W11 (server) connection works properly and has an SMB V3.1.1
connection. It uses an IPV6 address. Which is a neat trick when my router
is IPV4 only and has DHCP-V4. Those could be link-local addresses being
used. The machine could have used an IPV4 address if it wanted.
*******
The rest of the pictures, I won't include, because they need to be redone.
What's interesting in this one (doesn't rely too much on test conditions),
is Nautilus cannot display file properties, yet the Bash shell has all
the information on display.
[Picture]
https://i.postimg.cc/7Y1wSGwb/nautilus-unknown-perms-bash-OK.gif
All a bit baffling.
Baffling for sure, however my issue is not with Nautilus nor Ubuntu it
seems. My servers are Ubuntu servers and the issue is only with a
Windows client. My Ubuntu clients I do not have the problem. Also long
ago I ditched Nautilus for Nemo. I have only one laptop that still has
Nautilus.
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Paul
2024-11-29 22:20:20 UTC
Permalink
Post by Jonathan N. Little
Baffling for sure, however my issue is not with Nautilus nor Ubuntu it
seems. My servers are Ubuntu servers and the issue is only with a
Windows client. My Ubuntu clients I do not have the problem. Also long
ago I ditched Nautilus for Nemo. I have only one laptop that still has
Nautilus.
Well, something has changed at the system level. Because the
command that dumps information on the server side, never seems
to register any of my Linux connections properly.

To start to see patterns in this stuff, you need to run a larger
matrix of test cases, and who has that much equipment, all
arranged to do that ? I'm not running a "SAMBA test shop" here,
it's just an ordinary looking room :-)

Paul
Jonathan N. Little
2024-11-30 01:27:55 UTC
Permalink
Post by Paul
Post by Jonathan N. Little
Baffling for sure, however my issue is not with Nautilus nor Ubuntu it
seems. My servers are Ubuntu servers and the issue is only with a
Windows client. My Ubuntu clients I do not have the problem. Also long
ago I ditched Nautilus for Nemo. I have only one laptop that still has
Nautilus.
Well, something has changed at the system level. Because the
command that dumps information on the server side, never seems
to register any of my Linux connections properly.
To start to see patterns in this stuff, you need to run a larger
matrix of test cases, and who has that much equipment, all
arranged to do that ? I'm not running a "SAMBA test shop" here,
it's just an ordinary looking room :-)
(face palm interaction)
I discovered the reason and solved the issue. The file was showing in
Windows Explorer preview panel (alt + p). Turn off preview or move
selection in Explorer so Explorer's HTML preview is not rendering that
page before saving file.
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Loading...