Solution that worked for the issue: Your current session has been expired. for Magento2
cat shell-scripts/temp.sh
# fix misc issues, can be routine
sudo php bin/magento maintenance:enable
#sudo rm -rf var/cache/
#sudo rm -rf generated/
sudo chmod +x bin/magento
sudo php bin/magento setup:upgrade
#sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento setup:di:compile
sudo php bin/magento indexer:reindex
sudo php bin/magento cache:clean
sudo php bin/magento cache:flush
sudo php bin/magento setup:static-content:deploy -f
sudo php bin/magento maintenance:disable
#Then adjust permissions for var
# other options tried:
did not solve:
INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`)
VALUES ('default', 0, 'admin/security/session_lifetime', '86400');
Tried but did not help
Go to : admin_user_session
table in MySql Set created_at
column to ‘0’ and updated_at
column to ‘CURRENT_TIMESTAMP’ as it is.