-
Notifications
You must be signed in to change notification settings - Fork 190
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
Language switch not working #32
Comments
Can you give me some more details about it? |
I tried it again today on a clean VM with the same result.
Here is my docker-compose.yml
--- cut here ---
version: '3'
services:
pigallery2:
container_name: pigallery2
ports:
- 80:80
environment:
- NODE_ENV=develop
volumes:
- /home/andrew/pigallery2/config/config.json:/pigallery2-release/config.json
- /vantec/data/media/photos:/pigallery2-release/demo/images
- /home/andrew/pigallery2/temp:/pigallery2-release/demo/TEMP
image: bpatrik/pigallery2:nightly-stretch
--- cut here –
Here are the logs:
--- cut here ---
***@***.*** start /pigallery2-release
node ./backend/index.js
1/2/2019, 5:35:29 PM[[34mDEBUG[39m] [server] Running in DEBUG mode, set env variable NODE_ENV=production to disable
1/2/2019, 5:35:29 PM[[32mINFO[39m] [server] running diagnostics...
1/2/2019, 5:35:29 PM[[32mINFO[39m] Updating database scheme
1/2/2019, 5:35:29 PM[[32mINFO[39m] [server] using config:
1/2/2019, 5:35:29 PM[[32mINFO[39m] [server] {
"Client": {
"applicationTitle": "PiGallery 2",
"Thumbnail": {
"concurrentThumbnailGenerations": 1,
"thumbnailSizes": [
200,
400,
600
],
"iconSize": 45
},
"Search": {
"enabled": true,
"instantSearchEnabled": true,
"autocompleteEnabled": true,
"InstantSearchTimeout": 3000,
"autocompleteCacheTimeout": 3600000,
"searchCacheTimeout": 3600000,
"instantSearchCacheTimeout": 3600000
},
"Sharing": {
"enabled": true,
"passwordProtected": true
},
"Map": {
"enabled": true,
"mapProvider": 0,
"mapboxAccessToken": "",
"tileUrl": ""
},
"RandomPhoto": {
"enabled": true
},
"Video": {
"enabled": true
},
"MetaFile": {
"enabled": true
},
"Other": {
"captionFirstNaming": false,
"enableCache": true,
"enableOnScrollRendering": true,
"enableOnScrollThumbnailPrioritising": true,
"defaultPhotoSortingMethod": 3,
"NavBar": {
"showItemCount": true
}
},
"authenticationRequired": true,
"unAuthenticatedUserRole": 4,
"publicUrl": "",
"urlBase": "",
"languages": []
},
"Server": {
"port": 80,
"host": "0.0.0.0",
"imagesFolder": "demo/images",
"thumbnail": {
"folder": "demo/TEMP",
"processingLibrary": 3,
"qualityPriority": true
},
"sessionTimeout": 604800000,
"photoMetadataSize": 524288,
"database": {
"type": 3,
"mysql": {
"host": "",
"username": "",
"password": "",
"database": ""
},
"sqlite": {
"storage": "sqlite.db"
}
},
"sharing": {
"updateTimeout": 300000
},
"threading": {
"enable": true,
"thumbnailThreads": 0
},
"indexing": {
"folderPreviewSize": 2,
"cachedFolderTimeout": 3600000,
"reIndexingSensitivity": 2
}
}
}
1/2/2019, 5:35:29 PM[[35mSILLY[39m] Creating thread pool with 1 workers
1/2/2019, 5:35:29 PM[[34mDEBUG[39m] Worker 46 is online, worker count: 1
1/2/2019, 5:35:29 PM[[34mDEBUG[39m] SQL DB inited
1/2/2019, 5:35:29 PM[[34mDEBUG[39m] Worker is waiting for tasks
1/2/2019, 5:35:29 PM[[32mINFO[39m] [server] Listening on port 80
1/2/2019, 5:37:37 PM[[34mDEBUG[39m] GET / 304 14ms
1/2/2019, 5:37:37 PM[[34mDEBUG[39m] GET /runtime.ec2944dd8b20ec099bf3.js 200 6ms
1/2/2019, 5:37:37 PM[[34mDEBUG[39m] GET /main.6e8acfcedd2d1f5fcc6e.js 304 5ms
1/2/2019, 5:37:37 PM[[34mDEBUG[39m] GET /polyfills.55b2e3ec6ffca12a3c3f.js 200 10ms
1/2/2019, 5:37:37 PM[[34mDEBUG[39m] GET /styles.a42cde6c1ac355926947.css 200 21ms
1/2/2019, 5:37:37 PM[[34mDEBUG[39m] GET /assets/icon.png 200 1ms
1/2/2019, 5:37:38 PM[[36mVERBOSE[39m] GET / 200 3ms
1/2/2019, 5:37:43 PM[[34mDEBUG[39m] GET /hu 302 4ms
1/2/2019, 5:37:43 PM[[33mWARN[39m] Handled error:
{"code":9,"message":"Unknown server side error","details":{"code":7,"message":"ENOENT: no such file or directory, open '/pigallery2-release/dist/en/index.html'"}}
1/2/2019, 5:37:43 PM[[34mDEBUG[39m] GET /?ln=hu 200 2ms
1/2/2019, 5:39:20 PM[[36mVERBOSE[39m] GET / 200 2ms
1/2/2019, 5:39:20 PM[[36mVERBOSE[39m] GET / 200 1ms
1/2/2019, 5:39:20 PM[[34mDEBUG[39m] GET /assets/icon.png 404 1ms
1/2/2019, 5:39:26 PM[[34mDEBUG[39m] POST /api/user/login 200 56ms
1/2/2019, 5:39:26 PM[[36mVERBOSE[39m] GET /api/notifications 200 1ms
1/2/2019, 5:39:26 PM[[35mSILLY[39m] [DiskManager] scanning directory: ./
1/2/2019, 5:39:26 PM[[36mVERBOSE[39m] GET /api/gallery/content/?knownLastModified=1546386620142&knownLastScanned=1546450300326 200 76ms
1/2/2019, 5:39:27 PM[[34mDEBUG[39m] GET /assets/icon.png 404 1ms
1/2/2019, 5:39:27 PM[[34mDEBUG[39m] GET /favicon.ico 404 1ms
--- cut here ---
I get the same error if I run it via the docker command line.
…Andrew
From: Patrik J. Braun <notifications@github.com>
Sent: Wednesday, January 2, 2019 11:01 AM
To: bpatrik/pigallery2 <pigallery2@noreply.github.com>
Cc: Andrew Hunt <andrewtheshiny@hotmail.com>; Author <author@noreply.github.com>
Subject: Re: [bpatrik/pigallery2] Language switch not working (#32)
Can you give me some more details about it?
Which image are you using? I tried to reproduce it with bpatrik/pigallery2:nightly-stretch, but I did not see the error.
Can you try starting it with -e NODE_ENV=develop and checking / sending the docker log? (you can see the docker log with docker logs <container id> if you run it as daemon).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#32 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Amq9oj9mIRWemIDTnzKgiKbEbDnf9gzsks5u_NfTgaJpZM4ZmEy9>.
|
I found&fixed a bug with the language switch. |
Awesome. Works like a charm. Thanks.
…Andrew
From: Patrik J. Braun <notifications@github.com>
Sent: Wednesday, January 2, 2019 4:24 PM
To: bpatrik/pigallery2 <pigallery2@noreply.github.com>
Cc: Andrew Hunt <andrewtheshiny@hotmail.com>; Author <author@noreply.github.com>
Subject: Re: [bpatrik/pigallery2] Language switch not working (#32)
I found&fixed a bug with the language switch.
Let me know if it works.
(you probably need to docker rmi the image first)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#32 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Amq9ovRydx6WKwfA4Ocq2wAKL5_y2Tcxks5u_SOFgaJpZM4ZmEy9>.
|
I'm running the docker version and the app is great. However, I tried switching the language and I get this error:
{"error":{"code":9,"message":"Unknown server side error"},"result":null}
Have I configured something wrong?
The text was updated successfully, but these errors were encountered: