Server V3 is no longer in alpha! Introducing v3.0.0-beta1

Hi everyone,

We have just released v3.0.0-beta1. We soon be going around the website and making a few updates, but we want our community here to know about it first.

Beta1 is a major milestone in the software overhaul, we now believe it is good enough for most of our users with a few caveats for specific use cases that we will work on before final release.

Release notes (since Alpha 5)

With this release, we move v3 from alpha to beta 1. This release has combined some essential back-end changes with improving the user experience, especially during calibration and scanning. It also sees the return of the Gallery and Full SD card images with a graphical interface directly from the Pi!

Some highlights of the release:

  • A new Gallery tab replaces the Scan List tab With significant improvements including a faster database driven back end, new views and filtering, and improvements to the viewer.
  • Building a “full” SD card image with a graphical OS
  • Huge improvements to scanning including increase seed, previews starting earlier, a view for settings mid-scan, and improvements to the stitching algorithm
  • A new camera API which makes it easier to add new cameras, and better defines the capturing and streaming modes for cameras
  • Continued improvement and modernisation of the webapp including library modernisation, improved logging tab, and a better mobile/touchscreen experience.
  • Global locking of the server to stop actions happening at the same time.
  • Fixed autofocus frame timing so autofocus no longer overshoots.
  • A new microscope management server on port 5001
  • OS migration from Debian Bookworm to Debian Trixie

Installation

To burn the OS you will need version 2 of the Raspberry Pi imager software. Version 1.9.X doesn’t customise the OS correctly.

  • Open Imager2
  • Select App options
  • Click the edit button next to “Content Repository”
  • Select “Use custom URL” and paste in the following URL: https://build.openflexure.org/raspbian-openflexure/v3_pre_release/2026-08-26-raspios-openflexure-trixie-arm64/manifest.json
  • Select Apply & Restart
  • Now you can select:
    • Raspberry Pi 4
    • OpenFlexure
    • If you want a full OS including a desktop: OpenFlexure Raspbian v3.0.0-beta1 Full, OR
    • If you want a lite image for remote control only: OpenFlexure Raspbian v3.0.0-beta1 Lite
  • Select your SD card from the list
  • give your microscope a name, and select Next
  • Leave the localisation settings as they are and click Next
  • Choose a user name and password then click Next
  • Optionally enter your Wifi details, but you can skip this (you may need to delete the SSID for it to let you click Next)
  • Turn Enable SSH on and click Use Password Authentication (Unless you understand SSH keys and how to manage them)
  • Finally click write and wait for it to finish

Should I switch to v3.0.0-beta-1

Probably! You perhaps try it on a new SD card rather than wipe your current working OS.

  • If you are using a v3.0.0-alpha - Certainly, yes
  • If you use v2 of the server (the release currently on the website) - Probably, unless
    • You use the nano/pico workaround for the motor board - We need to update the firmware for these, we are working on it. (With an older Sangaboard, you may be required to update the firmware)
    • You use a delta stage - There is currently no Delta Stage support, we are looking to add it soon
    • You need a specific extension - We have plans for a better extension experience, but currently it is not ready. Due to the almost total re-write of the software v2 extensions do not work

When will v3.0.0 be released

There are a number of things remaining before a full release including:

  • More users and user feedback is needed (installing beta1 and giving us feedback will help us a lot)
  • A strategy/mechanism for OS/Server upgrades (Help wanted!!)
  • A new extension framework
  • Delta stage and other motorboard support
  • A configuration interface for changing plugins and camera/moorboard/stage configuration
7 Likes

good stuff!

the urls in the raspi-installer manifest.json seem to disagree with the build server.
the manifest.json refers to https://build.openflexure.org/raspbian-openflexure/testing/2026-08-26-raspios-openflexure-trixie-arm64/2026-08-26-raspios-openflexure-trixie-arm64-lite.img.xz which gives a 404.

the images seem to be in the pre-release folder along with the manifest, so https://build.openflexure.org/raspbian-openflexure/v3_pre_release/2026-08-26-raspios-openflexure-trixie-arm64/2026-08-26-raspios-openflexure-trixie-arm64-lite.img.xz seems to be the correct path for lite, or alternately there is an 2026-08-25 build in the testing folder.

for the impatient, you can download and save the manifest, correct the path in the urls, and use “local manifest” option in the imager instead of manifest from URL. then it works. if you instead download the image and use that as a custom image, unfortunately the imager won’t apply the customizations.

