Giter VIP home page Giter VIP logo

Comments (25)

scubamuc avatar scubamuc commented on July 17, 2024 1

@Benjamin-Watson0,

sorry mate... I have no Idea what's happening there.

I've requested assistance from devs. Lets wait and see if someone has an idea?

from nextcloud-snap.

kyrofa avatar kyrofa commented on July 17, 2024 1

I can access the mounted folder in all files or personal files, but when I click on the mounted folder in external storage, it will give an error.

Hmm, this sounds like it's working when accessing it a certain way, and not working when accessing it other ways? If you can access it sometimes, I don't think confinement is your problem, and it doesn't sound like a permissions issue either. Is there anything interesting in your Nextcloud log? This might need to be logged upstream.

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024 1

Your words reminded me, I tried the link s3 and found out that it was the same situation.S3 also cannot be accessed in external storage.
I recently tweaked the php settings and I remember that S3 seemed to work fine before.

sudo snap set nextcloud php.upload-max-filesize=16G
sudo snap set nextcloud php.post-max-size=16G
sudo snap set nextcloud php.max-input-time=3600
sudo snap set nextcloud php.max-execution-time=3600
sudo snap set nextcloud php.memory-limit=2048M

I looked at the logs

Original entry

php

{"reqId":"LWfm8NbtfkGe7g6uVtjl","level":3,"time":"2024-06-25T02:53:56+00:00","remoteAddr":"183.198.20.138","user":"wnenw","app":"PHP","method":"PUT","url":"/index.php/apps/files_external/globalstorages/5","message":"Undefined array key \"key\" at /snap/nextcloud/42890/htdocs/apps/files_external/lib/Lib/Storage/AmazonS3.php#83","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"29.0.2.2","data":{"app":"PHP"},"id":"667a3219ebbea"}

files_external

{"reqId":"LWfm8NbtfkGe7g6uVtjl","level":3,"time":"2024-06-25T02:54:02+00:00","remoteAddr":"183.198.20.138","user":"wnenw","app":"files_external","method":"PUT","url":"/index.php/apps/files_external/globalstorages/5","message":"Error retrieving credentials from the instance profile metadata service. (cURL error 28: Connection timed out after 1000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://169.254.169.254/latest/meta-data/iam/security-credentials/)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"29.0.2.2","exception":{"Exception":"Aws\\Exception\\CredentialsException","Message":"Error retrieving credentials from the instance profile metadata service. (cURL error 28: Connection timed out after 1000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://169.254.169.254/latest/meta-data/iam/security-credentials/)","Code":0,"Trace":[{"file":"/snap/nextcloud/42890/htdocs/3rdparty/aws/aws-sdk-php/src/Credentials/InstanceProfileProvider.php","line":136,"function":"handleRetryableException","class":"Aws\\Credentials\\InstanceProfileProvider","type":"->"},{"function":"Aws\\Credentials\\{closure}","class":"Aws\\Credentials\\InstanceProfileProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Coroutine.php","line":160,"function":"throw","class":"Generator","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":204,"function":"_handleFailure","class":"GuzzleHttp\\Promise\\Coroutine","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":153,"function":"callHandler","class":"GuzzleHttp\\Promise\\Promise","type":"::"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php","line":163,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php","line":189,"function":"tick","class":"GuzzleHttp\\Handler\\CurlMultiHandler","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"execute","class":"GuzzleHttp\\Handler\\CurlMultiHandler","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Coroutine.php","line":67,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Coroutine","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Coroutine.php","line":103,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":274,"function":"wait","class":"GuzzleHttp\\Promise\\Coroutine","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/aws/aws-sdk-php/src/AwsClientTrait.php","line":58,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/aws/aws-sdk-php/src/S3/S3ClientTrait.php","line":363,"function":"execute","class":"Aws\\AwsClient","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/3rdparty/aws/aws-sdk-php/src/S3/S3ClientTrait.php","line":272,"function":"checkExistenceWithCommand","class":"Aws\\S3\\S3Client","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/lib/private/Files/ObjectStore/S3ConnectionTrait.php","line":152,"function":"doesBucketExist","class":"Aws\\S3\\S3Client","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/apps/files_external/lib/Lib/Storage/AmazonS3.php","line":647,"function":"getConnection","class":"OCA\\Files_External\\Lib\\Storage\\AmazonS3","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/apps/files_external/lib/MountConfig.php","line":131,"function":"test","class":"OCA\\Files_External\\Lib\\Storage\\AmazonS3","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/apps/files_external/lib/Controller/StoragesController.php","line":245,"function":"getBackendStatus","class":"OCA\\Files_External\\MountConfig","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/42890/htdocs/apps/files_external/lib/Controller/GlobalStoragesController.php","line":201,"function":"updateStorageStatus","class":"OCA\\Files_External\\Controller\\StoragesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/42890/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"update","class":"OCA\\Files_External\\Controller\\GlobalStoragesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/42890/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/snap/nextcloud/42890/htdocs/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/snap/nextcloud/42890/htdocs/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/snap/nextcloud/42890/htdocs/3rdparty/aws/aws-sdk-php/src/Credentials/InstanceProfileProvider.php","Line":264,"message":"Error retrieving credentials from the instance profile metadata service. (cURL error 28: Connection timed out after 1000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://169.254.169.254/latest/meta-data/iam/security-credentials/)","exception":[],"CustomMessage":"Error retrieving credentials from the instance profile metadata service. (cURL error 28: Connection timed out after 1000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://169.254.169.254/latest/meta-data/iam/security-credentials/)"},"id":"667a3219ebbdf"}

Format entry

[PHP] error: Undefined array key "key" at /snap/nextcloud/42890/htdocs/apps/files_external/lib/Lib/Storage/AmazonS3.php#83
	PUT /index.php/apps/files_external/globalstorages/5
	from  (my ip)  by (my user)  at 2024-06-25 10:53:56
[files_external] Error: Error retrieving credentials from the instance profile metadata service. (cURL error 28: Connection timed out after 1000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://169.254.169.254/latest/meta-data/iam/security-credentials/)
	PUT /index.php/apps/files_external/globalstorages/5
	from (my ip) by (my user) at 2024-06-25 10:54:02

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024 1

Thank you for your patience and companionship.🤗
@scubamuc @kyrofa

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

@Benjamin-Watson0 welcome back,

Removable media must be mounted to either /media or /mnt as root with root permissions and connected to Snap! see https://github.com/nextcloud-snap/nextcloud-snap/wiki/FAQ's#q-what-permissions-should-external-media-have

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

Similar question: #452
Error video:https://1drv.ms/v/s!AjUhMEyrls9_gbkJif7-PRZvvAD7pg?e=nKTNeW
image

I can access the mounted folder in all files or personal files, but when I click on the mounted folder in external storage, it will give an error.
It's the whole process.
Use the fdisk -l command to view the hard disks to be formatted and mounted, such as /dev/sdb, based on size and other information

fdisk /dev/sdb
Enter n to create a new partition
Resize or enter all the way
Finally, enter w to save the partition table
mkfs.ext4 /dev/sdb1, where /dev/sdb1 is the name of the newly created partition, this command formats the partition in EXT4 format
mkdir /mnt/newdisk, where /mnt/newdisk is the directory to be mounted, this command creates the newdisk directory in the /mnt directory as the root directory of the partition
mount /dev/sdb1 /mnt/newdisk, which mounts the /dev/sdb1 partition to the /mnt/newdisk location of the system

image

Set automatic mount at startup
Look at the UUID first
blkid
Copy the UUID of /dev/vdb1 and write it to /etc/fstab
echo "UUID=e943fbb7-020a-4c64-a48a-2597eb2496df /vdb1 ext4 defaults 0 0" >> /etc/fstab
image

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

@Benjamin-Watson0 are you asking support for OS or Nextcloud snap?

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

I don't know, I'm just trying to figure out why something went wrong. 😶

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

@Benjamin-Watson0 did you connect removable media?

sudo snap connect nextcloud:removable-media

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

Yes
image

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

select local:

grafik

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

Yes, I chose local.
This is Chinese, “本地” means local
image

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

you're green:

grafik

I don't speak or read Chinese yet 😉 will need courses 👌🤿 ... counting on you.

sorry, but if you've done all the necessary steps suggested in the wiki, then you'll have to do some research.

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

@Benjamin-Watson0

echo "UUID=e943fbb7-020a-4c64-a48a-2597eb2496df /vdb1 ext4 defaults 0 0" >> /etc/fstab

double check this... typo= /vdb1 instead of /sdb

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

Should it be /mnt/newdisk ?
echo "UUID=4dff22c2-4725-46e1-b3c5-52ee111baa8c /mnt/newdisk ext4 defaults 0 0" >> /etc/fstab root@instance-EHpY85Xj:~# blkid
/dev/sdb1: UUID="4dff22c2-4725-46e1-b3c5-52ee111baa8c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="84045502-01"
vim /etc/fstab
image
I still can't open the external storage. Please note that I can access and open the external storage folder in the All Files option.
Just clicking on the folder in the external storage option is a pop-up error message.

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

@Benjamin-Watson0,
I'm having a "deja vu" can you change language to English and post that error message...

grafik

see also your logfiles for "warning: core ACL external_files"

if you're getting that message in your logs, remove fulltextsearch app as "fulltextsearch" cannot access external_files which is an upstream issue.

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

I created a new user, the interface is in English, everything is fine, what's going on. 😶 I do everything.
Why can't the original super admin account access the external storage folder in the external storage option?

2024-06-24.194304.mp4

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

,我有一个“似曾相识”的感觉,你能把语言改成英语并发布该错误消息吗?

格拉菲克

另请参阅“警告:核心 ACL external_files"

如果您在日志中收到该消息,请删除应用程序,因为“全文搜索”无法访问,这是一个上游问题。fulltextsearch``external_files

image

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

@Benjamin-Watson0
wow, that looks a lot like an upstream language issue to me 👀

you could try and see if changing the new user's language to Chinese, from English, to see whether that issue can be confirmed. then you'd know that its a language issue that upstream should take a look at.

if changing the language confirms the issue please close this and take the time to create an issue upstream with the Nextcloud external_files team. that would be greatly appreciated.

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

@kyrofa, I can't see the forest for all the trees. can you assist please?

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

No, no, no, I created a new user for the Chinese language, and he can still access it. 😶

chinese.user.mp4

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

okay, so its just the "super" admin user who's getting the error message?

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

yes

from nextcloud-snap.

Benjamin-Watson0 avatar Benjamin-Watson0 commented on July 17, 2024

Honestly, the truth surprised me. When I switch the folder list from the detail directory to the large icon. The problem will happen
Yes, I found the truth.
@scubamuc

problem.mp4

from nextcloud-snap.

scubamuc avatar scubamuc commented on July 17, 2024

@Benjamin-Watson0 well done! "seek an ye shall find" 🤿👌:
grafik

I recently tweaked the php settings and I remember that S3 seemed to work fine before.

so we can agree, this is not a snap issue? please close here if you are d'accord.

from nextcloud-snap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.