View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004332 | Kali Linux | Kali Package Bug | public | 2017-11-02 16:41 | 2017-11-17 09:20 |
Reporter | dookie | Assigned To | rhertzog | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2017.3 | ||||
Summary | 0004332: msfdb init Fails in Live Boot Mode | ||||
Description | In live boot mode, msfdb init (and msfdb reinit) fail with the following: root@kali:~# systemctl start postgresql | ||||
And the PostgreSQL log says this: This really smells like a regression in the kernel, possibly in the overlayfs module. I don't think that the version of Metasploit has anything to do. The fact that it only happens in live mode tends to confirm that it's likely related to the use of overlayfs. |
|
I have sent a report to upstream developers of overlayfs: I got a query for more data: And I responded with the required data: |
|
In fact, this seems to be caused by the switch to PostgreSQL 10. The database server tries to fsync() a "pg_commit_ts" directory that has not been modified since the initial installation and this fails because overlayfs delegates the fsync() to the squashfs read-only filesystem that does not have this operation. I reported this to PostgreSQL developers: |
|
Now that the problem is understood I have added a work-around in kali-defaults 2017.3.2 where we touch a file in /var/lib/postgresql/10/main/pg_commit_ts/ and immediately drop it before starting postgresql. |
|
We have a fix in the kernel as well. So this issue can be closed. I dropped the work-around in git. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-11-02 16:41 | dookie | New Issue | |
2017-11-03 13:37 | rhertzog | Note Added: 0007575 | |
2017-11-03 13:37 | rhertzog | Assigned To | => rhertzog |
2017-11-03 13:37 | rhertzog | Status | new => assigned |
2017-11-07 10:20 | rhertzog | Note Added: 0007584 | |
2017-11-07 13:59 | rhertzog | Note Added: 0007586 | |
2017-11-07 14:28 | rhertzog | Note Added: 0007587 | |
2017-11-17 09:20 | rhertzog | Status | assigned => resolved |
2017-11-17 09:20 | rhertzog | Resolution | open => fixed |
2017-11-17 09:20 | rhertzog | Note Added: 0007608 |