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

Saving doc "Access is denied" #552

Closed
eslam-gomaa opened this issue May 27, 2021 · 7 comments
Closed

Saving doc "Access is denied" #552

eslam-gomaa opened this issue May 27, 2021 · 7 comments
Assignees

Comments

@eslam-gomaa
Copy link

I think there is a bug with saving, the same issue, related to this issue

  • added some data
  • when I re opened the page didn't find them

Recommendations:

  • (For testing) add a saving notification so that when page is saved, it shows a confirmation
    • In case of an error, print the error

logs
image

and

image

@88250
Copy link
Member

88250 commented May 27, 2021

Could you give me more details for "Access is denied."?

@88250 88250 changed the title Urgent: I think there is a bug with saving Saving doc "Access is denied" May 27, 2021
@eslam-gomaa
Copy link
Author

@88250
Here you go a full logs sample

/ ___|  (_) \ \ / /  _   _    __ _   _ __
 \___ \  | |  \ V /  | | | |  / _` | | '_ \
  ___) | | |   | |   | |_| | | (_| | | | | |
 |____/  |_|   |_|    \__,_|  \__,_| |_| |_|

I 2021/05/27 12:32:09 working.go:98: kernel is booting:
    * ver [1.2.0]
    * runtime mode [prod]
    * workspace directory [D:\Sync\PCloud_Sync\siyuan]
    * working directory [C:\Users\eslam\AppData\Local\Programs\SiYuan\resources]
    * temp directory [C:\Users\eslam\AppData\Local\Temp\siyuan]
    * system temp directory [C:\windows\Temp\siyuan]
    * rsync directory [C:\Users\eslam\AppData\Local\Programs\SiYuan\resources\rsync]
    * read only [false]
    * container [std]
    * resident [true]
    * arch [amd64]
I 2021/05/27 12:32:09 conf.go:199: local serve path [http://192.168.1.4:6806]
I 2021/05/27 12:32:09 database.go:91: reinitialized database [C:\Users\eslam\AppData\Local\Temp\siyuan\siyuan.db]
I 2021/05/27 12:32:09 serve.go:50: kernel HTTP server is booting [http://0.0.0.0:6806]
I 2021/05/27 12:32:12 box.go:447: rebuilding database of box [siyuan-Eslam]
I 2021/05/27 12:32:18 working.go:123: kernel booted
E 2021/05/27 13:20:17 transaction.go:164: not found block [id=20210527132017-s66xsqm]
E 2021/05/27 13:20:17 transaction.go:100: not found previous block [id=20210527132017-s66xsqm]
E 2021/05/27 13:20:17 transaction.go:164: not found block [id=20210527132017-eq8w7i0]
E 2021/05/27 13:20:17 transaction.go:100: not found previous block [id=20210527132017-eq8w7i0]
E 2021/05/27 13:20:17 transaction.go:164: not found block [id=20210527132017-5c7uc0b]
E 2021/05/27 13:20:17 transaction.go:100: not found previous block [id=20210527132017-5c7uc0b]
E 2021/05/27 13:20:17 transaction.go:164: not found block [id=20210527132017-w5iiqil]
E 2021/05/27 13:20:17 transaction.go:100: not found previous block [id=20210527132017-w5iiqil]
E 2021/05/27 13:20:18 box.go:202: put data [path=/Eslam/Linux 🐧/KB/OSI model layers.sy, length=18123] to box [url=http://127.0.0.1:6806/siyuan/siyuan/siyuan-Eslam/] failed: rename D:\Sync\PCloud_Sync\siyuan\data\siyuan-Eslam\Eslam\Linux 🐧\KB\OSI model layers.sy813412721 D:\Sync\PCloud_Sync\siyuan\data\siyuan-Eslam\Eslam\Linux 🐧\KB\OSI model layers.sy: Access is denied.
E 2021/05/27 13:20:18 box.go:202: put data [path=/Eslam/Linux 🐧/KB/OSI model layers.sy, length=18250] to box [url=http://127.0.0.1:6806/siyuan/siyuan/siyuan-Eslam/] failed: rename D:\Sync\PCloud_Sync\siyuan\data\siyuan-Eslam\Eslam\Linux 🐧\KB\OSI model layers.sy706969628 D:\Sync\PCloud_Sync\siyuan\data\siyuan-Eslam\Eslam\Linux 🐧\KB\OSI model layers.sy: Access is denied.
E 2021/05/27 13:20:22 transaction.go:100: not found previous block [id=20210527132021-ee6sj7p]
E 2021/05/27 13:20:22 transaction.go:100: not found previous block [id=20210527132022-bp3uvps]
E 2021/05/27 13:20:22 transaction.go:62: not found block [id=20210527132022-6vwu0tn]
E 2021/05/27 13:20:22 transaction.go:100: not found previous block [id=20210527132021-ee6sj7p]
E 2021/05/27 13:20:22 transaction.go:164: not found block [id=20210527132017-w5iiqil]
E 2021/05/27 13:20:25 transaction.go:164: not found block [id=20210527132021-ee6sj7p]
E 2021/05/27 13:20:25 transaction.go:100: not found previous block [id=20210527132021-ee6sj7p]
E 2021/05/27 13:20:25 transaction.go:164: not found block [id=20210527132025-m3yiumw]
E 2021/05/27 13:20:25 transaction.go:100: not found previous block [id=20210527132025-m3yiumw]
E 2021/05/27 13:20:25 transaction.go:100: not found previous block [id=20210527132025-y9flnuu]
E 2021/05/27 13:20:25 transaction.go:62: not found block [id=20210527132025-y9flnuu]
E 2021/05/27 13:20:30 transaction.go:164: not found block [id=20210527132021-ee6sj7p]
E 2021/05/27 13:20:49 transaction.go:164: not found block [id=20210527132022-bp3uvps]
E 2021/05/27 13:20:51 transaction.go:164: not found block [id=20210527132022-bp3uvps]

@88250 88250 self-assigned this May 27, 2021
@88250
Copy link
Member

88250 commented May 27, 2021

I can't reproduce it, do you still using ownCloud (#370 (comment))?

Please close it and try again, because I find the doc of ownCloud, I am not sure it if affects this.

@eslam-gomaa
Copy link
Author

Ok, will disable owncloud and try

but, I've been using owncloud since the markdown version of Siyuan note and didn't face this problem 🤔

@eslam-gomaa
Copy link
Author

eslam-gomaa commented May 27, 2021

Hello @88250
Thanks a lot for your support, the issue is because owncloud locks the file before upload, looking for a solution

@88250
Copy link
Member

88250 commented May 28, 2021

We will add retry save to reduce the possibility of failure of this issue, but I think the best solution is to use no-locking software for sync data, thanks.

@88250 88250 closed this as completed May 28, 2021
88250 added a commit to 88250/gulu that referenced this issue May 28, 2021
@eslam-gomaa
Copy link
Author

Thanks

88250 added a commit to 88250/gulu that referenced this issue Jun 25, 2021
88250 added a commit to 88250/gulu that referenced this issue Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants