Archivebox Docker superuser root issues

Since unraid forum is throwing a hissyfit with its captcha thing, I’ll just post it on my own website.

Issue:

root@<containername>:/data# archivebox manage createsuperuser
[i] [2021-11-11 14:29:07] ArchiveBox v0.6.2: archivebox manage createsuperuser
> /data

[i] ArchiveBox should never be run as root!
For more information, see the security overview documentation:
https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview#do-not-run-as-root

Oh noes. Open the unraid console and type:

$ sudo docker exec -it --user archivebox <containername> /bin/bash

If you do not know the name of your docker, open the console panel of the archivebox docker and search in the url for “container=”. The number behind that is the name of your docker.

So your prompt looks like this:

archivebox@<containerid>:/data$

Then run:

archivebox manage createsuperuser

Sauce: https://forums.unraid.net/topic/95296-run-docker-as-another-user/?do=findComment&comment=993988

How to fix Docker update “not available” in unRAID 6.8.3

Because something went wrong probably and it takes unRAID literally ages to issue an update. So here’s the fix!

(until you restart the server)

SSH into unRAID and edit this file: /usr/local/emhttp/plugins/dynamix.docker.manager/include/DockerClient.php

replace this line:

preg_match('@Docker-Content-Digest:\s*(.*)@', $reply, $matches);

with this

preg_match('@Docker-Content-Digest:\s*(.*)@i', $reply, $matches);

Sauce: https://www.reddit.com/r/unRAID/comments/nk1sa2/how_to_fix_docker_update_not_available_in_unraid/

Fixing a 0x800700df error

Possible reason: File transfer limit in Webclient Service

  1. Open regedit
  2. Go to: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ WebClient \ Parameters
  3. Find: FileSizeLimitInBytes and open it
  4. Select Decimal
  5. Enter the following number:
    4294967295
  6. Click op OK
  7. Hold windowskey + R
  8. Enter services.msc
  9. Find WebClient
  10. Right click the service and select restart.

Done.

Install Group Policy Editor (gpedit.msc)

  1. Open command prompt with admin rights
  2. Enter the following one after the other and the software has been installed.
    1. FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")
    2. FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")

Rye and Buckwheat cookies!

Note: you can also use 140 gram whole weat and 140 gram oat flour.

* 140 gram rye wheat
* 140 gram buckwheat flour
* 1 tbsp oat bran
* 8 gram vanilla sugar
* 52 gram fine sugar
* 1 tsp baking powder
* a pinch of salt
* 150 gram cold butter
* 60 ml cold water
* 1 egg
* 2 tbsp whole milk

– Paper baking sheet
– Fork
– Brush

* Grab kitchen machine and deploy the K hook (if you have a kenwood)
* Add all dry ingredients into the bowl and mix it with a whisk
* Shred the butter in small pieces and add it to the bowl
* Mix ingredients until you have a rough but even substance
* Deploy dough hook and resume mixing while adding the water slowly
* Keep mixing until you have a smooth dough
* Wrap ball of dough in kitchen foil and stick it in the freezer for 30 minutes
* Preheat the oven to 160 C

* Sprinkle flour on the kitchen counter and roll out the dough until it is 5 mm thick
* Cut circles in the dough with a cookie cutter or a drinking glass
* Place the cookies about a centimeter apart from each other on the bakingsheet that you already put on the baking tray
* Make a number of holes in the cookies with a fork
* Put the egg and the milk in a cup and whisk it with the fork until smooth and fully blended
* Cover with the brush the cookies with the egg/milk mix

* Put in oven and set a timer for 30 minutes
* When done, take them out of the oven and place them on a tray (preferably a mesh tray) to let them cool down.

Enjoy!

The best almond cookies ever

RECIPE FOR GINGER/ALMOND COOKIES

75 gr – Generic flour
75 gr – Almond flour
1/4 tsp – Baking powder
1/8 tsp – Pinch of salt
50 gr – Dark brown sugar
50 gr – COLD butter
6 balls – Ginger on syrup
2 tbsp – Caramel syrup
2 tbsp – Ginger syrup

Oven 175C

* Mix flour, sugar, baking powder, salt together
* Shred the ginger into little bits and add to the mix
* Add the syrup
* Shred the COLD butter into little bits and add to the mix

Mix in machine until smooth. Make balls, bake for up to 20 min.

Stoofperen Recipe

Stoofperen

Ingredients:
◦ 2 kg Gieser Wildeman pears
◦ 500 ml red wine
◦ 250 ml water (or wine if you have enough, this is just to make things cheaper)
◦ 1 Star anise or “Illicium Verum”
◦ 1/2 tbsp cinnamon
◦ 4 tbsp dark-brown sugar that contains inverted sugar syrup. We call this “basterdsuiker.”
◦ Few drops of vanilla extract
◦ Few drops of almost extract
◦ Handful of Sultana raisins

Tools:
◦ Tea egg
◦ Thick-bottomed pot
◦ Timer
◦ Measuring spoons
◦ Measuring cup

Manual:
⁃ Peel the pears as thin as possible
⁃ Quarter the pear and cut the rigid stem lines, core and butt out
⁃ Place the pears in the pot
⁃ Place the raisins in the pot
⁃ Put the anise in a tea egg and place it in the pot
⁃ Pour de wine and water in the measuring cup (or just the 750ml wine and no water)
⁃ Add the Cinnamon, vanilla- and almond extract and the brown sugar
⁃ Stir well so the sugar and cinnamon is well dissolved in the wine
⁃ Pour the wine in the pot and make sure that the amount of wine is enough to cover the pears

Bring the content of the pot to a boil and then put the lid on it and turn the heat to low. Just enough to keep it simmering.
Keep it at this heat for 90 minutes and GENTLY stir it at the 45 minute mark.

When done, let it cool down and then you can divide it into storage containers. Be careful, the pears are now soft and fragile.

This recipe is made to my personal flavour and you can always give it your own variation to it!