SimpleSaml “State Information Lost” when trying to log in as admin after downgrade

Recently I had to downgrade a simpleSAML installation from 2.1 to 2.0 for php compatibility reasons. We are running it on an Ubuntu 22 server using Apache2 and mysql for session storage. I copied all the config files and metadata from the old installation to the new one, so there has been no changes to the config between versions. Now when I go to mysite.com/simplesaml/admin to try and log into the admin console, I get an error page saying State Information Lost. Here is a copy of the backtrace:

SimpleSAMLErrorNoState: NOSTATE Backtrace: 6 src/SimpleSAML/Auth/State.php:302 (SimpleSAMLAuthState::loadState) 5 modules/core/src/Controller/Login.php:116 (SimpleSAMLModulecoreControllerLogin::loginuserpass) 4 vendor/symfony/http-kernel/HttpKernel.php:163 (SymfonyComponentHttpKernelHttpKernel::handleRaw) 3 vendor/symfony/http-kernel/HttpKernel.php:75 (SymfonyComponentHttpKernelHttpKernel::handle) 2 vendor/symfony/http-kernel/Kernel.php:202 (SymfonyComponentHttpKernelKernel::handle) 1 src/SimpleSAML/Module.php:234 (SimpleSAMLModule::process) 0 public/module.php:17 (N/A)

And then the error logs:

May 17 11:29:28 simplesamlphp DEBUG [de887928eb] Session: 'admin' not valid because we are not authenticated. May 17 11:29:28 simplesamlphp DEBUG [de887928eb] Session: 'login-admin' not valid because we are not authenticated. May 17 11:29:28 simplesamlphp DEBUG [de887928eb] Saved state: '_2b9d472295cf32790012325d0b0618651866e7fd23' May 17 11:29:28 simplesamlphp DEBUG [49a50f26d1] Loading state: '_2b9d472295cf32790012325d0b0618651866e7fd23' May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] SimpleSAMLErrorNoState: NOSTATE May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] Backtrace: May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] 6 /var/simplesamlphp/src/SimpleSAML/Auth/State.php:302 (SimpleSAMLAuthState::loadState) May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] 5 /var/simplesamlphp/modules/core/src/Controller/Login.php:116 (SimpleSAMLModulecoreControllerLogin::loginuserpass) May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] 4 /var/simplesamlphp/vendor/symfony/http-kernel/HttpKernel.php:163 (SymfonyComponentHttpKernelHttpKernel::handleRaw) May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] 3 /var/simplesamlphp/vendor/symfony/http-kernel/HttpKernel.php:75 (SymfonyComponentHttpKernelHttpKernel::handle) May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] 2 /var/simplesamlphp/vendor/symfony/http-kernel/Kernel.php:202 (SymfonyComponentHttpKernelKernel::handle) May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] 1 /var/simplesamlphp/src/SimpleSAML/Module.php:234 (SimpleSAMLModule::process) May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] 0 /var/simplesamlphp/public/module.php:17 (N/A) May 17 11:29:28 simplesamlphp ERROR [49a50f26d1] Error report with id e57ceed9 generated. May 17 11:29:28 simplesamlphp DEBUG [49a50f26d1] Localization: load domain 'messages' at '/var/simplesamlphp/locales' May 17 11:29:28 simplesamlphp DEBUG [49a50f26d1] Trying langpath for 'en' as '/var/simplesamlphp/locales/en/LC_MESSAGES/' May 17 11:29:28 simplesamlphp DEBUG [49a50f26d1] Localization: load domain 'core' at '/var/simplesamlphp/modules/core/locales' May 17 11:29:28 simplesamlphp DEBUG [49a50f26d1] Trying langpath for 'en' as '/var/simplesamlphp/modules/core/locales/en/LC_MESSAGES/'

Whenever I try to visit the page again, I can see a new entry in the session database, so I know the application should be able to access the session data, but I have no idea what else could be going on here. Anyone else have any ideas?

I have tried clearing cookies, clearing session data, deleting the php session directory, changing store.type to phpsessions, none of which has made any difference. This is pretty frustrating given it was working fine with simplesaml 2.1 with the exact same configuration.

New contributor

Gabe K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật