overleaf / filestore Goto Github PK
View Code? Open in Web Editor NEWAn API for CRUD operations on binary files stored in S3
License: GNU Affero General Public License v3.0
An API for CRUD operations on binary files stored in S3
License: GNU Affero General Public License v3.0
A lot of people upload large images, often photos, which causes slow compiles, if there was a button allowing them to resize from inside the editor it could be popular.
It seems that, currently, if user_files is not writable by the user running sharelatex, it does not complain when one tries to upload a file.
Silly users like me get all confused when the upload is successful, but the files aren't saved, so the system won't manage a recompile from that point on.
See: /sharelatex#99
(By the way, thanks so much to all devs for the SUPERB work on this tool.)
child of overleaf/sharelatex#1062
Incorrectly categorised
Hi,
When I run grunt, I get this message
[2014-02-21T16:31:10.813Z] INFO: filestore/22094 on www.mydomain.com: filestore store listening on localhost:3009
Development Enviroment
events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at net.js:1146:9
at asyncCallback (dns.js:68:16)
at Object.onanswer as oncomplete
Warning: -> error 8 /home/janondrus/public_html/sharelatex/document-updater/app.js (4290ms) Use --force to continue.
Aborted due to warnings.
Warning: Use --force to continue.
Aborted due to warnings.
If I force, sharelatex "works" but get errors messages:
[2014-02-21T16:25:56.317Z] ERROR: web-sharelatex/21753 on www.mydomain.com: error getting doc from doc updater (project_id=53077d6e141266f954000007, doc_id=53077e12141266f954000008)
Error: connect ECONNREFUSED
at errnoException (net.js:904:11)
at Object.afterConnect as oncomplete
--
url: http://localhost:3003/project/53077d6e141266f954000007/doc/53077e12141266f954000008?fromVersion=-1
Any idea where the problem comes from? I configured Amazon S3...
Thanks a lot!
Jan
All s3 logic is contained in app/coffee/s3wrapper.coffee
, so it should be possible to swap out this module with another module with the same API that instead reads and writes from disk.
After a "grunt update:all" I am getting the following error output:
root@web01:/opt/sharelatex# grunt run
Running "concurrent:all" (concurrent) task
Running "bunyan" task
Running "bunyan" task
Running "bunyan" task
Running "bunyan" task
Running "execute:web" (execute) task
-> executing /opt/sharelatex/web/app.js
Running "execute:clsi" (execute) task
-> executing /opt/sharelatex/clsi/app.js
Running "execute:document-updater" (execute) task
-> executing /opt/sharelatex/document-updater/app.js
Running "execute:filestore" (execute) task
-> executing /opt/sharelatex/filestore/app.js
[2014-04-01T08:55:54.394Z] INFO: web-sharelatex/50988 on web01: Generating file fingerprints...
[2014-04-01T08:55:54.412Z] INFO: web-sharelatex/50988 on web01: /opt/sharelatex/web/public/js/libs/require.js: 0cb51c1a5e8e978cbe069c07f3b8d16d
[2014-04-01T08:55:54.414Z] INFO: web-sharelatex/50988 on web01: /opt/sharelatex/web/public/js/ide.js: eb4ecf0cb4705df0d6994285b98a50c2
[2014-04-01T08:55:54.415Z] INFO: web-sharelatex/50988 on web01: /opt/sharelatex/web/public/js/main.js: c44279fbfbfc7988c406b0b01763a5d7
[2014-04-01T08:55:54.416Z] INFO: web-sharelatex/50988 on web01: /opt/sharelatex/web/public/js/list.js: 8425488fdb5df811b9b85b3061c621a4
[2014-04-01T08:55:54.420Z] INFO: web-sharelatex/50988 on web01: /opt/sharelatex/web/public/js/libs/pdf.js: 39877fdae4da632887722daaa37fddde
[2014-04-01T08:55:54.431Z] INFO: web-sharelatex/50988 on web01: /opt/sharelatex/web/public/js/libs/pdf.worker.js: 0501916260115fe0db5163b47a316a76
[2014-04-01T08:55:54.445Z] INFO: web-sharelatex/50988 on web01: /opt/sharelatex/web/public/stylesheets/mainStyle.css: 8e98b61abe83515232953f44525869bc
[2014-04-01T08:55:54.448Z] INFO: web-sharelatex/50988 on web01: file does not exist for fingerprints (filePath=/opt/sharelatex/web/public/brand/plans.css)
/opt/sharelatex/filestore/app/js/PersistorManager.js:8
(_base = settings.filestore).backend || (_base.backend = "s3");
^
TypeError: Cannot read property 'backend' of undefined
at Object.<anonymous> (/opt/sharelatex/filestore/app/js/PersistorManager.js:8:31)
at Object.<anonymous> (/opt/sharelatex/filestore/app/js/PersistorManager.js:25:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/opt/sharelatex/filestore/app/js/FileController.js:4:22)
at Object.<anonymous> (/opt/sharelatex/filestore/app/js/FileController.js:120:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/opt/sharelatex/filestore/app.js:16:20)
at Object.<anonymous> (/opt/sharelatex/filestore/app.js:153:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
Warning: -> error 8 /opt/sharelatex/filestore/app.js (1394ms) Use --force to continue.
Aborted due to warnings.
Warning: Use --force to continue.
Aborted due to warnings.
The whole error output is here:
Any ideas what am I doing wrong?
Thanks.
Png compression on an image conversion is not as good as it can be, google says there is a potential 20-25% improvement potentially.
http://optipng.sourceforge.net/ and http://www.advsys.net/ken/util/pngout.htm are 2 recommended options.
Using imagemagic on our servers is quite slow when safe guards are put in place to prevent too much load. Doing a template takes ~60 seconds atm. One option is to use something like http://transloadit.com which costs money. A new TransloaditHandler could be created which adheres to the same interface as app/coffee/FileConverter.coffee allowing an option for people. @jpallen option would be welcome.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.