Upgrade debian 11 bullseye

224 views
Skip to first unread message

didier....@gmail.com

unread,
Feb 23, 2022, 8:08:21 AM2/23/22
to weewx-user
Hi

Today I have a debian 10, weewx 4.6.2 and Belchertown skin 1.3b1 (working perfectly)
Is it possible to upgarde debian to next release 11 bullseye ?

If yes, what is the procedure?

Many thanks

Message has been deleted

Aslak Vaa

unread,
Feb 23, 2022, 10:21:28 AM2/23/22
to weewx-user
It is possible to make an upgrade from Raspbian OS Buster to Bullseye as long as you do not change from 32 bits to 64 bits version or vice versa.
You will find instructions on how to make an upgrade by searching the net with keywords "Raspbian OS Buster to Bullseye Raspberry Pi". 
The only issue is that you will have to keep buster in the file /etc/apt/sources.list.d/weewx.list. It will not work when you replace buster with bullseye in that file.

I have a Raspberry Pi 4 Model B with 4 GB of RAM. I previously ran Buster in 32 bits version, and I wanted Bullseye in 64 bits version,.
I started with a fresh installation of Bullseye 64 bits, and I made a full installation of weewx with extensions and all prerequisits. After transferring configuration,  database and other changed files from old Buster setup and starting up weewx, everything worked just fine.
If you have 4 GB RAM or more in your Raspberry Pi, I will recommend that you go for the 64 bits version. 
With older RPis 32 bits Bullseye will be the only option even if RPi 3 is able to run the 64 bits version of OS. 

Didier Decoodt

unread,
Feb 23, 2022, 11:21:14 AM2/23/22
to weewx...@googlegroups.com
Thanks for your answer
I have not a raspberry, this is a virtual machine 64bits on a vmware server, but I think that the upgrade is similar.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/78ac619e-bdb8-411f-9764-cbf260f4d346n%40googlegroups.com.


--

vhel...@gmail.com

unread,
Feb 24, 2022, 4:29:08 AM2/24/22
to weewx-user
Hi,

You can upgrade to Debian 11. Here's one howto: https://www.linuxtechi.com/how-to-upgrade-debian-10-to-debian-11/
Since you are using VMware, take a snapshot before upgrade, and maybe also copy important weewx files to somewhere safe too.
It should be flawless, but you newer know... :) 

Didier Decoodt

unread,
Feb 24, 2022, 5:21:07 AM2/24/22
to weewx...@googlegroups.com
Hi

During the first upgrade (10.4 to 10.10), I have an error:

invoke-rc.d: initscript apache2, action "restart" failed.
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2022-02-23 18:55:55 CET; 12ms ago
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 17929 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

févr. 23 18:55:55 meteo systemd[1]: Starting The Apache HTTP Server...
févr. 23 18:55:55 meteo apachectl[17929]: AH00526: Syntax error on line 4 of /etc/apache2/mods-enabled/brotli.conf:
févr. 23 18:55:55 meteo apachectl[17929]: Invalid command 'BrotliCompressionLevel', perhaps misspelled or defined by a module not included in the server configuration
févr. 23 18:55:55 meteo apachectl[17929]: Action 'start' failed.
févr. 23 18:55:55 meteo apachectl[17929]: The Apache error log may have more information.
févr. 23 18:55:55 meteo systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
févr. 23 18:55:55 meteo systemd[1]: apache2.service: Failed with result 'exit-code'.
févr. 23 18:55:55 meteo systemd[1]: Failed to start The Apache HTTP Server.

May be due to brotli, I check brotli.conf (but I think it's correct...)

<IfModule brotli_module>
  # Compression
  ## BrotliCompressionLevel: 0-11 (default: 11)
  BrotliCompressionLevel 10
  ## BrotliWindowSize: 10-24 (default: 22)
  BrotliWindowSize 22
  # Logging
  # Filter note
  BrotliFilterNote Input  brotli_in
  BrotliFilterNote Output brotli_out
  BrotliFilterNote Ratio  brotli_ratio
  #LogFormat '"%r" %{brotli_out}n/%{brotli_in}n (%{brotli_ratio}n)' brotli
  #CustomLog ${APACHE_LOG_DIR}/brotli_access.log brotli
  # Output filter
  AddOutputFilterByType BROTLI text/html text/plain text/css text/xml
  AddOutputFilterByType BROTLI text/css
  AddOutputFilterByType BROTLI application/x-javascript application/javascript
  AddOutputFilterByType BROTLI application/rss+xml
  AddOutputFilterByType BROTLI application/xml
  AddOutputFilterByType BROTLI application/json
  # Global output filer if necessary.
  # SetOutputFilter BROTLI
  # SetEnvIfNoCase Request_URI \.txt$ no-br
</IfModule>

vhel...@gmail.com

unread,
Feb 25, 2022, 4:53:53 AM2/25/22
to weewx-user
That error does not have anythink to do with Weewx, you should google with error or try to disable that brotli compression and then upgrade.

Didier Decoodt

unread,
Feb 25, 2022, 4:57:44 AM2/25/22
to weewx...@googlegroups.com
I agree with you, I will try to disable brotli, it's a good idea
I have also opened a discussion on brotli google group, but no news...

didier....@gmail.com

unread,
Feb 28, 2022, 5:59:41 AM2/28/22
to weewx-user
I have disabled brotli (command a2dismod brotli) 
No more errors about brotli during upgrade

Thank's

Reply all
Reply to author
Forward
0 new messages