Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Cannot access SMB shares from container after upgrade to TrueNAS-SCALE-22.02-RC.2

Description

I have an application that accesses SMB shares on external server, in a container.

It lost access right after upgrade to TrueNAS-SCALE-22.02-RC.2

Rollback to TrueNAS-SCALE-22.02-RC.1-2 restored access.

Note that the `TrueNAS-SCALE-22.02-RC.2` is not on the list of affected versions. Please set affected version when it's available in Jira.

Problem/Justification

None

Impact

None

Activity

Show:

Waqar Ahmed March 9, 2022 at 10:37 AM

you should be easily able to define searches/ndots for the app via networking settings when editing an app deployed via launch docker image button and i also believe the same holds for truecharts ( haven't recently tested truecharts ).

Once you do that - this will resolve your issue. Let me know please if you face any issues with any of the official app on that end. Thanks!

Oleg Tsvinev March 8, 2022 at 8:38 PM

sorry if my comments are confusing.

  1. I was unable to edit application configuration to add search domain - no documentation and I couldn't find a way how.

  2. Changing /etc/resolv.conf in the running container, from ndots=5 to ndots=1 made no difference

  3. Adding search domain to /etc/resolv.conf solves the problem.

FQDN names resolve without any changes, but I need a host-only name in this particular configuration,

Waqar Ahmed March 8, 2022 at 7:11 PM

i am sorry, i don't follow you completely. To be clear, changing the configuration settings by modifying the app settings - did it work for you ?

Oleg Tsvinev March 8, 2022 at 1:10 AM
Edited

Changing ndots from 5 to 1 and removing my internal domain from lookup domains list, both in container's /etc/resolv.conf caused the container to stop resolving non-FQDN names.
I had no doubts about the outcome but decided to make the changes for the sake of experiment.
Rolled them back and have DNS working again.

Oleg Tsvinev March 7, 2022 at 8:36 PM

I did not update the ndots, because for the container in question, it was already 5.
I don't quite see the connection between ndots and search domains.
I manually add my own domain to /etc/resolv.conf and then name resolution works. This is not a public domain. Name resolution works if I use FQDN but this is now what I want to do.
The Truecharts UI is totally unclear as to how to add search domains, otherwise I'd add it there, without having to edit /etc/resolv.conf in the container. My domain is not shown above, to be clear but presents IRL.

User Configuration Error
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Impact

Critical

Time remaining

0m

Fix versions

Affects versions

Priority

Katalon Platform

Created December 27, 2021 at 7:27 PM
Updated July 6, 2022 at 9:01 PM
Resolved March 9, 2022 at 10:37 AM