in related nuisance, for some reason the appimage flavor of the 2.x releases of the imager doesn’t seem to work on my laptop. fortunately there is a .deb installer in the raspberry pi website, just in case anyone has a similar experience. the symptom was validation failure during the write phase, and nothing ever written to the sdcard.

2 Likes

Damn! I copied the manifest across from the testing location and then didn’t update the manifest. Give me one sec!

This should now be fixed! I have also made an issue for us to update our release checklist to update the manifest URLs.

Thanks for this!

2 Likes

I used the AppImage if imager2 for testing on Kubuntu 24.04. Did the deb version re-download the image? I wonder if they store data in a different place. It might be worth checking the hash of the downloaded file, may have been pure chance that there was a download issue?

the imager seems to use a local cache, does not download again if you have downloaded the same image previously. at least it didnt for me. unfortunately it took several iterations, different images, cards, user configurations (sudo etc) until i ended up on appimage as the culprit. popos fwiw. the sdcard was all zeros, no writes at all. permissions or sandboxing perhaps.

1 Like

Outdated OS/Servers become a risk to the rest of the network, thus I think providing that capability through standard OS tooling - ie standard package management is going to be key, as it slots in with company’s policies, doesn’t complicate operating models, nor require additional skillsets.

The code base is open source, and people can/will support/maintain their own combinations of versions, therefore I would suggest focusing on the “head” of the development. I’ve had the fun of maintaining patching across a large 1000+ estate. I’d strongly advise automating everything with zero manual configuration or logins - drive it all out of the pipeline, providing tooling to make it easy for people to support their own builds. They have the option for going for the reliable build and that would be the suggested option. If their hardware is a ‘bane’ (ie the third party drivers are out of end of support or end of life) then they could freeze the process and maintain it at risk.

a) Ensure reliability
An automated version that follows the long term support Raspberry OS. The OS patching is then managed by RP and the server is part of that. Automated pipelines could regression test for the current patch level - that could be triggered on OS updates being detected. It’s unlikely that the server and OS will fail due to incompatibility however there is a chance (pillow for example).
Automated testing of hardware installs can be done by netbooting the boot loader for the dedicated RPI hardware onto a build server. This installs the OS with an XML installation script, runs apt update/upgrade on the standard Raspberry OS installation and upgrades the server packagers. If the devices are hard linked (ie IP cable) this can be quick and relatively painless to automate full install, configuration and executing test scripts to test the server itself (ie an automated web tester to test the UI and thus the server).
A little hardware investment could be extremely beneficial in addressing this. (I had an entire AWS organisation for pipeline testing the AWS cloud platform, along with the 10 live organisations!)

On policy point - the more packages added not in the OS distribution, the more likely it is to have a problem with dependency incompatibility. The same is true with hardware combinations and to a degree we have to trust the drivers here. A sense check of appropriate camera with the appropriate age hardware should help reduce the combinations - older RPi with a Cam v2 and a newer with a Cam V2 and an HQ.

b) Enable forward movement
You’ve already got the backstop providing reliability, a similar pipeline can be triggered to test new features and installation on the above, you’re coding up the automation and that will feed into the reliability build on release.
A forward movement pipeline build would be “the current front” of the build and patching, it will break things and that’s the idea.

c) Deprecation - this is an important one
It’s worth adding to the forward build pipeline a deprecation warning stage - for OS and for hardware. It allows people to see if there’s a problem coming their way, they can plan and make for changes.

Naturally you can generate a new SD image easily enough for each stage automatically too. The results of the automated testing can then be pulled back into GitLab for audit purposes.

EDIT: Just an additional point w.r.t 32 bit and windowing etc.

Between now and 2030 we’re going to see RP continue to discontinue and ramp down 32 bit support. Debian Trixie already has some incompatibilities from missing CPU instructions, I would expect the windowing manager changes along with the addressing space changes of 64bit to create further friction.
In my view - we support the application/server but not the OS/hardware. The support given to the older hardware is using the above pipelines and hardware test rigs, with the older boards on the automated testing remaining on the older unsupported 32 bit operating systems legacy image, patching can be tested and the automated testing continues to verify the existing application build against it. At some point there will be a dependency that fails and at that point a call about feature support (optional flag in the install perhaps) may be an option however code becomes a mess quickly with workarounds etc so an ROI and set limit before the flag is deprecated would be the best option. If it’s a new feature - is there a more compatible version of the dependancy?
At some point the certificates expire and patching assemblies of the vendors stops - that we can’t maintain.

