Save Text - Bug?
Started by DrumBox




5 posts in this topic
DrumBox

4 posts 2 threads Joined: Feb 2021
27-02-21, 16:35 -
#1
Hello,


there is the possibility to edit the definition.txt in the webgui with
"save text" function.
It does not work at my setup!

Does anybody got experiences or can anybody confirm that this is a bug?

Would be great if this would work because it would make experimenting with definition parameters much more easier.

Thank you & Cheers

DrumBox
Ken

8 posts 1 threads Joined: Feb 2021
28-02-21, 19:37 -
#2
(27-02-21, 16:35)DrumBox Wrote: Hello,


there is the possibility to edit the definition.txt in the webgui with
"save text" function.
It does not work at my setup!

Does anybody got experiences or can anybody confirm that this is a bug?

Would be great if this would work because it would make experimenting with definition parameters much more easier.

Thank you & Cheers

DrumBox

Are you talking about the "submit" button?  If your samples are on the system partition they can not be updated.
hansehv

168 posts 17 threads Joined: Dec 2020
28-02-21, 21:23 -
#3
Hi Drumbox,
On the image is should be working as described.
I hope I can help and would appreciate if you can start manually, as described on the Build it page.
When submitting the text change, you should see mount messages (and possibly error messages) between the webserver loglines. These should give a lead.
hansehv

168 posts 17 threads Joined: Dec 2020
28-02-21, 21:52 -
#4
(28-02-21, 19:37)Ken Wrote: If your samples are on the system partition they can not be updated.

Hi Ken,
I think samples can only be on the system partition, if either
  • the SD image has changed (deleted samples partition, extended system partition and change fstab). If you do that, then I expect you know what you're doing = if it breaks you may keep the pieces.
  • run from a desktop, which has been setup in such a way that gv.rootprefix (defined on top of samplerbox.py) can remain "".
    This would imply to have samplerbox files in /root. I did not think of somebody working like this as I considered this bad practice. I introduced the gv.rootprefix to avoid that.
    But anyway: the script needs to know whether it runs on the image (where the samples directory is RO and thus needs remounts) or on a system where it can just save.
    And if it erroneously wants to remount a samples subdir on a desktop, the thing fails.
    In next release(s) it will have a better of determining "do I run from a distributed SD"
This post was last modified: 28-02-21, 21:53 by hansehv.
DrumBox

4 posts 2 threads Joined: Feb 2021
02-03-21, 14:50 -
#5
(28-02-21, 21:23)hansehv Wrote: Hi Drumbox,
On the image is should be working as described.
I hope I can help and would appreciate if you can start manually, as described on the Build it page.
When submitting the text change, you should see mount messages (and possibly error messages) between the webserver loglines. These should give a lead.

Hi Hans,

I did like you told me...
this is what my samplerbox tries to tell me when pressing "Save Text".  (with USB-Stick mounted)

mount: /dev/sda1 mounted on /media.
192.168.178.20 - - [01/Jan/1970 02:18:49] "POST /definition.html HTTP/1.1" 200 -
192.168.178.20 - - [01/Jan/1970 02:18:49] "GET /SamplerBox.API HTTP/1.1" 200 -
192.168.178.20 - - [01/Jan/1970 02:18:49] "GET /SamplerBox.css HTTP/1.1" 200 -
192.168.178.20 - - [01/Jan/1970 02:18:49] "GET /SamplerBox_GUI.js HTTP/1.1" 200 -


And you are right, the "Save Text" button works as expected without the USB-Stick:

mount: /dev/mmcblk0p3 mounted on /samples.

mount: /dev/mmcblk0p3 mounted on /samples.

192.168.178.20 - - [01/Jan/1970 02:49:14] "POST /definition.html HTTP/1.1" 200 -

We have None, we want 0 Demo

192.168.178.20 - - [01/Jan/1970 02:49:14] "GET /SamplerBox.API HTTP/1.1" 200 -

192.168.178.20 - - [01/Jan/1970 02:49:15] "GET /SamplerBox.css HTTP/1.1" 200 -

192.168.178.20 - - [01/Jan/1970 02:49:15] "GET /SamplerBox_GUI.js HTTP/1.1" 200 -

Loaded '0 Demo', 90% free memory left

192.168.178.20 - - [01/Jan/1970 02:49:16] "GET /definition.html HTTP/1.1" 200 -

192.168.178.20 - - [01/Jan/1970 02:49:16] "GET /SamplerBox.API HTTP/1.1" 200 -

192.168.178.20 - - [01/Jan/1970 02:49:16] "GET /SamplerBox.css HTTP/1.1" 200 -
192.168.178.20 - - [01/Jan/1970 02:49:16] "GET /SamplerBox_GUI.js HTTP/1.1" 200 - 


Does that help you?

Regards
hansehv

168 posts 17 threads Joined: Dec 2020
06-03-21, 23:46 -
#6
Hi DrumBox,
I'll proceed via PM as this seems to be an individual issue (for me it works and this is the first report on misbehaviour). Conclusion to be shared ofcourse.  Wink