# Help with a problem in the web apps tutorial in the Racket docs

**URL:** <https://racket.discourse.group/t/help-with-a-problem-in-the-web-apps-tutorial-in-the-racket-docs/2485>\
**Category:** Questions & Answers\
**Created:** [November 9, 2023, 10:29pm UTC](https://racket.discourse.group/t/help-with-a-problem-in-the-web-apps-tutorial-in-the-racket-docs/2485 "2023-11-09T22:29:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devonlepage](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/devonlepage/32/773_2.png) [@devonlepage](https://racket.discourse.group/u/devonlepage)\
**Post date:** [November 9, 2023, 10:29pm UTC](https://racket.discourse.group/t/help-with-a-problem-in-the-web-apps-tutorial-in-the-racket-docs/2485/1 "2023-11-09T22:29:47Z")

</div>

I am a (noob) hobbyist programmer and have worked through the second edition of HtDP. Today I've been reading through Continue: Web Applications in Racket in the docs and I can't seem to get the iteration of the blog example in [Section 14: A Persistent Model](https://docs.racket-lang.org/continue/index.html) to run properly. I'm on Windows 11, using DrRacket with Racket v8.10. Running the copypasted code from an `app-2.rkt` file from DrRacket, the blog successfully loads the main page and any post detail pages, but if I attempt to add a post or comment, I receive the following error message:

```scheme
open-output-file: error deleting file
  path: C:\Program Files\Racket_v8.10\share\pkgs\web-server-lib\web-server\default-web-root\htdocs\the-blog-data.db
  system error: The system cannot find the file specified.; win_err=2

```

What is going on here? (And how can I fix it?) My assumption was that the `initialize-blog!` function is supposed to check the same directory as the `model.rkt` file that defines it, and then load or create the blog there. But it seems it's trying to do this somewhere else?

Any help would be greatly appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [November 9, 2023, 11:31pm UTC](https://racket.discourse.group/t/help-with-a-problem-in-the-web-apps-tutorial-in-the-racket-docs/2485/2 "2023-11-09T23:31:28Z")

</div>

It seems the example doesn't check that the file exists before attempting to delete it. (Or maybe there is a step to make the db?)

As a first attempt to fix the problem, I'd simply make an empty file in:

C:\Program Files\Racket\_v8.10\share\pkgs\web-server-lib\web-server\default-web-root\htdocs\the-blog-data.db

This way the delete step can run successfully.

Since you file ends in `.db` maybe the issue is that you parts of your program comes from the tutorial before databases are introduced?

You can compare your program with:

> <https://github.com/racket/web-server/blob/09a586146e234e710a2ac257ede33d74337976f7/web-server-doc/web-server/scribblings/tutorial/examples/model-3.rkt>
