[Magisk] nyuszika7h:
Nexus 5X running stock Android 7.1.2 (June 2017). Flashed the uninstaller then the latest Magisk beta, then the APK from the previous beta. SafetyNet passes, but if I try to install any modules, on next reboot they don't show up or work but SafetyNet fails, and I can't install any modules because it says "Installation failed".

EDIT: Rebooting the device another time solved the issue.

Here's the log:

--------- beginning of main
D( 340: 340) client: connect fail, try launching new daemon process
D( 341: 342) sepol: Starting large patch thread
I( 341: 341) Magisk v13.0(a90e8b6) daemon started
I( 341: 343) ** post-fs mode running
--------- beginning of system
D( 341: 342) sepol: Large patch done
I( 341: 3735) ** post-fs-data mode running
D( 341: 3735) magisk_img: e2fsck 1.42.9 (28-Dec-2013)
D( 341: 3735) magisk_img: Pass 1: Checking inodes, blocks, and sizes
D( 341: 3735) magisk_img: Pass 2: Checking directory structure
D( 341: 3735) magisk_img: Pass 3: Checking directory connectivity
D( 341: 3735) magisk_img: Pass 4: Checking reference counts
D( 341: 3735) magisk_img: Pass 5: Checking group summary information
D( 341: 3735) magisk_img: /data/magisk_merge.img: 49/4096 files (0.0% non-contiguous), 3783/16384 blocks
D( 341: 3735) magisk_img: e2fsck 1.42.9 (28-Dec-2013)
D( 341: 3735) magisk_img: /data/magisk.img: recovering journal
D( 341: 3735) magisk_img: Pass 1: Checking inodes, blocks, and sizes
D( 341: 3735) magisk_img: Pass 2: Checking directory structure
D( 341: 3735) magisk_img: Pass 3: Checking directory connectivity
D( 341: 3735) magisk_img: Pass 4: Checking reference counts
D( 341: 3735) magisk_img: Pass 5: Checking group summary information
D( 341: 3735) magisk_img: Free blocks count wrong (15086, counted=15075).
D( 341: 3735) magisk_img: Fix? yes
D( 341: 3735) magisk_img:
D( 341: 3735) magisk_img: Free inodes count wrong (4081, counted=4065).
D( 341: 3735) magisk_img: Fix? yes
D( 341: 3735) magisk_img:
D( 341: 3735) magisk_img:
D( 341: 3735) magisk_img: /data/magisk.img: ***** FILE SYSTEM WAS MODIFIED *****
D( 341: 3735) magisk_img: /data/magisk.img: 31/4096 files (0.0% non-contiguous), 1309/16384 blocks
E( 341: 3735) Image merge /data/magisk_merge.img -> /data/magisk.img failed!
I( 341: 3902) ** late_start service mode running
I( 341: 3902) * Running service.d scripts
I( 341: 3902) * Running module service scripts
D( 341: 9050) su: request from client: 10
D( 341: 9050) su: request from uid=[10234] (#1)
D( 341: 9052) su: collector started
D( 9053: 9053) su: child process started
D( 341: 9050) su: wait_result waiting for 9053
D( 9053: 9053) su: use namespace of pid=[9046]
D( 9053: 9053) su: argc=[2]
D( 9053: 9053) su: argv[0]=[su]
D( 9053: 9053) su: argv[1]=[-v]
D( 9053: 9053) su: cwd=[/]
D( 9053: 9053) su: pts_slave=[]
D( 341: 9050) su: return code to client: 0
D( 341: 9061) su: request from client: 8
D( 341: 9061) su: request from uid=[10234] (#1)
D( 341: 9061) su: wait_result waiting for 9062
D( 9062: 9062) su: child process started
D( 9062: 9062) su: use namespace of pid=[9056]
D( 9062: 9062) su: argc=[1]
D( 9062: 9062) su: argv[0]=[su]
D( 9062: 9062) su: cwd=[/]
D( 9062: 9062) su: pts_slave=[]
D( 341: 9190) su: request from client: 9
D( 341: 9190) su: request from uid=[10104] (#1)
D( 341: 9196) su: request from client: 10
D( 341: 9196) su: request from uid=[10104] (#2)
D( 341: 9190) su_db: query policy=[2]
D( 341: 9196) su: wait_result waiting for 9199
D( 341: 9190) su: wait_result waiting for 9198
D( 9198: 9198) su: child process started
D( 9198: 9198) su: use namespace of pid=[9144]
D( 9198: 9198) su: argc=[1]
D( 9198: 9198) su: argv[0]=[su]
D( 9198: 9198) su: cwd=[/]
D( 9198: 9198) su: pts_slave=[]
D( 9199: 9199) su: child process started
D( 9199: 9199) su: use namespace of pid=[9152]
D( 9199: 9199) su: argc=[1]
D( 9199: 9199) su: argv[0]=[su]
D( 9199: 9199) su: cwd=[/]
D( 9199: 9199) su: pts_slave=[]
D( 341: 9196) su: return code to client: 0
D( 341: 9240) su: request from client: 13
D( 341: 9240) su: request from uid=[10104] (#2)
D( 341: 9240) su: wait_result waiting for 9241
D( 9241: 9241) su: child process started
D( 9241: 9241) su: use namespace of pid=[9232]
D( 9241: 9241) su: argc=[1]
D( 9241: 9241) su: argv[0]=[su]
D( 9241: 9241) su: cwd=[/]
D( 9241: 9241) su: pts_slave=[]
D( 341: 9343) su: request from client: 10
D( 341: 9343) su: request from uid=[10098] (#1)
D( 341: 9343) su_db: query policy=[2]
D( 341: 9343) su: wait_result waiting for 9344
D( 9344: 9344) su: child process started
D( 9344: 9344) su: use namespace of pid=[9312]
D( 9344: 9344) su: argc=[1]
D( 9344: 9344) su: argv[0]=[su]
D( 9344: 9344) su: cwd=[/]
D( 9344: 9344) su: pts_slave=[]
D( 341: 9358) su: request from client: 11
D( 341: 9358) su: request from uid=[10098] (#2)
D( 341: 9358) su: wait_result waiting for 9360
D( 9360: 9360) su: child process started
D( 9360: 9360) su: use namespace of pid=[9326]
D( 9360: 9360) su: argc=[1]
D( 9360: 9360) su: argv[0]=[su]
D( 9360: 9360) su: cwd=[/]
D( 9360: 9360) su: pts_slave=[]
D( 341:13105) su: request from client: 12
D( 341:13105) su: request from uid=[10102] (#1)
D( 341:13105) su_db: query policy=[2]
D(13107:13107) su: child process started
D( 341:13105) su: wait_result waiting for 13107
D(13107:13107) su: use namespace of pid=[13084]
D(13107:13107) su: argc=[1]
D(13107:13107) su: argv[0]=[su]
D(13107:13107) su: cwd=[/]
D(13107:13107) su: pts_slave=[]
D( 341:13105) su: return code to client: 0
D( 341:14790) su: request from client: 14
D( 341:14790) su: request from uid=[10234] (#1)
D( 341:14790) su: wait_result waiting for 14791
D(14791:14791) su: child process started
D(14791:14791) su: use namespace of pid=[14761]
D(14791:14791) su: argc=[2]
D(14791:14791) su: argv[0]=[su]
D(14791:14791) su: argv[1]=[-v]
D(14791:14791) su: cwd=[/]
D(14791:14791) su: pts_slave=[]
D( 341:14790) su: return code to client: 0