Skip to content

[BUG] File integrity reports warning for teampass_background_tasks.lock #5364

Description

@reginfo

Before you start

  • I have searched the existing issues and this is not a duplicate
  • I have read the troubleshooting guide
  • This is a bug report, not a question

Steps to reproduce

  1. Log in as Administrator
  2. Go to Monitoring -> System Health -> File integrity
  3. Run file integrity scan

Expected behaviour

Status needs to be OK

Actual behaviour

Status is with warning about File and directory permissions for storage/logs/teampass_background_tasks.lock.

This file appears only when you perform scan and this will generate warning everytime.

Teampass version

3.2.2.3

Install type

Fresh install

If upgraded, from which release?

3.1.6.13 -> 3.1.7.2 -> 3.1.7.3 -> 3.1.7.4 -> 3.1.7.5 -> 3.2.0.9 -> 3.2.1.1 -> 3.2.1.2 -> 3.2.1.3 -> 3.2.1.4 -> 3.2.1.5 -> 3.2.1.7

Deployment

Bare metal / VM

PHP version

8.3.6

Database

MariaDB 10.11.14

Web server

Apache 2.4.58

Server operating system

Ubuntu 24.04

Browser and client OS

No response

Teampass configuration variables

'access_reviews_enabled' => '0'
'activate_expiration' => '0'
'admin_2fa_required' => '1'
'aes_v2_write_enabled' => '1'
'agses_authentication_enabled' => '0'
'allow_import' => '0'
'allow_print' => '1'
'anyone_can_modify' => '0'
'anyone_can_modify_bydefault' => '0'
'api' => '0'
'api_cors_origins' => ''
'api_rate_limit_per_minute' => '0'
'api_require_https' => '0'
'api_token_duration' => '60'
'bck_script_filename' => 'bck_teampass'
'bck_script_passkey' => ''
'bck_script_passkey_restore_candidates' => 'DELETED'
'bck_script_path' => '/var/www/html/teampass//backups'
'browser_extension_key' => ''
'bruteforce_lock_duration' => '10'
'clean_orphan_objects_task' => ''
'cli_php_binary_path' => ''
'clipboard_life_duration' => '30'
'command_palette_enabled' => '1'
'compliance_reports_enabled' => '0'
'copy_to_clipboard_small_icons' => '1'
'cpassman_dir' => '/var/www/html/teampass/'
'cpassman_url' => 'https:///'
'create_item_without_password' => '0'
'custom_login_text' => ''
'custom_logo' => ''
'data_classification_enabled' => '0'
'date_format' => 'd/m/Y'
'default_language' => 'english'
'default_session_expiration_time' => '60'
'delay_item_edition' => '1'
'disable_show_forgot_pwd_link' => '1'
'duo' => '0'
'duo_failmode' => 'secure'
'duo_host' => ''
'duo_ikey' => ''
'duo_skey' => ''
'duplicate_folder' => '1'
'duplicate_item' => '1'
'email_auth_pwd' => ''
'email_auth_username' => ''
'email_debug_level' => '0'
'email_from' => ''
'email_from_name' => 'Password Management'
'email_port' => '587'
'email_security' => 'tls'
'email_server_url' => 'https://DELETED'
'email_smtp_auth' => '1'
'email_smtp_server' => ''
'emails_templates_enabled' => '1'
'enable_ad_user_auto_creation' => '0'
'enable_ad_users_with_ad_groups' => '1'
'enable_attachment_encryption' => '1'
'enable_delete_after_consultation' => '0'
'enable_email_notification_on_item_shown' => '0'
'enable_email_notification_on_user_pw_change' => '1'
'enable_fastcgi_finish_request' => '1'
'enable_favourites' => '1'
'enable_http_request_login' => '0'
'enable_kb' => '1'
'enable_local_password_recovery' => '0'
'enable_massive_move_delete' => '0'
'enable_personal_saltkey_cookie' => '0'
'enable_pf_feature' => '0'
'enable_refresh_task_last_execution' => '1'
'enable_send_email_on_user_login' => '0'
'enable_server_password_change' => '0'
'enable_sts' => '0'
'enable_suggestion' => '1'
'enable_tasks_log' => '0'
'enable_tasks_manager' => '1'
'enable_user_can_create_folders' => '0'
'encryptClientServer' => '1'
'extension_licence_cache' => '{"error":false,"server_online":true,"server_version":"v1.2","licence_status":"","expiration_date":"","consumed":0,"max_users":0}'
'extension_licence_cache_at' => '1788805788'
'extension_token_all_auth_types' => '0'
'favicon' => 'https:////favicon.ico'
'files_with_defuse' => 'done'
'ga_reset_by_user' => ''
'ga_website_name' => 'TeamPass for ChangeMe'
'get_tp_info' => '1'
'google_authentication' => '0'
'health_logs_mode' => 'auto'
'health_php_fpm_log_path' => ''
'health_teampass_log_path' => ''
'health_webserver_access_log_path' => ''
'health_webserver_log_path' => ''
'hibp_check_interval_days' => '7'
'hibp_enabled' => '0'
'highlight_favorites' => '0'
'highlight_selected' => '1'
'inactive_users_mgmt_action' => 'disable'
'inactive_users_mgmt_enabled' => '0'
'inactive_users_mgmt_grace_days' => '7'
'inactive_users_mgmt_inactivity_days' => '90'
'inactive_users_mgmt_last_details' => ''
'inactive_users_mgmt_last_message' => ''
'inactive_users_mgmt_last_run_at' => '0'
'inactive_users_mgmt_last_status' => ''
'inactive_users_mgmt_next_run_at' => '0'
'inactive_users_mgmt_time' => '02:00'
'insert_manual_entry_item_history' => '0'
'item_creation_templates' => '0'
'item_duplicate_in_same_folder' => '1'
'item_extra_fields' => '0'
'items_ops_job_frequency' => '1'
'items_statistics_job_frequency' => '5'
'lapr_alert_email_enabled' => '0'
'lapr_alert_email_recipient' => ''
'lapr_allow_self_management' => '0'
'lapr_allowlist' => ''
'lapr_allowlist_enabled' => '0'
'lapr_audit_retention_days' => '365'
'lapr_enabled' => '0'
'lapr_endpoint_check_interval_minutes' => '1440'
'lapr_endpoint_checks_enabled' => '0'
'lapr_max_retries' => '3'
'lapr_rate_limit_block_seconds' => '300'
'lapr_rate_limit_max_attempts' => '5'
'lapr_rate_limit_window_seconds' => '60'
'lapr_retry_delay_minutes' => '60'
'lapr_scheduler_enabled' => '0'
'lapr_scheduler_interval_minutes' => '5'
'lapr_scheduler_next_run_at' => '0'
'lapr_ssh_connect_timeout' => '10'
'last_cron_exec' => '1788806401'
'ldap_allowed_login_group_dn' => ''
'ldap_allowed_login_group_mode' => 'group'
'ldap_and_local_authentication' => '1'
'ldap_bdn' => 'DELETED'
'ldap_dn_additional_user_dn' => 'DELETED'
'ldap_group_guid_byteorder_fixed' => '1'
'ldap_group_object_filter' => ''
'ldap_group_objectclasses_attibute' => 'top,group'
'ldap_guid_attibute' => 'cn'
'ldap_hosts' => ''
'ldap_mode' => '1'
'ldap_new_user_is_administrated_by' => '0'
'ldap_password' => ''
'ldap_port' => '389'
'ldap_ssl' => '0'
'ldap_tls' => '0'
'ldap_tls_certificate_check' => 'LDAP_OPT_X_TLS_NEVER'
'ldap_type' => 'ActiveDirectory'
'ldap_user_attribute' => 'samaccountname'
'ldap_user_dn_attribute' => 'distinguishedname'
'ldap_user_object_filter' => ''
'ldap_username' => 'DELETED'
'leaver_risk_auto_flag' => '0'
'leaver_risk_enabled' => '0'
'limited_search_default' => '0'
'log_accessed' => '1'
'log_connections' => '1'
'maintenance_mode' => '0'
'manager_edit' => '1'
'manager_move_item' => '1'
'max_latest_items' => '10'
'maximum_number_of_items_to_treat' => '100'
'maximum_session_expiration_time' => '60'
'mfa_for_roles' => ''
'micro_learning_enabled' => '1'
'migration_to_2127' => 'done'
'nb_bad_authentication' => '0'
'nb_bad_authentication_by_ip' => '30'
'nb_items_by_query' => 'auto'
'network_blacklist_enabled' => '0'
'network_security_header' => 'x-forwarded-for'
'network_security_mode' => 'direct'
'network_trusted_proxies' => ''
'network_whitelist_enabled' => '0'
'notification_center_enabled' => '1'
'number_of_used_pw' => '3'
'number_users_build_cache_tree' => '10'
'oauth2_api_enabled' => '0'
'oauth2_client_appname' => 'Login with Azure'
'oauth2_client_endpoint' => ''
'oauth2_client_id' => ''
'oauth2_client_scopes' => 'openid,profile,email,User.Read,Group.Read.All'
'oauth2_client_secret' => ''
'oauth2_client_token' => ''
'oauth2_client_urlResourceOwnerDetails' => ''
'oauth2_enabled' => '0'
'oauth2_tenant_id' => ''
'oauth_new_user_is_administrated_by' => '0'
'oauth_self_register_groups' => ''
'oauth_selfregistered_user_belongs_to_role' => '0'
'offline_key_level' => '0'
'offline_sync_window_days' => '90'
'onthefly-backup-comment' => '30.06.2026'
'onthefly-backup-key' => ''
'onthefly-restore-key' => ''
'otv_expiration_period' => '7'
'otv_is_enabled' => '0'
'password_overview_delay' => '10'
'path_to_files_folder' => '/var/www/html/teampass/storage/files'
'path_to_upload_folder' => '/var/www/html/teampass/storage/upload'
'personal_saltkey_cookie_duration' => '31'
'personal_saltkey_security_level' => '50'
'personal_sharekeys_remediated' => '1'
'phpseclib_migration_mode' => 'progressive'
'phpseclibv3_native' => '1'
'proxy_ip' => ''
'proxy_port' => ''
'purge_temporary_files_task' => ''
'pw_life_duration' => '0'
'pwd_default_length' => '14'
'pwd_maximum_length' => '40'
'rebuild_config_file' => ''
'redis_host' => '127.0.0.1'
'redis_port' => '6379'
'redis_prefix' => 'teampass_sess_'
'redis_session_enabled' => '1'
'reload_cache_table_task' => ''
'restricted_to' => '0'
'restricted_to_roles' => '0'
'richtext' => '0'
'roles_allowed_to_print' => '0'
'roles_allowed_to_print_select' => '[15]'
'rotation_tracking_enabled' => '0'
'saltkey_ante_2127' => 'none'
'secure_display_image' => '1'
'secure_send_allow_notes' => '0'
'secure_send_max_views' => '5'
'secure_send_require_passphrase' => '0'
'security_dashboard_enabled' => '0'
'security_dashboard_overshared_threshold' => '10'
'security_nudges_email_enabled' => '0'
'security_nudges_email_frequency_days' => '7'
'security_nudges_enabled' => '1'
'security_nudges_stale_scan_days' => '14'
'send_mail_on_user_login' => '0'
'send_statistics_items' => 'stat_country;stat_users;stat_items;stat_items_shared;stat_folders;stat_folders_shared;stat_admins;stat_managers;stat_ro;stat_mysqlversion;stat_phpversion;stat_teampassversion;stat_languages;stat_kb;stat_suggestion;stat_customfields;stat_api;stat_2fa;stat_agses;stat_duo;stat_ldap;stat_syslog;stat_stricthttps;stat_fav;stat_pf;'
'send_stats' => '0'
'send_stats_time' => '1771420549'
'sending_emails_job_frequency' => '2'
'settings_offline_mode' => '0'
'settings_tree_counters' => '0'
'show_corrupted_items_in_list' => '1'
'show_description' => '1'
'show_item_data' => '1'
'show_last_items' => '1'
'show_online_users_list' => '1'
'show_only_accessible_folders' => '1'
'subfolder_rights_as_parent' => '0'
'syslog_enable' => '0'
'syslog_host' => ''
'syslog_port' => '514'
'task_duration_estimation' => '22'
'task_maximum_run_time' => '300'
'tasks_history_delay' => '604800'
'tasks_log_retention_delay' => '30'
'tasks_manager_refreshing_period' => '20'
'tasks_max_drain_time' => '55'
'teampass_latest_release_cache' => '{"error":false,"has_update":true,"current_version":"3.2.1.5","latest_version":"3.2.2.3","release_url":"https://github.com/nilsteampassnet/TeamPass/releases/tag/3.2.2.3"}'
'teampass_latest_release_cache_at' => '1788783058'
'teampass_version' => '3.2.2'
'time_format' => 'H:i:s'
'timezone' => 'Europe/Riga'
'tp-ops-period' => '7d'
'transparent_key_recovery_enabled' => '1'
'transparent_key_recovery_integrity_check' => '1'
'transparent_key_recovery_max_age_days' => '730'
'transparent_key_recovery_pbkdf2_iterations' => '100000'
'tree_counters' => '1'
'upgrade_timestamp' => '1788784390'
'upload_all_extensions_file' => '0'
'upload_docext' => 'doc,docx,dotx,xls,xlsx,xltx,rtf,csv,txt,pdf,ppt,pptx,pot,dotx,xltx'
'upload_imageresize_height' => '600'
'upload_imageresize_options' => '1'
'upload_imageresize_quality' => '90'
'upload_imageresize_width' => '800'
'upload_imagesext' => 'jpg,jpeg,gif,png'
'upload_maxfilesize' => '10mb'
'upload_otherext' => 'sql,xml'
'upload_pkgext' => '7z,rar,tar,zip'
'upload_zero_byte_file' => '0'
'url_to_files_folder' => 'https:///storage/files'
'use_md5_password_as_salt' => '0'
'user_keys_job_frequency' => '1'
'users_personal_folder_task' => ''
'utf8_enabled' => '1'
'websocket_enabled' => '1'
'websocket_host' => '127.0.0.1'
'websocket_port' => '8080'

Web server / PHP error log

Nothing in logs

Browser console and network tab

Nothing in logs

Anything else?

Before scanning the file storage/logs/teampass_background_tasks.lock not exist.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions