Lệnh kiểm tra (kết quả thật)
Chạy trên máy chủ 8.8.0 đang vận hành bản sao đã nâng cấp (hpc-snipeit-880-upgraded). Chỉ dùng các lệnh chỉ đọc. Tạo lúc 12/10/2026 07:34.
php -m
Kiểm tra phần mở rộng PHP. Cần có: curl, fileinfo, json, mbstring, pdo, exif, iconv, ldap, gd, sodium, zip, bcmath.
Đủ 12/12 phần mở rộng bắt buộc.
Toàn bộ phần mở rộng đang bật (54)
bcmath calendar core ctype curl date dom exif ffi fileinfo filter ftp gd gettext hash iconv igbinary json ldap libxml mbstring memcached msgpack mysqli mysqlnd openssl pcntl pcre pdo pdo_mysql phar posix random readline redis reflection session shmop simplexml sockets sodium spl standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl zend opcache zip zlib
php artisan migrate:status
Kiểm tra không còn bước cập nhật CSDL ở trạng thái chờ. Hiển thị 8 dòng cuối.
488 bước Ran, 0 bước Pending.
2026_08_21_010000_add_state_machine_to_checkout_requests ........... [2] Ran 2026_08_21_030000_add_fulfilled_quantity_to_checkout_requests ...... [2] Ran 2026_08_24_010000_backfill_created_by_on_request_action_logs ....... [2] Ran 2026_08_24_234955_clean_stale_pending_acceptances .................. [2] Ran 2026_09_16_183827_create_sync_adapter_tables ....................... [2] Ran 2026_09_21_140000_backfill_accessory_checkout_action_log_quantity .. [2] Ran 2026_09_21_174908_add_action_type_created_at_composite_index_to_action_logs [2] Ran 2026_09_22_201800_add_deleted_at_created_at_composite_index_to_assets [2] Ran
php artisan snipeit:validate-assets
Kiểm tra dữ liệu tài sản (chỉ đọc).
Run this command with the --all option to see the full list in the console. +----+-------------+----------+--------------+-------------------+-----+ | ID | Thẻ tài sản | Số Sê-ri | Kiểu tài sản | Cấu hình chi tiết | Lỗi | +----+-------------+----------+--------------+-------------------+-----+
php artisan snipeit:check-orphan-uploads --summary
Kiểm tra tệp đính kèm CSDL tham chiếu nhưng không còn trên đĩa (chỉ đọc).
Scanning model image + avatar columns... accessories.image: 8 references, 8 missing. models.image: 6 references, 6 missing. locations.image: 3 references, 3 missing. manufacturers.image: 8 references, 8 missing. users.avatar: 18 references, 18 missing. Scanning settings logos... settings logos: 5 columns checked, 0 missing. Scanning action_logs.filename... action_logs.filename: 0 references, 0 missing. Scanning imports.file_path... imports.file_path: 0 references, 0 missing. ┌───────────────┬────────┬─────────┬──────────────────────────────────────────────┐ │ Table │ Type │ Missing │ Row IDs │ ├───────────────┼────────┼─────────┼──────────────────────────────────────────────┤ │ accessories │ image │ 8 │ 1, 2, 3, 4, 5, 6, 7, 8 │ │ locations │ image │ 3 │ 1, 2, 3 │ │ manufacturers │ image │ 8 │ 1, 2, 3, 4, 5, 6, 7, 8 │ │ models │ image │ 6 │ 1, 2, 3, 4, 5, 6 │ │ users │ avatar │ 18 │ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... (8 more) │ │ TOTAL │ │ 43 │ │ └───────────────┴────────┴─────────┴──────────────────────────────────────────────┘
php artisan snipeit:orphan-action-logs
Liệt kê dòng lịch sử mất đối tượng gốc (mặc định chỉ liệt kê).
Scanning 127 action_log rows... [?25l ⠶ Reading distinct item_type values... [999D[1A[J[?25h[?25l ⠶ Counting orphans for item_type=App\Models\Accessory... [999D[2A[J[?25h[?25l ⠶ Counting orphans for item_type=App\Models\Asset... [999D[2A[J[?25h[?25l ⠶ Counting orphans for item_type=App\Models\Component... [999D[2A[J[?25h[?25l ⠶ Counting orphans for item_type=App\Models\Consumable... [999D[2A[J[?25h[?25l ⠶ Counting orphans for item_type=App\Models\License... [999D[2A[J[?25h[?25l ⠶ Counting orphans for item_type=App\Models\User... [999D[2A[J[?25h[?25l ⠶ Reading distinct target_type values... [999D[2A[J[?25h[?25l ⠶ Counting orphans for target_type=App\Models\Asset... [999D[2A[J[?25h[?25l ⠶ Counting orphans for target_type=App\Models\User... [999D[2A[J[?25h No orphaned, unresolvable, or malformed action_logs found. Table is clean.
php artisan ldap:troubleshoot --force
Chẩn đoán kết nối LDAP (không phá hủy).
PHP Version: 8.3.6 WARNING - Versions before 8.3.21 or 8.4.7 will return INCONSISTENT results! STAGE 1: Checking settings WARNING: Snipe-IT's LDAP setting is not turned on. (That may be OK if you're still trying to figure out settings) WARNING: LDAP URL Scheme of '' is probably incorrect; should usually be ldap or ldaps ERROR: Cannot determine hostname or IP from ldap URL: . ABORTING.
php artisan schedule:list
Tác vụ định kỳ của ứng dụng.
0 0 * * * php artisan snipeit:inventory-alerts .... Next Due: 16 giờ tới 0 0 * * * php artisan snipeit:expiring-alerts ..... Next Due: 16 giờ tới 0 0 * * * php artisan snipeit:expected-checkin .... Next Due: 16 giờ tới 0 0 * * * php artisan snipeit:upcoming-audits ..... Next Due: 16 giờ tới 0 0 * * 0 php artisan snipeit:backup .............. Next Due: 5 ngày tới 0 0 * * * php artisan backup:clean ................ Next Due: 16 giờ tới */15 * * * * php artisan auth:clear-resets .......... Next Due: 10 phút tới 0 0 * * 0 php artisan saml:clear_expired_nonces ... Next Due: 5 ngày tới 0 0 * * * php artisan snipeit:pull-inventory ...... Next Due: 16 giờ tới 0 3 * * * php artisan snipeit:push-inventory ...... Next Due: 19 giờ tới