Giter VIP home page Giter VIP logo

Comments (2)

anderson13g avatar anderson13g commented on September 27, 2024

Several more files couldn't not display the thumbnail following a transfer. When i attempted to load the same file as a new version of the file to the ISS wiki, the following errors were displayed:

Upload error
Could not read or write file "mwstore://local-backend/local-public/c/c1/Yury_Seryakov.jpg" due to insufficient permissions or missing directories/containers.

Could not store file "/tmp/phpEVnvzw" at "mwstore://local-backend/local-public/c/c1/Yury_Seryakov.jpg".

When i deleted the page. although it was succuessful, the following erros appeared:

Error deleting file: Yury Seryakov.jpg

Errors were encountered while deleting the file:
Could not read or write file "mwstore://local-backend/local-deleted/l/q/x/lqxrv0doj7bkkyaazew0xvzkionjrwv.jpg" due to insufficient permissions or missing directories/containers.
Could not move file "mwstore://local-backend/local-public/c/c1/Yury_Seryakov.jpg" to "mwstore://local-backend/local-deleted/l/q/x/lqxrv0doj7bkkyaazew0xvzkionjrwv.jpg".
Yury Seryakov.jpg has been deleted.

from mezaext.

anderson13g avatar anderson13g commented on September 27, 2024

Related Commit link Apache cannot write to /opt/data-meza/tmp. For Special:TransferPages, it
is necessary for Apache to write a temp file, which then is picked up by
the MW job queue and executed as user meza-ansible.

[744ffb7aa0ae007a56fca290] [no req] LocalFileLockError from line 2251 of /opt/htdocs/mediawiki/includes/filerepo/file/LocalFile.php: Could not open lock file for "mwstore://local-backend/local-public/e/e4/Alexander_Muzyka.JPG". Make sure your upload directory is configured correctly and your web server has permission to write to that directory. See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory for more information. Backtrace: #0 /opt/htdocs/mediawiki/includes/filerepo/file/LocalFile.php(1346): LocalFile->lock() #1 /opt/htdocs/mediawiki/includes/import/ImportableUploadRevisionImporter.php(104): LocalFile->upload(string, string, string, integer, array, string, User) #2 /opt/htdocs/mediawiki/includes/import/WikiRevision.php(659): ImportableUploadRevisionImporter->import(WikiRevision) #3 [internal function]: WikiRevision->importUpload() #4 /opt/htdocs/mediawiki/includes/libs/rdbms/database/Database.php(3191): call_user_func_array(array, array) #5 /opt/htdocs/mediawiki/maintenance/importDump.php(218): Wikimedia\Rdbms\Database->deadlockLoop(array) #6 /opt/htdocs/mediawiki/includes/import/WikiImporter.php(1049): BackupReader->handleUpload(WikiRevision) #7 /opt/htdocs/mediawiki/includes/import/WikiImporter.php(997): WikiImporter->processUpload(array, array) #8 /opt/htdocs/mediawiki/includes/import/WikiImporter.php(803): WikiImporter->handleUpload(array) #9 /opt/htdocs/mediawiki/includes/import/WikiImporter.php(608): WikiImporter->handlePage() #10 /opt/htdocs/mediawiki/maintenance/importDump.php(345): WikiImporter->doImport() #11 /opt/htdocs/mediawiki/maintenance/importDump.php(287): BackupReader->importFromHandle(resource) #12 /opt/htdocs/mediawiki/maintenance/importDump.php(116): BackupReader->importFromStdin() #13 /opt/htdocs/mediawiki/maintenance/doMaintenance.php(94): BackupReader->execute() #14 /opt/htdocs/mediawiki/maintenance/importDump.php(350): require_once(string) #15 {main} 2019-12-02 22:21:17: wiki_hsg (ID 2229) 1 pages (2.9|2.9/sec all|curr), 1 revs (2.9|2.9/sec all|curr), ETA 2019-12-03 01:24:15 [max 31432] upload: Alexander_Matrosov.jpg PHP Warning: XMLReader::open(): Unable to open source data in /opt/htdocs/mediawiki/includes/libs/mime/XmlTypeCheck.php on line 158

Ok, so to restate the problem so i can write an issue on GitHub:

The ansible-user that executed the transfer pages job did not have permission to write to the uploads folder because it was a member of the group. Occassionally, 1-off file transfers or the first file are run outside of jobs, in which the Apache owner wrote to the directory successfuly b/c it had permission.

Transferring files worked on INT and DEV b/c a recurrsive permissions loops in xyz file gave ansible-user the correct permissions.

The issue was fixed b/c SSHing in. However, the xyz file should be updated to give ansible-user the correct permissions. which file was it again? https://github.com/enterprisemediawiki/meza/tree/master/src/roles

from mezaext.

Related Issues (11)

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.