blender doesnt read NAS #99008

Closed
opened 2022-06-20 07:37:14 +02:00 by HF · 22 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 511.65

Blender Version
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: e05e1e3691

Short description of error
When opening files NAS is not shown{F13205771}

asset saved on NAS will not load as well

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 511.65 **Blender Version** Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: `e05e1e3691` **Short description of error** When opening files NAS is not shown{[F13205771](https://archive.blender.org/developer/F13205771/image.png)} asset saved on NAS will not load as well
Author

Added subscriber: @Hongyu

Added subscriber: @Hongyu

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

I cannot confirm that with Blender 3.2 nor Blender 3.3 Alpha. Works fine here with a NAS drive.

It's important to connect to the drive though, before opening Blender. Unconnected drives are not shown.

I cannot confirm that with Blender 3.2 nor Blender 3.3 Alpha. Works fine here with a NAS drive. It's important to connect to the drive though, before opening Blender. Unconnected drives are not shown.

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

@Hongyu Please try restarting Blender - does that help?

If not, we will need more information, like model of NAS to check if this is common issue.

@Hongyu Please try restarting Blender - does that help? If not, we will need more information, like model of NAS to check if this is common issue.
Author

I found out this only happens when I run as administrator which is required by some addons like the sketchfab addon

I found out this only happens when I run as administrator which is required by some addons like the sketchfab addon

That's interesting, but not sure why that would be an issue. Still I would need NAS model to check its specs. I would assume that it's using some weird API or perhaps you have to configure it to work with all users

That's interesting, but not sure why that would be an issue. Still I would need NAS model to check its specs. I would assume that it's using some weird API or perhaps you have to configure it to work with all users
Author

the model is qnap ts-1635ax

the model is qnap ts-1635ax

Thanks for info. I see that NAS does support samba sharing, which I assume you would then configure it as network drive like this:
Untitled.png

Can you confirm that your NAS drive has its letter and you see it listed in "This PC"?

Thanks for info. I see that NAS does support samba sharing, which I assume you would then configure it as network drive like this: ![Untitled.png](https://archive.blender.org/developer/F13257891/Untitled.png) Can you confirm that your NAS drive has its letter and you see it listed in "This PC"?
Author

yes, i do see it. in my pc and in blender

but when i run blender as administrator i cant see it in blender anymore

yes, i do see it. in my pc and in blender but when i run blender as administrator i cant see it in blender anymore

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Added subscriber: @Harley

Added subscriber: @Harley

@Hongyu Thanks for info, I can reproduce this issue when running as admin too. Don't think this could be considered as bug in Blender though. You can follow guide at https://docs.microsoft.com/en-us/troubleshoot/windows-client/networking/mapped-drives-not-available-from-elevated-command to resolve this issue.

@Harley Seems that GetLogicalDrives() does not report network drives "correctly" in this case. According to https://stackoverflow.com/questions/42767614/how-to-correctly-detect-network-drive-when-running-with-elevated-privileges it seems like it would be possible to work around, but the code seems a bit magical to me. Do you think this is something you would like to resolve or shall I close this report?

@Hongyu Thanks for info, I can reproduce this issue when running as admin too. Don't think this could be considered as bug in Blender though. You can follow guide at https://docs.microsoft.com/en-us/troubleshoot/windows-client/networking/mapped-drives-not-available-from-elevated-command to resolve this issue. @Harley Seems that `GetLogicalDrives()` does not report network drives "correctly" in this case. According to https://stackoverflow.com/questions/42767614/how-to-correctly-detect-network-drive-when-running-with-elevated-privileges it seems like it would be possible to work around, but the code seems a bit magical to me. Do you think this is something you would like to resolve or shall I close this report?
Member

@iss - As far as I can tell this isn't really a Blender issue...

If you map a network drive as person A, but then launch the program as person B, you won't see that drive mapping. Not sure that this could even be solved with user tokens since the program running as B doesn't even know who A is.

If I were having this problem I would just make a batch file that:

  • drops that drive mapping if set
  • maps the share to the drive letter
  • launches Blender

And then run that batch file as Administrator. Should work perfectly.

You could also just use the UNC patch instead of the drive letter. So if you are mapping *server/sharename to to F:, just copy *server/sharename into the Blender File Browser location bar, bookmark that.

Another (distant) possibility is to show users unmapped network shares: D6802: Test Only: Available Windows Network Shares but the discovery process can take a while on some systems (although almost instant on well-designed large domains).

@iss - As far as I can tell this isn't really a Blender issue... If you map a network drive as person **A**, but then launch the program as person **B**, you won't see that drive mapping. Not sure that this could even be solved with user tokens since the program running as **B** doesn't even know who **A** is. If I were having this problem I would just make a batch file that: - drops that drive mapping if set - maps the share to the drive letter - launches Blender **And then run that batch file as Administrator**. Should work perfectly. You could also just use the UNC patch instead of the drive letter. So if you are mapping `*server/sharename` to to `F:`, just copy `*server/sharename` into the Blender File Browser location bar, bookmark that. Another (distant) possibility is to show users *unmapped* network shares: [D6802: Test Only: Available Windows Network Shares](https://archive.blender.org/developer/D6802) but the discovery process can take a while on some systems (although almost instant on well-designed large domains).
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

Blender requires no special permissions there should be no need to run it as administrator, we generally advise against it since it also prevents drag and drop from working from unprivileged processes like explorer

Blender requires no special permissions there should be no need to run it as administrator, we generally advise against it since it also prevents drag and drop from working from unprivileged processes like explorer
Author

I only run as admin because Sketchfab addon requires it or it won't work correctly

I only run as admin because Sketchfab addon requires it or it won't work correctly
Member

In #99008#1387221, @LazyDodo wrote:
Blender requires no special permissions there should be no need to run it as administrator, we generally advise against it since it also prevents drag and drop from working from unprivileged processes like explorer

They mentioned that they "run as administrator which is required by some addons like the sketchfab addon". Would make more sense to fix those addons, since that should never be required. Hate to make someone's experience worse - and potentially unsafe - just to accommodate some funky addons.

> In #99008#1387221, @LazyDodo wrote: > Blender requires no special permissions there should be no need to run it as administrator, we generally advise against it since it also prevents drag and drop from working from unprivileged processes like explorer They mentioned that they "run as administrator which is required by some addons like the sketchfab addon". Would make more sense to fix those addons, since that should never be required. Hate to make someone's experience worse - and potentially unsafe - just to accommodate some funky addons.
Author

I wish they can fix it. Reported it long ago on git hub. The developer is very inactive

I wish they can fix it. Reported it long ago on git hub. The developer is very inactive

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Thank you all for info. Will close this report, since this is not bug in Blender.

Thank you all for info. Will close this report, since this is not bug in Blender.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#99008
No description provided.