The main two builds for LTS reliability and experimental/forward then remain as the focus.

There IS a benefit for this - one the key issues with Raspberry OS 32bit (ie rasbian) is that it’s not as good managing workloads. This would cause an issue for larger imaging. Likewise we’re likely to see more of a push to AI capable SBC, that means the platforms have more compute and larger capacities appearing in the likes of Raspberry OS - not perhaps needed for AI in this case but parallel processing should improve. Paradoxically the RPis on the secondhand market then become perfect - cheap, plenty available, and there’s still a version of the OFM that would work (although not OS secure due to lack of updates).

1 Like

Hi,

Cannot start microscope server with Pi Camera HQ. Tried to change settings of camera in /var/openflexure/application/openflexure-microscope-server/ofm_config_full.json to PiCameraHQ but it gives error “[Errno 117] Structure needs cleaning: ‘/var/openflexure/logs/’”.

Can you change that file back to how it was and try following these instructions:

If you then run ofm restart. If that fails can you upload a copy of the full log?

Hi, changing /var/openflexure/settings/ofm_config.json

to

{
“base_config_file”: “/var/openflexure/application/openflexure-microscope-server/ofm_config_full.json”,
“patch”: {
“things”: {
“camera”: {
“kwargs”: {
“camera_board”: “picamera_hq”
}
}
}
}
}

causes "1 validation error for ThingServerConfig things.cls Field required [type=missing, input_value={‘kwargs’: {‘camera_board’: ‘picamera_hq’}}, input_type=dict] For further information visit Validation Errors | Pydantic Docs "

Traceback:

Traceback (most recent call last):
  File "/var/openflexure/application/openflexure-microscope-server/src/openflexure_microscope_server/server/__init__.py", line 111, in serve_from_cli
    lt_config = _full_config_from_args(args)
  File "/var/openflexure/application/openflexure-microscope-server/src/openflexure_microscope_server/server/__init__.py", line 197, in _full_config_from_args
    return ThingServerConfig(**patched_config)
  File "/var/openflexure/application/openflexure-microscope-server/.venv/lib/python3.13/site-packages/pydantic/main.py", line 263, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for ThingServerConfig
things.cls
  Field required [type=missing, input_value={'kwargs': {'camera_board': 'picamera_hq'}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.13/v/missing

But changing ofm_config.json to
“base_config_file”: “/var/openflexure/application/openflexure-microscope-server/ofm_config_full.json”,
“patch”: {
“things”: {
“camera”: {
“class”: “openflexure_microscope_server.things.camera.picamera:PiCameraHQ”,
“kwargs”: {}
}
}
}

}
loads the camera. But since i was trying openflexure server to use as a camera to take pictures from a microscope “stage” thing failed. Back to v2 i guess :upside_down_face:

Sorry, I think the HQ instructions are out of date. The plan is to be able to switch this in the management server once we are a bit more setup. We do need to update the docs.

@JohemianKnapsody Do you have a copy of your patch file for the HQ camera to get it working?

I’m confused as to what you mean here? You mean the stage wouldn’t load?

Hi all,

My patch file is:

joe@no-mount:~ $ sudo cat /var/openflexure/settings/ofm_config.json
{
    "base_config_file": "/var/openflexure/application/openflexure-microscope-server/ofm_config_full.json",
    "patch": {
        "things": {
            "camera": {
                "class": "openflexure_microscope_server.things.camera.picamera:PiCameraHQ",
                "kwargs": {}
                      }
                  }
             }
}

and works fine.

Is the problem that you want to be able to run the server without a stage?

Hi,

Here is the setup i was trying to use v3 for.

I meant camera is loaded, but since there is no stage server won’t load.

@JohemianKnapsody I was trying to use this setup with v3 beta1 since the gallery is back. If there is a way to run server without a stage option available i’ll take that any day. By the way I tried to run server with deleting stage related things like autofocus, stage mapping etc. from /var/openflexure/application/openflexure-microscope-server/ofm_config_full.json but obviously it didn’t work.

If there is no stage then you will want to patch the manual configuration rather than the full configuration:

{
    "base_config_file": "/var/openflexure/application/openflexure-microscope-server/ofm_config_manual.json",
    "patch": {
        "things": {
            "camera": {
                "class": "openflexure_microscope_server.things.camera.picamera:PiCameraHQ",
                "kwargs": {}
                      }
                  }
             }
}

Note that the gallery doesn’t show up because of a bug in beta1 which has bow been fixed for next release.