Upgrade from v3 to v4

There is a huge different between Crowsnest v3 and v4. Unfortunately, it also means that there are major breaking changes, and you'll need to do some manual steps to upgrade.

Step 1: Uninstall Crowsnest v3

At first, you have to uninstall the old version of Crowsnest. Please connect your printer/SBC via SSH and execute these commands:

cd ~/crowsnest
make uninstall

And answer the following questions this way:

  1. Do you REALLY want to remove existing 'crowsnest'? (y/N) > delete the N and type y for "Yes" and hit enter.

  2. do you want to remove crowsnest.conf > answer with n for "No"

  3. enter your password, if the uninstaller ask for it

  4. Ignore the instrunction to remove the crowsnest folder and to remove the update section in the moonraker.conf.

Step 2: Update Crowsnest

Just open Mainsail and click on the update button in the update manager on the Crowsnest entry.

Step 3: Reinstall Crowsnest

Now you are able to reinstall all Crowsnest components/backends with:

This will need some time, because dependencies have to be installed and the streamer camera-streamer have to be compiled.

At the end of the installation you will be ask:

  • Do you want to add 'update manager' entry to your moonraker.conf? > it doesn't matter what you answer, because you have already the update_manager section in your moonraker.conf. So this step will be skipped if you enter y.

  • Reboot NOW? > enter y and press enter

Step 4: Update moonraker.conf

Open your moonraker.conf in Mainsail and change this line:

  • install_script: tools/install.sh to install_script: tools/pkglist.sh

The complete update_manager section should look like this:

Step 5: Modify crowsnest.conf

Crowsnest had backup your old crowsnest.conf to crowsnest.conf.date-of-backup and create a new crowsnest.conf with the new default values. If you changed anything in it before, please copy your old settings to the new crowsnest.conf.

Pay attention, that the mode names are changed and mjpg is now ustreamer.

Step 6: Switch to camera-streamer (optional)

Open your crowsnest.conf in Mainsail and change the mode of your webcam to camera-streamer. Here is an example cam setting after the switch to camera-streamer:

Now click on SAVE & RESTART.

After the restart of Crowsnest, you have to change the Settings in Mainsail to WebRTC to use the full power of the new streamer. Open Interface Settings > Webcams > and click on the pencil to change the webcam settings. There you have to change following settings:

  • URL stream: /webcam/?action=stream to /webcam/webrtc

  • Service: to WebRTC(camera-streamer)

Webcam settings for WebRTC (camera-streamer)

Step 7: Remove outdated settings in /boot/config.txt (optional)

This is only necessary, if you use a Raspicam / CSI cameras, but its recommended to be up-to-date with all settings.

Open your /boot/config.txt with this command:

and search for the following lines:

  • camera_auto_detect=0

  • start_x=1

You have to disable both lines. To do this, just add a # in front of these lines. This should look like this then:

After changing these lines, press CTRL-s to save and CTRL-x to close the editor. Then reboot your Pi to reload the settings with sudo reboot.

Troubleshooting

  • Raspicam don't work any more: Please follow this guide to fix it.

Last updated

Was this helpful?