-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DSM7 #34
Comments
Hi. Thanks for noticing this. I haven't looked at this in a while, but on my system, I do see both of those files. For me they are both have the same contents and the same timestamp. Are you saying something needs to be changed here? |
Him Gary, thank you for getting back to me!
I got this entry in the log : stat: cannot stat '/etc/dhcpd/dhcpd-leases.log': No such file or directory
/var/services/homes/admin/scripts/logs$ date
Sat Jan 23 17:31:22 CET 2021
/var/services/homes/admin/scripts/logs$ ls -ali /etc/dhcpd/ |grep dhcp
91982 -rw-r--r-- 1 DhcpServer DhcpServer 13 Jan 23 14:33 dhcpd-bond0.info
139743 -rw-r--r-- 1 DhcpServer DhcpServer 191 Sep 22 16:25 dhcpd-bond0-static.conf
65751 -rw-r--r-- 1 DhcpServer DhcpServer 575 Jan 23 14:33 dhcpd-bond0-subnet0.conf
65949 -rw-r--r-- 1 DhcpServer DhcpServer 13 Jan 23 14:33 dhcpd-bond0-subnet0.info
141782 -rw-r--r-- 1 DhcpServer DhcpServer 1049 Jan 23 14:33 dhcpd.conf
90478 -rw-r--r-- 1 root root 1931 Jan 23 17:31 dhcpd.conf.leases
92241 -rw-r--r-- 1 root root 173 Jan 23 14:33 dhcpd-dns-dns.conf
91674 -rw-r--r-- 1 root root 14 Jan 23 14:33 dhcpd-dns-dns.info
106540 -rw-r--r-- 1 DhcpServer DhcpServer 13 Jan 23 14:33 dhcpd.info
110188 -rw-r--r-- 1 DhcpServer DhcpServer 48 Nov 25 2013 dhcpd-server-options.conf
140278 -rw-r--r-- 1 DhcpServer DhcpServer 0 Mar 30 2016 dhcpd-server-static.conf
110622 -rw-r--r-- 1 DhcpServer DhcpServer 0 Sep 13 2018 dhcpd-static-static.conf
36658 -rw-r--r-- 1 DhcpServer DhcpServer 2703 Jan 23 11:40 tmp-dhcpd-leases.log
I’d updated to day to the new DSM 7.0-41222 beta version and your script stoped working. Maybe there is a change.
I will monitor this and come back to you if something comes up again.
Chris
… On 23 Jan 2021, at 17:10, Gary Clayburg ***@***.***> wrote:
Hi. Thanks for noticing this.
I haven't looked at this in a while, but on my system, I do see both of those files. For me they are both have the same contents and the same timestamp. Are you saying something needs to be changed here?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#34 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABZVEW7ZVVAVZC6CBICTNN3S3LYGHANCNFSM4WPWPOUQ>.
|
Oh that could be. I haven't tried these scripts with that version yet. There definitely were some changes we needed to do for the DSM 5 to version 6 some time ago. Maybe synology is using a newer version of DNS? |
The script is working as it should. $ZoneRootDir/script/reload.sh |
Ok. What version of the DNS package are you running? |
3.0.0 - 6047
… On 27 Jan 2021, at 21:13, Gary Clayburg ***@***.***> wrote:
Ok. What version of the DNS package are you running?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#34 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABZVEW4E4PB2KRYQYE5CHLLS4BXWZANCNFSM4WPWPOUQ>.
|
Ok. I am running version 2.2.2 5027 and I am not seeing this problem. The standard reload.sh seems to work fine. My concern in changing the script to do a restart is that it could lead to more hiccups for everyday clients while the service is restarted. And this script can run quite often especially on a network with several dhcp clients. Are you sure the restart is required for you? Or was there some sort of timeout involved when you were testing? Could you try it again with a new dhcp lease and a reload.sh step in the script? |
The script was changing the zone correctly but the entries were not advertised by the dns.
Via nslookup new IP can’t resolved with reload only. Strange behaviour I know. But now it’s working
In my home lan there are roughly 70 devices registering IPS and DNS. Most of them are smart devices.
They do not have a good WILAN connectivity and loos the connection over the time.
As said - I do not have any issues with the script now. I will monitor this closely and keep you posted.
Please come back to me for any new findings from your side.
… On 28 Jan 2021, at 17:18, Gary Clayburg ***@***.***> wrote:
Ok. I am running version 2.2.2 5027 and I am not seeing this problem. The standard reload.sh seems to work fine. My concern in changing the script to do a restart is that it could lead to more hiccups for everyday clients while the service is restarted. And this script can run quite often especially on a network with several dhcp clients.
Are you sure the restart is required for you? Or was there some sort of timeout involved when you were testing? Could you try it again with a new dhcp lease and a reload.sh step in the script?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#34 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABZVEW5LSOK4BEWKKCVPSILS4GE4JANCNFSM4WPWPOUQ>.
|
Hi @gclayburg , I now have the same issue on all three of my Synology systems in my labs. Two of them worked for a while, but then stopped. One is a new install and does not work. I'm running the following versions: I have not tried @christianmeier work around yet since I just came across this thread. I'm waiting to upgrade all my systems to the same versions because I was thinking this was a version issue, but as you can see, my issues are with various version. Please let me know if you have been able to determine the root cause and can provide a fix. Thank you. |
Hmm. I have not seen this issue on my synology diskstation. I wonder if your system is doing more DHCP changes than my network? Maybe DHCP is assigning new IP addresses to existing names more often? Do you see this issue for a new DHCP client being added to the network, i.e. a using a name that did not exist in DNS? Or does this issue only occur for existing DHCP clients? BTW, I'm not sure if it matters, but I am using the latest DNS version now: Although for some reason, I'm not able to bring up the DNS package details screen from the package center using the web UI. To me this looks like some sort of strange UI issue, unrelated to this problem. I do see the version number for DNSServer in the /var/log/synopkg.log file like this:
|
@gclayburg , I had a good amount of time to troubleshoot today and I found the root cause, but not a complete solution. The issues is that I configure all my DNS server 'Zone Update Rules' with a key. This way only systems with the same key can update the zone. When I remove this rule completely, the zone gets updated as expected with your script and when I run the reload.sh command manually. When I add the key rule, the zone does not get updated with your script or the manual command. This makes perfect sense. So, in order to try to resolve the issue, I tried a few things that did not work and I'm hoping someone can point me in the right direction. Here's what I tried.
Do you have any ideas about the rndc key? ######################## I wanted to upgrade DNS, but I didn't want to break anything further since I know it did work at one time on the current version of the two systems. Now that I know it's not a version issue, I will go ahead and upgrade to the latest. Your command to get the DNS version worked. So I'm running three different versions, all have the same issue. |
ok, so the script is working for you but you are having trouble configuring zone update rules? I haven't tried using anything other than the default, so I can't offer much help on that. |
@gclayburg , |
@ALL If I can support you in case. let me know |
@christianmeier, The quickest way to test is running the following command, changing the full path of the rndc key and the domain name. |
Would I understand accurately that as of now the main branch is not reliable for use with DSM 7? |
@brainchild0 I'd say it's stable, but only after updating the command in poll-dhcp-changes.sh to be:
|
Is there any reason for not introducing this change into the distribution? |
Hi, let me check this tomorrow. BR C
… On 5 Jul 2021, at 19:47, brainchild0 ***@***.***> wrote:
Is there any reason for not introducing this change into the distribution?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#34 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABZVEWZVR3APPCQR3USCQ4LTWHV2DANCNFSM4WPWPOUQ>.
|
@brainchild0 I actually submitted a pull request yesterday to do exactly that. Someone with the correct permissions needs to approve and merge, but based on the other two that have been sitting out there for a while I wouldn't expect it to happen in the near future. I know @gclayburg hasn't spent much time on this script lately, and that's totally understandable. You may just need to make the change yourself. |
Hi guys - I should have some time later tonight to look at this. My issue though is that I'm using an older synology that can't run DSM 7 so I can't test it the way I'd like. I can at least verify that it doesn't break anything with DSM 6 though. |
Hi, I’m bleeding edge… coming back-had an outage to day.. lot on my table..
C
… On 7 Jul 2021, at 16:23, Gary Clayburg ***@***.***> wrote:
Hi guys - I should have some time later tonight to look at this. My issue though is that I'm using an older synology that can't run DSM 7 so I can't test it the way I'd like. I can at least verify that it doesn't break anything with DSM 6 though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I see the PR, so it seems one option is that I simply take the snapshot from a10c15c. However, it would be nice to have a merge, or any more official pathway for obtaining a functional snapshots. |
Ok guys, it looks like we need some better error detection for poll-dhcp-changes.sh. So I'm looking on my system running DSM 6 and I do see both of these files: From what I see both of these files get modified when a new DHCP lease occurs. Does this always happen? I've been using the script for years with the script only doing a reload when the /etc/dhcpd/dhcpd-leases.log file changes. Apparently this doesn't always happen anymore under DSM7? I want to fix this to work under DSM 7, but I don't want to break anything for DSM 6 users like me. So I think what I might do is change the script to do a DNS reload if either of these files are modified. @dougmeek Thank you for your contribution. If I run the command in your patch I get an error. Is this intentional or just an oversight? I bet it probably works though.
|
FYI - I plan on testing this change I just created for the next few days on DSM 6. Any volunteers to test this change on DSM 7? |
As said, I’m on DSM 7 and can test it. No issue. Regarding the logging I suggest to place them to /var/logs and also set up log-rotate.
let me knew witch snapshot I can test.
… On 11 Jul 2021, at 02:55, Gary Clayburg ***@***.***> wrote:
FYI - I plan on testing this change I just created for the next few days on DSM 6. Any volunteers to test this change on DSM 7?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#34 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABZVEW3JUUOOHNUXPSOVO4TTXDTYDANCNFSM4WPWPOUQ>.
|
@gclayburg I think that may have been a typo on my part. It was supposed to be:
As far as the difference between versions goes, if both files are present and updated on DSM 6, I suggest that we target the file that exists on DSM 7. That said, it probably wouldn't be too difficult to build an if statement to determine the release version, after determining the version:
Give me a bit and I'll update my PR to reflect the correct command, that targets both versions. I appreciate you looking at this. EDIT: I didn't see your updates after your message to me because I was looking on mobile. Looks like you've already made a change to address this. I'll throw it up on my DSM 7 box and give it a try. Will let you know what I see in a bit. I'll kill a bunch of clients and have them get new addresses, which should generate some tests. |
@gclayburg I've dropped the change on my NAS. I'm seeing a 100% success rate on 28 systems checking back in with new IPs. The old records are being removed/updated, and the new IPs are correct both in the forward and reverse zones. Additionally for context, I'm using a class B reverse zone rather than a class C, and it's working as expected. I'd call that a success on DSM 7. I don't have a DSM 6 box laying around to test with, but I'm good with this change from my testing results. Thanks for looking into this. @christianmeier I'd be down with integrating the log file to the DSM Log Center, but I don't even know how to go about doing that. If you do, that would be a pretty nice enhancement. I'd even help you work on the coding of it if you had some knowledge of the logging mechanisms of DSM. My guess is that it uses the /var/log files but I have no idea. |
It's running stable as said - but I had issues with the syno dns app to manage dns entries. I saw, that the file permission of the zones belong to nobody:nobody. This was causing that I was not able edit the zones. |
@christianmeier: To me, this observation would mean, unfortunately, that the package is not yet stable. You said you tried to make a branch. Do you have a working solution to the problem? You can simply clone project to your Github account, push your fix to your account, and then create a pull request. Hopefully, the author would be happy to accept if it is a good solution. |
I stick to it, that it runs stable. Stable means for me that it does what it is expected. The issues with the permissions on the zone need to be verified from others. May I'm the only one with that symptom : ) |
Do you have an improved version available for testing? |
imported it into my gitlab and invited you |
I see the project, but no code. It may be helpful to put it in Github, since the project started here, and as far I know pull requests are only supported within the platform. More important, it would seem helpful to share with everyone, not just with me. |
Got your point, I'll stay in Gitlab. Most of my code is work-related and I'm not allowed to share it . Why you do not import the projekt into your github? |
@brainchild0 you are not the only one having issues. I have the same permissions issue and have resorted to just updating the master zones with SSH if I need to modify a record. The GUI is broken when running this. There's another open issue #38 that documents this. |
hi, try this diskstation_dns_modify.sh Change: |
@christianmeier I will when I get a few. Currently in great need of coffee lol. I see that #38 has a potential fix, it just needs to be put into a PR and tested. |
@christianmeier I'd say at this point with the original intent of this issue, it's probably safe to close this issue. It's been close to a year and the only major problem that's cropped up is this permissions issue that seems relatively new and is documented in a separate issue. |
Agree |
Can confirm that #38 does resolve the permissions issue for zone files in DSM 7. One of us can easily do a PR to fix that, but we'll need someone with DSM 6 to test with. @gclayburg @christianmeier @brainchild0 do any of you have a DSM 6 box to test with? |
nope, I'm bleeding edge |
I don't have any equipment running DSM 6 any longer. I believe Synology offers a tool chain for running a second version virtually, for testing purposes, but it is probably a hassle to configure. How bad would it be simply to drop support for earlier versions of DSM? |
Against my suggestion that the issue remain open until all major stability issues are resolved, including the one recently mentioned, I suggest at least that anyone who would close this thread do so only while leaving a comment explaining the remaining issues and providing references to the topics tracking them. |
@brainchild0 the original issue in this issue has been resolved, being the leases file. The only other issue that I'm aware of is documented in #38. There are likely quite a few people still running DSM 6. My guess is that it's quite simple to modify the script to support both DSM 6 and DSM 7, but we'd need a DSM 6 filesystem to look at permissions. If you want to stand up a virtual DSM 6 I will provide you with a fixed script that you can test with. I'm running a modified version that fixes the permissions issue documented in #38. It works flawlessly. Thus, if the same code works for DSM 6, we can resolve the outstanding issues #34 and #38. At present IMO, #34 is resolved. The submitter for this issue (@christianmeier) also agrees that this should be closed, as the leases issue was resolved many months ago. Likely this issue should've been closed then. For 100% clarity at the request of your last post, the only outstanding issue is #38. Apply that code and this is stable. |
@dougmeek: Perhaps the title of this topic has misled me in regard to what others consider its scope. |
@brainchild0 I totally agree. This issue technically should've been closed after the last two commits to master. Which is why @christianmeier said in his opinion the release was stable. |
Well, I would be less apprehensive about withdrawing my request for keeping the topic open (which is irrelevant, anyway, having been overruled) if the title were changed to represent the comparatively narrow scope of the actual discussion. |
I mean, if you run into issues, you can just open an issue for that? I'm not sure I understand your apprehension or frustration with closing out this stale issue. It's a functional script that works for DSM 7 just fine. If you're trying to run this in production, that's on you anyway. DNS/DHCP/IPAM should be run on something more robust in a prod environment, like Infoblox. Anyway, good luck. |
I simply was suggesting changing the name of the topic. |
I can also recommend Infoblox, beside this I recommend to focus on features and not only on issues. I always appreciate people that are contributing to community projects instead of raising just issues. Don't get me wrong. But I was reading thru this thread and the only thing that was coming from your side was orders how we shall proceed. It's a peaceful feedback from my side. |
@christianmeier: I'm sorry you didn't find my suggestions constructive. You may not be familiar with common patterns in Github. I felt it might be easier for everyone if you would try to follow them. I was trying to be helpful, not controlling or negative. |
The current discussion has become confused. Following is my attempt to summarize the status:
One question I have not resolved is the relation between the current issue and #38, for instance, whether they are duplicates, and whether they may be resolved most easily under a single merged pull request. In any case, I am eager to have access to an improved version that attempts to resolve the known issues for DSM 7. Surely it would be helpful to any using the project, since most will not wish to remain at an earlier version of DSM. |
@brainchild0 honestly, that reads really condescending and I don't appreciate the way you're talking to @christianmeier. No one here is paid to support this repo and you demanding that someone do or not do something really comes off the wrong way. If you don't like how things are being managed here, you're welcome to fork and do it yourself. I don't know what you find so difficult about understanding this issue. I've stated it in multiple comments now and at this point I'm convinced you're just trolling. If you read this issue you'll see that the issue was opened to report an issue with the leases file. The description is irrelevant. Read the first post in the issue. It seems to me that you are the one that doesn't understand basic GitHub patterns:
There's nothing confusing about this to anyone else. This issue is pertaining to a leases file, which has been fixed. The only thing that's confusing is why it wasn't closed after the commits that resolved it.
As I've stated, there is no relation between the issues. They are not duplicates. This issue, #34, was resolved in commits 35d5680 and d399181. Issue #38 has been addressed in PR #39 already, but has not been reviewed and merged to master as only @gclayburg has access to do that. Feel free to test #39 and provide feedback on that. Hopefully that helps. @christianmeier would you please close this issue? It doesn't look like I have the ability. |
The title is the text displayed in the listing, to anyone browsing or searching issues in the tracker. It is difficult, and sometimes confusing, if the title of an issue does not match its scope. The pull request is the standard means for users to share contributions, and seemed sensible to suggest because someone was blocked by a permissions issue related to pushing directly to the project branch. If you experience my suggestions as demands, you are free to disregard them. Others might have experienced them as constructive. In all my experience on Github, giving suggestions of the kinds I have given in this discussion, by me or anyone else, has never been controversial, much less caused anyone offense. To apologize once more, I am sorry it seems to have done so here. |
Hi guys, sorry but I was away from github for a few days. There is some cleanup here to do for sure. I'll work on some of that tonight. I can also test out the #38 fix on DSM 6. I suspect there are many like me using older hardware that are stuck with DSM 6. |
hi @christianmeier , sorry, appreciate this discussion is a little old. |
@gclayburg, would it be better to create a issue for the request? BR Chris |
New path dhcpd.conf.leases
DSM6 ATIME=
stat /etc/dhcpd/dhcpd-leases.log | grep Modify
DSM7 ATIME=
stat /etc/dhcpd/dhcpd.conf.leases g | grep Modify
EDIT:dhcpd.conf.leases
The text was updated successfully, but these errors were encountered: