-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Missing Avatar after upgrade from 8.2.3 to 9.0.0 #22978
Comments
Hey, I tried to update the mimetypes with the related occ commands. But this changed nothing. Btw. The owncloud logs do not say anything related to the background image. That's strange :-) |
Does updating the avatar help? (So setting it again?). |
I have the same issue and updating the avatar does not help. |
same here, I can't save a new avatar and the existing ones were broken. There's a NotPermittedException in the owncloud.log:
|
My avatar still worked after updating. I seem to have multiple in owncloud/data/vincent:
|
@PVince81 yes, because you have the avatar.$SIZE.jpg files. If you had only avatar.jpg, you'd run into the problem. I believe somewhere on the go, avatars were made to create and use files with size. Apparently, no miration of "old" avatars happened. |
@blizzz no there is no migration because they used to be created on the fly. They still are... but now we just store the result so the next requests takes the precreated one (if it is there). |
@PVince81 to double check... could your remove all of your avatar.*.jpg files? (so all but avatar.jpg) and see if they get recreated? (They do here). |
@rullzer on my dev system, if i remove the avatar it will be recreated. On the production system however, not. |
I also tried deleting the avatar.jpg and it did not regenerate files after choosing a new file. |
@rullzer I deleted all of them, then logged in again in the web UI. No avatar was generated. Then I reselected a jpg file directly from my OC and it generated those:
|
@blizzz @oxivanisher do you get a 404 or a different error code? (in the transfer console) |
@jmit79 that not permitted exception looks 🐟-y... Altough I have no clue where it comes from... |
nope, always 200 |
@rullzer with removed catches I get this three times on the personal page (3 sizes are requested)
|
Ok so it boils down to https://github.com/owncloud/core/blob/master/lib/private/files/node/file.php#L57 Which to me looks like invalid permissions in the oc_filecache table. @blizzz confirmed that they are 0. Now this only happens now since I switched over the avatar code to the Node API. @icewind1991 any idea how we can fix the broken entries? |
setting permissions to 27 did not make it work. Users with issues had two entries about the avatar in the filecache table. One tied to their own storage, one to the data-dir-storage. However, fixing permissions and removing the avatar entry belonging to the data-dir-storage did not make it work either. |
It should be 31 |
@icewind1991 setting them to 31 does not have any impact either. |
#23154 should keep avatars visible even when we cant save the resized one |
No it is a file... so there are no create permissions right? |
The entry with empty name and path (parent -1) of my storage has permissions of 0. Is it how it should be? Maybe that should be 31 as well? |
I did a rescan of my user files |
@atnexxt thanks! that worked 👍 |
@atnexxt GREAT!
solved the problem. |
Thx works for me too. For users on all-inkl shared webspace do the following...
Now your avatar images should be back. |
A awesome that there is a fix. |
A repair step would make the most sense |
Ok I'll fix that somewhere next week |
PR in #24898 |
Fixes #22978 On some older installations the permissions for the userRoot and the avatars are not correct. This breaks since we now use the Node API in the avatar code. This repair job makes sure that the permissions are set correctly. * Unit tests added
Fixes #22978 On some older installations the permissions for the userRoot and the avatars are not correct. This breaks since we now use the Node API in the avatar code. This repair job makes sure that the permissions are set correctly. * Unit tests added
Fixes #22978 On some older installations the permissions for the userRoot and the avatars are not correct. This breaks since we now use the Node API in the avatar code. This repair job makes sure that the permissions are set correctly. * Unit tests added
Fixes #22978 On some older installations the permissions for the userRoot and the avatars are not correct. This breaks since we now use the Node API in the avatar code. This repair job makes sure that the permissions are set correctly. * Unit tests added
Fixes #22978 On some older installations the permissions for the userRoot and the avatars are not correct. This breaks since we now use the Node API in the avatar code. This repair job makes sure that the permissions are set correctly. * Unit tests added
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
Avatar is visible as it was before
Actual behaviour
No Avatar in the header (but also no display name), placeholders in other places.
Copying the avatar.jpg file to avatar.32.jpg brings it back.
Server configuration
Operating system: Ubuntu 14.04
Web server: Apache 2
Database: MySQL
PHP version: 5.5.9
ownCloud version: 9.0.0
Updated from an older ownCloud or fresh install: Update from 8.2.3
Where did you install ownCloud from: Tarball
Signing status (ownCloud 9.0 and above): awesome
The content of config/config.php:
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: FF 44
Operating system: Antergos Linux
Logs
ownCloud log (data/owncloud.log)
Nothing wrt Avatars
The text was updated successfully, but these errors were encountered: