Error: "/seaside/go/%5Cdefault.css/...

new BookmarkLockedFalling
pierre
New Member
*

pierre Avatar

Posts: 8

Post by pierre on Jun 8, 2013 9:53:53 GMT -5

I am testing my app on my home WiFi network, prior to letting my friends loose on it. When I run the app on 2 PCs, and click a button on each PC simultaneously to execute a query (not necessarily the same one), I frequently get a page saying:

Error: "/seaside/go/%5Cdefault.css/runbasicpersonal" not found.

I have seen the 2 posts in "Run BASIC Coding Questions" (from ajmcgee , Jun 7, 2011) and in "Bug Reports" (from melvin2001, Jun 12, 2009), but neither has a solution.

Please, is there a fix for this ? I have tried journal_mode=WAL, synchronous=0, locking_mode=NORMAL (and other suggested combinations), but nothing has stopped it yet.

(My Run BASIC Console says it is v1.01, build 2.44)

It would be great to get this resolved. Compared to other methods of building web apps, this is by far the most useable and friendly system I have found, and I am keen to stick with it.

Many thanks.
pierre
New Member
*

pierre Avatar

Posts: 8

StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
pierre
New Member
*

pierre Avatar

Posts: 8

Post by pierre on Jun 10, 2013 15:33:45 GMT -5

Firstly, thank you for your reply, Stefan - much appreciated.

Regarding the comment about SQLite: I had got the impression that together with WAL (write-ahead logging), SQLite was quite good at low to medium volumes for multiple users. Surely Run BASIC online apps are not restricted to one user at a time ?

Please could someone put me straight on this. My aim is to write a small online system, to be queried and/or updated perhaps 3 or 4 times a day in total, by up to 30 users, using SQLite, and "hobbyist" level web hosting. Is this feasible with Run BASIC ? I really hope so.

Many thanks.
meerkat
Senior Member
****

meerkat Avatar

Posts: 250

pierre
New Member
*

pierre Avatar

Posts: 8

Post by pierre on Jun 11, 2013 6:43:00 GMT -5

Thanks Stefan and Meekat for the heads-up on this. "PRAGMA read_uncommitted=1" looks as though it should reduce the occurrence of locks in a big way - I will try it out.

I am now going to press ahead with the project, and see how it turns out. With a low number of users, and a bit of user education, hopefully this will be a workable solution. Looking forward to the day when we can use other databases as well, but even so, what a great bit of software Run BASIC is - I'm really impressed.
StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
pierre
New Member
*

pierre Avatar

Posts: 8

StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

Post by StefanPendl on Jun 13, 2013 11:11:47 GMT -5

Sorry, but you can't trap the locking of the DB file, this will just freeze the session.

I would create a file if a user starts your application.
This file would be checked for its existence during the start.

Pseudo code:

If flag file exists notify user of the application being used and try again in a minute.
If it doesn't exist create it and proceed with the start of the application.
After the session has ended delete the flag file.
[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
pierre
New Member
*

pierre Avatar

Posts: 8

pierre
New Member
*

pierre Avatar

Posts: 8

Post by pierre on Jun 15, 2013 9:33:02 GMT -5

Just to let people know, even using only sequential files, with a home-grown locking mechanism, I still get the "/seaside/go/%5Cdefault.css/" message (though not quite as often).

So, this message is not connected to SQLite; it is presumably an issue with whatever sits behind Run BASIC. Oh well, back to the drawing board.
StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
StefanPendl
Global Moderator
*****

StefanPendl Avatar

Run for BASIC ...
Posts: 945

Post by StefanPendl on Jun 15, 2013 19:08:56 GMT -5

I just did another search and found the following:

StefanPendl Avatar
Searching this forum for the past 7000 days for "default.css" returned the following hit:
default.css not found


When searching make sure to increase the days to at least two years, since searching within the last 7 days just gets no hits at all in most cases.
Last Edit: Jun 15, 2013 19:09:27 GMT -5 by StefanPendl
[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
pierre
New Member
*

pierre Avatar

Posts: 8

Post by pierre on Jun 17, 2013 10:12:27 GMT -5

OK ... I commented out all commands that involve CSS, and got rid of all SQLite calls, in a really cut-down bit of code. I still get the error page. It happens whenever the server is doing something meaty, and while it is doing that, a link (or button) is clicked.

For example: I set up a page (call it [mainPage]), which does a "cls", and then loads and renders a small picture file. It also has links to a different page. Navigate away from [mainPage], using 2 PCs both connected to that application, then press a button or link to return to [mainPage]. If you press both "return" buttons more or less at the same time, the /seaside/go/..." error page appears (this is using localhost).

So, it looks like the server can't cope with a request arriving when it is already busy doing something.

Thanks for the other link, Stefan (default.css not found). However, I had already read that one; unfortunately it doesn't end with a solution.