Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does the sqlite file I just downloaded fail to upload back. #5294

Open
3 tasks done
collie2nd opened this issue Jun 26, 2023 · 1 comment
Open
3 tasks done

Why does the sqlite file I just downloaded fail to upload back. #5294

collie2nd opened this issue Jun 26, 2023 · 1 comment

Comments

@collie2nd
Copy link

collie2nd commented Jun 26, 2023

Checklist

  • I verified that Kanboard is correctly installed
  • I verified that the problem does not come from a plugin
  • I verified that the problem is not already reported

Actual behaviour

The latest installed Kanboard system does not have any plugins installed. It only downloads the database and sends it back. Don‘t have any more operations.’

image

Configuration

  • Application version: v1.2.30
  • PHP version: 8.2.6
  • PHP SAPI: fpm-fcgi
  • HTTP Client: cURL
  • OS version: Linux 3.10.0-1160.88.1.el7.x86_64
  • Database driver: sqlite
  • Database version: 3.41.2
  • Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
@collie2nd collie2nd added the bug label Jun 26, 2023
@fguillot
Copy link
Member

Looks like a permission issue when uploading files on your server.

For reference:

if (!file_exists($filename) || !$this->configModel->uploadDatabase($filename)) {
$this->flash->failure(t('Unable to read uploaded file.'));

And

public function uploadDatabase($file)
{
$this->db->closeConnection();
return file_put_contents(DB_FILENAME, gzdecode(file_get_contents($file))) !== false;
}

You could add some debug information around these lines to narrow down the problem on your side.

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

No branches or pull requests

2 participants