Comments (2)
from swiftlatex.
Hi Sorry for the problem you met. It's still a beta version. I am still working on it and doing bugfixes these days. I will let you know once it is done. Cheers Elliott
…
On Wed, 4 Mar 2020, 3:41 am SoulEater45, @.***> wrote: I wanted to try out the new version, especially since minio is integrated and maybe ldap will be next. I am working in a docker environment and fired up a modified version of the provided docker-compose.yml file: version: '3' services: database: image: 'mongo' container_name: 'mongodb' network_mode: 'bridge' expose: - '27017-27019' minio: image: 'swiftlatex/storage:v2' container_name: 'storage' network_mode: 'bridge' expose: - '9000' portal: #image: 'swiftlatex/portal:v2' #image: 'swiftlatex/portalv2:latest' build: context: . container_name: 'portal' network_mode: 'bridge' environment: - MONGO_URL=mongodb://mongodb:27017/swiftlatex - S3_ENDPOINT=http://storage:9000 - S3_KEY=limiteduser - S3_SECRET=limiteduser expose: - '3000' links: - 'database:mongodb' - 'minio:storage' Since an nginx-proxy is handling the requests, I needed all containers in the bridge. The first issue was selecting the right image for the portal instance, since there are two different versions on docker hub: portal:v2 https://hub.docker.com/r/swiftlatex/portal and portalv2:latest https://hub.docker.com/r/swiftlatex/portalv2. Running portal:v2 gives the following error: Traceback (most recent call last): File "./wsgi.py", line 2, in import app File "/usr/src/app/app.py", line 43, in sess = Session(app) File "/usr/local/lib/python3.8/site-packages/flask_session/init.py", line 54, in init self.init_app(app) File "/usr/local/lib/python3.8/site-packages/flask_session/init.py", line 61, in init_app app.session_interface = self._get_interface(app) File "/usr/local/lib/python3.8/site-packages/flask_session/init.py", line 90, in _get_interface session_interface = FileSystemSessionInterface( File "/usr/local/lib/python3.8/site-packages/flask_session/sessions.py", line 313, in init from werkzeug.contrib.cache import FileSystemCache ModuleNotFoundError: No module named 'werkzeug.contrib Running portalv2:latest gives the following problem by handling the GET request: [2020-03-03 14:35:59,705] ERROR in app: Request finalizing failed with an error while handling an error Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2445, in wsgi_app ctx.push() File "/usr/local/lib/python3.8/site-packages/flask/ctx.py", line 390, in push self.session = session_interface.open_session(self.app, self.request) File "/usr/local/lib/python3.8/site-packages/flask_session/sessions.py", line 410, in open_session document = self.store.find_one({'id': store_id}) File "/usr/local/lib/python3.8/site-packages/pymongo/collection.py", line 1273, in find_one for result in cursor.limit(-1): File "/usr/local/lib/python3.8/site-packages/pymongo/cursor.py", line 1156, in next if len(self.__data) or self._refresh(): File "/usr/local/lib/python3.8/site-packages/pymongo/cursor.py", line 1050, in _refresh self.__session = self.__collection.database.client._ensure_session() File "/usr/local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1810, in _ensure_session return self.__start_session(True, causal_consistency=False) File "/usr/local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1763, in __start_session server_session = self._get_server_session() File "/usr/local/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1796, in _get_server_session return self._topology.get_server_session() File "/usr/local/lib/python3.8/site-packages/pymongo/topology.py", line 482, in get_server_session self._select_servers_loop( File "/usr/local/lib/python3.8/site-packages/pymongo/topology.py", line 208, in _select_servers_loop raise ServerSelectionTimeoutError( pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1969, in finalize_request response = self.process_response(response) File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2268, in process_response self.session_interface.save_session(self, ctx.session, response) File "/usr/local/lib/python3.8/site-packages/flask_session/sessions.py", line 427, in save_session store_id = self.key_prefix + session.sid AttributeError: 'NoneType' object has no attribute 'sid' Where it seems like the environment variable MONGO_URL is not used correctly. The only option how I got it to run is to build my own image like this using a Dockerfile: FROM python:3 WORKDIR /usr/src/app RUN cd /usr/src/app RUN apt update && \ apt install git RUN git clone https://github.com/SwiftLaTeX/SwiftLaTeX.git /usr/src/app RUN pip install --no-cache-dir -r requirements.txt CMD [ "python", "./wsgi.py" ] It is quick and dirty and I can finally reach my container. The problem is, I don't understand how I can now use the MinIO integration. Is it only available for the sandbox? And we are still not able to create users, but only can connect to the provided services? Also, trying to connect to the services only gives a bad request message on all services... — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#30?email_source=notifications&email_token=ABLPC3GQOE6LWEOT5P4NVLDRFUJIRA5CNFSM4LAL53V2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ISBO67Q>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLPC3FBX76MGMHWTJUTDNDRFUJIRANCNFSM4LAL53VQ .
I also meet this bug when I use docker, cloud you inform me when you have fixed it.
from swiftlatex.
Related Issues (20)
- [Enhancement] Change editor font size
- Demo page is not loading HOT 1
- Docker image and documentation HOT 11
- Cannot build WASM core HOT 13
- Bug: setTexliveEndpoint HOT 3
- How to run on localhost HOT 4
- Can this library be used in node.js? HOT 21
- CORS access to mirror? HOT 3
- How to make the engine use the local texlive file for typesetting? HOT 4
- ReferenceError: cwrap is not defined swiftlatexpdftex.js HOT 2
- Is the demo working? HOT 4
- warning: sorry, PostScript images are not supported by Tectonic
- Output svg HOT 2
- Future? HOT 5
- How to properly process figures (e.g., pdf files)? HOT 2
- Question: Why PdfTeX and XeTeX instead of LuaTeX? HOT 2
- How can I use the wysiwyg editor?
- Spaces in folder name
- _maloc is not defined HOT 2
- Issue with PdfTeXEngine.js Integration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftlatex.