Git Product home page Git Product logo

Comments (4)

erichiller avatar erichiller commented on June 1, 2024

There should not be any conflict between the two. I realized that I didn't have the clearest of instructions on the interface, I just put a lot of changes that will make it more understandable, should be up shortly. But in the meantime, just to ensure you have the process right; it should be:

  1. Double click the table cell
  2. When done hit the [enter] key (Don't just click away, the cell only saves when enter is pressed)
  3. Click the "Save & Update"

If that is what you have been doing a couple of things I can think of trying, first just to make sure, maybe it is just the image, but check that the mac address is correctly formatted. MAC addresses are always 6 pairs of hex. So the format for a given device should be 01:02:03:04:05:06 for example.

I know it is annoying that it doesn't reject with any error, I am fixing that as we speak.

In the meantime, all the errors are logged to the Log file (the second tab), can you see if there are any entries at the time of Save & Config pertaining to the error?

from dnsmasq-qpkg.

rblakeslee avatar rblakeslee commented on June 1, 2024

I didn't actually have any problems with the install overall, or with the interface, after the first attempt, I figured out what I had to do without reading anything. The image above isn't indicative of what I actually typed in there, I did put the whole MAC in, I just wanted a visual to show no more rows.
The problem seems to be (and it persists after reboots/uninstall/reinstalls of the qpkg on firmware 4.2) that the "Save & Update" button isn't functioning for me. On any of the tabs.
Also, nothing shows up in the Log file, I checked to see if anything new was being generated via an SSH login, and I couldn't find any new files being updated, nor anything in dmesg. It's almost like the service itself isn't running or starting which might explain why it's not performing the save/update.
Normally you get some kind of response or at least a frame around a button when clicking it in html, but clicking the button produces no visual response to indicate it's been clicked, no refresh of the screen, nothing.
I started dnsmasq manually with
/etc/init.d/dnsmasq.sh start
and it does run/stay running, but obviously if it's not configured, it won't do it's job.

I can type all the info in, click/spacebar/enter on what I assume to be the button's focus (tabbing from the last text box) but as soon as I close the window and reopen it from the dash, all the boxes are empty and unsaved.

Edit: I should mention I found the install files, they're all set to defaults that are dictated in the install scripts, their permissions are set to admin/admin and look all appropriate, and there is stuff in the log file, it just seems the web gui is not displaying or interacting with the files at all , which leads me to believe that something in the 4.2 firmware changed the location that the web gui is looking for the files perhaps?
the installed files on mine are /share/MD0_DATA/.qpkg/dnsmasq
I've never put one of these together, so I don't know if this is explicitly listed in the gui code or not.

from dnsmasq-qpkg.

rblakeslee avatar rblakeslee commented on June 1, 2024

I used Kint to trace the PHP on my system and I'm getting this output:

[/share/MD0_DATA/.qpkg/dnsmasq/web] # php index.php
PHP Warning: Error parsing /etc/config/qpkg.conf on line 678
in /share/MD0_DATA/.qpkg/dnsmasq/web/functions.php on line 4
PHP Warning: file(/dnsmasq.log): failed to open stream: No such file or directory in /share/MD0_DATA/.qpkg/dnsmasq/web/functions.php on line 6
PHP Warning: file(/dnsmasq.leases): failed to open stream: No such file or directory in /share/MD0_DATA/.qpkg/dnsmasq/web/functions.php on line 7
PHP Warning: file(/dnsmasq_dhcphosts.conf): failed to open stream: No such file or directory in /share/MD0_DATA/.qpkg/dnsmasq/web/functions.php on line 8
PHP Warning: file(/dnsmasq_hostmap.conf): failed to open stream: No such file or directory in /share/MD0_DATA/.qpkg/dnsmasq/web/functions.php on line 9
PHP Warning: file(/dnsmasq.conf): failed to open stream: No such file or directory in /share/MD0_DATA/.qpkg/dnsmasq/web/functions.php on line 12
PHP Warning: Invalid argument supplied for foreach() in /share/MD0_DATA/.qpkg/dnsmasq/web/functions.php on line 13

Kint: dd() is being deprecated, please use ddd() instead

don't know if it's relevant or just a php warning but line 678 is
Display_Name = Surveillance Station (Local Display)

It seems on my system for whatever reason, the files can't be found, and therefore can't be parsed.
The files are there, and accessible, but the script is failing due to the above, that's why I'm getting failure to save/read the files with the web ui. I'll try to figure it out.

Edit: AAAAAND I figured it out, that line has non-alphanumeric characters in it, causing the parse to barf and therefore never reach the part where the dnsmasq config lines are being held.
I enclosed it in quotes to test fix it and it worked.
Since the Surveillance Station is a common app on a number of QNAP units, maybe there's a way to work around this. This particular package is part of the HybridDesk App for HDMI output on the device.

Again, I'm don't work with PHP so I'm not sure how this would be fixed in code without having to manually edit the qpkg.conf and I don't know that the qpkg.conf won't be altered every time there's an update for the Local Display, which is quite frequent. I'd remove it from mine, but I do use it.

from dnsmasq-qpkg.

erichiller avatar erichiller commented on June 1, 2024

@rblakeslee Once again I have to thank you for filling me in on this, I have this fixed as well in the newest release. Reworked how the ini file is parsed. Was using PHP's built in, which wasn't passing muster. Tested good now. Let me know if you have any further issues at all. And thanks a million.

from dnsmasq-qpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.