opentechinstitute / luci-commotion

Commotion configuration pages for the LuCI web interface
GNU General Public License v3.0
11 stars 17 forks source link

[CLOSED] fixed bug where obsolete service files werent being deleted when service... #324

Closed oti-tech closed 10 years ago

oti-tech commented 10 years ago

Issue by dismantl Thursday Jul 25, 2013 at 16:05 GMT Originally opened as https://github.com/opentechinstitute/luci-commotion-apps/pull/6


... is updated

to test: 1) create a service w/ web interface, where service IP address is 127.0.0.1 and Port field is blank. You should see a file in /etc/avahi/services/ called 127_460_460_461.service. 2) Log in as admin, and edit the service in the web interface. Add '80' to the Port field, and click submit. In the /etc/avahi/services directory, the old file 127_460_460_461.service should no longer be there, and 127_460_460_46180.service should be there instead.


dismantl included the following code: https://github.com/opentechinstitute/luci-commotion-apps/pull/6/commits

oti-tech commented 10 years ago

Comment by areynold Friday Aug 16, 2013 at 13:59 GMT


I'm getting a luci error when I submit my app:

500 Internal Server Error

Sorry, the server encountered an unexpected error.

/usr/lib/lua/luci/dispatcher.lua:448: Failed to execute call dispatcher target for entry '/apps'. The called action terminated with an exception: /usr/lib/lua/luci/template.lua:104: Failed to execute template 'commotion/apps_view'. A runtime error occured: /usr/lib/lua/luci/template.lua:104: Failed to execute template 'commotion/apps_display'. A runtime error occured: /usr/lib/lua/luci/template.lua:104: Failed to execute template 'themes/commotion/apps_apps'. A runtime error occured: [string "/usr/lib/lua/luci/view/themes/commotion/app..."]:3: attempt to index field 'fingerprint' (a nil value) stack traceback: [C]: in function 'assert' /usr/lib/lua/luci/dispatcher.lua:448: in function 'dispatch' /usr/lib/lua/luci/dispatcher.lua:195: in function