Comments (17)
Ok, I got it working!!
Basically you can do this now:
wget https://raw.githubusercontent.com/guysoft/ownphotos-frontend/dev/docker-compose.yml
sudo docker-compose up -d
Thats it, you have ownphotos ruining at http://localhost:3000, syncing images from /home/use/Pictures
(These commands already work now and you can test this)
Running example at: http://ownphotos.gnethomelinux.com/ user: admin/admin
Please please please accept my PRs so this can be official. Otherwise I suggest we fork am maintain it.
(Also if there is a problem with my PRs please state clearly, so I know what to fix).
from ownphotos.
Hey, ownphotos is no longer maintained. Here is a fork of ownphotos that is maintained: https://github.com/LibrePhotos/librephotos
If you're issue still persists, please open a new issue in the librephotos repository.
from ownphotos.
@guysoft
Hey, thanks. I changed the default branch on the frontend repo to dev. I know the deployment scripts and dockerfiles are not up to date. Did you get everything to work without Docker? I would gladly accept pull requests.
from ownphotos.
Ok, I got it working!!
I can confirm this fixes the issue (on my machine)
from ownphotos.
I didn't add a mapbox api key, I hope thats not a problem for a first test
from ownphotos.
I go my working with the master branch maybe that can help you find out what was wrong. I am still trying to make it work with Nginx as a reverse proxy.
ownphotos.zip
version: '3'
services:
ownphotos:
#image: nhooram/ownphotos:0.1
image: hooram/ownphotos:master
#image: hooram/ownphotos:dev
links:
- ownphotos-db
- ownphotos-redis
volumes:
- ownphotos-data:/data
- ownphotos-metadata:/code/media
environment:
- SECRET_KEY=SECRET_KEY
- [email protected]
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=PASSWORD
- DEBUG=false
- DB_BACKEND=postgresql
- DB_NAME=ownphotos
- DB_USER=ownphotos
- DB_PASS=PASSWORD
- DB_HOST=ownphotos-db
- DB_PORT=5432
- REDIS_HOST=ownphotos-redis
- REDIS_PORT=6379
- MAPBOX_API_KEY=MAPBOX_API_KEY
#- BACKEND_HOST=ownphotos-api.local:8080
- BACKEND_HOST=localhost:8000
ports:
- 8000:80
- 3000:3000
- 5000:5000
ownphotos-db:
image: postgres:alpine
container_name: postgres
restart: always
volumes:
- ownphotos-db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=ownphotos
- POSTGRES_USER=ownphotos
- POSTGRES_PASSWORD=PASSWORD
ownphotos-redis:
image: redis:alpine
container_name: redis
volumes:
- ownphotos-redis:/data
# nginx:
# image: nginx:latest
# restart: always
# links:
# - ownphotos
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# ports:
# - 8080:80
volumes:
ownphotos-data:
ownphotos-metadata:
ownphotos-db:
ownphotos-redis:
from ownphotos.
Strange, I tried both an image from master as well as v0.1, both didn't work. v0.1 had e.response is undefined
as error instead. :(
from ownphotos.
Hey, same issue here, getting e.response is undefined
from ownphotos.
Ok, strange, I am getting different errors from chromium and firefox.
Chromium is on the left and firefox is on the right. Same server, same machine
Chromium:
e.response is undefined
Firefox:
Cannot read property 'status' of undefined
from ownphotos.
Basically the issue is that on the front end code, the base URL to the backend server is written "changeme/api", and the configuration doesn't handle this properly. If you can run the front end separately and modify that bit (should be in apiclient.js), it should work.
from ownphotos.
@hooram
Hey, in my setting it looks like its pulling from the right location, but I am getting 301 moved permenantly:
How would I separate the backend from the frontend? I see there is a docker-compose.yml in the repo, but it has build: .
, and i see you didn't publish it:
services:
frontend:
image: ownphotos-frontend
ports:
- 3000
build: .
from ownphotos.
@guysoft
It should be in the frontend repo, dev branch.
from ownphotos.
Ok,
so
- I am using jwilder/nginx-proxy so I do have https on the backed side.
- I warmly suggest you switch the default banch of ownphotos-frontend to
dev
if you want people to chekout and build that - I suggest you add an automated build to docker container to docker hub. It means evrey commit and fix you do will got right away to docker containers. I wil gladly help set it up for you, since if the container would be guysoft/ownphotos-frontend I think less people would find it.
- When building ownphotos-frontend from dev branch I get:
Step 8/11 : RUN npm install && npm cache clean --force
---> Running in 85a57860f617
npm WARN deprecated [email protected]: This project is no longer maintained.
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated @types/[email protected]: This is a stub types definition for Redux (https://github.com/reactjs/redux). Redux provides its own type de
finitions, so you don't need @types/redux installed!
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9
ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
> [email protected] install /usr/src/app/node_modules/semantic-ui
> gulp install
...
npm WARN [email protected] requires a peer of redux@^2.0.0 || ^3.0.0 but none was installed.
npm WARN [email protected] requires a peer of react-sortable-tree@^1.4.0 but none was installed.
npm WARN [email protected] requires a peer of react@~0.14.8 || ^15.0.0 but none was installed.
npm WARN [email protected] requires a peer of react-dom@~0.14.8 || ^15.0.0 but none was installed.
npm WARN [email protected] requires a peer of popper.js@^1.14.3 but none was installed.
npm WARN [email protected] requires a peer of eslint-plugin-jsx-a11y@^5.1.1 but none was installed.
npm ERR! Linux 4.16.0-2-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v6.14.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `gulp install`
npm ERR! Exit status 130
npm ERR!
npm ERR! Failed at the [email protected] install script 'gulp install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the semantic-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs semantic-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls semantic-ui
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/src/app/npm-debug.log
from ownphotos.
I didn't try to deploy without docker, because it requires a bunch of configuration for the postgresql, and reverse proxy to get https. Docker seems like the logical way to set it all up. And once I get it running it would be super easy to deploy.
2.
I would gladly PR, once I understand and fix what is wrong.
For a start, you can merge this:
hooram/ownphotos-frontend#30
3.
There seems to be an issue with npm dependencies. . I don't know what is needed and what is not , so you will have to tell me which libraries can go to resolve, seems like removing semantic-ui fixes it:
+-- UNMET PEER DEPENDENCY popper.js@^1.14.3
+-- UNMET PEER DEPENDENCY [email protected]
+-- UNMET PEER DEPENDENCY [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| +-- UNMET PEER DEPENDENCY [email protected]
| `-- [email protected]
| +-- [email protected]
| `-- [email protected]
+-- UNMET PEER DEPENDENCY [email protected]
+-- UNMET PEER DEPENDENCY [email protected]
My current deployment:
At the moment I have an instance running on a docker container here:
https://pics.gnethomelinux.com:3000
which gives
I get "Invalid Host header"
And I am not sure where its coming from.
It looks like the api is working, but the frontend is not.
The api is here:
https://pics.gnethomelinux.com/
from ownphotos.
Yay, closing
from ownphotos.
Btw, thanks for solving this, worked for me as well
from ownphotos.
×
←→1 of 2 errors on the page
TypeError: Cannot read property '0' of undefined
LoginPage.render
http://localhost:3000/static/js/bundle.js:281455:52
281452 | },
281453 | __self: this
281454 | },281455 | this.props.errors.data.non_field_errors[0]
| ^ 281456 | ),
281457 | this.props.errors && this.props.errors.non_field_errors && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
281458 | WEBPACK_IMPORTED_MODULE_2_semantic_ui_react["u" /* Message */],
View source
▶ 26 stack frames were collapsed.
(anonymous function)
src/app/src/actions/authActions.js:70
67 | dispatch(push(from))
68 | })
69 | .catch((err) => {
70 | dispatch({type: "LOGIN_REJECTED", payload: err})
71 | })
72 | }
73 | }
View compiled
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.
I am sorry, but i try to find way to login after installing using docker.
i run this
wget https://raw.githubusercontent.com/guysoft/ownphotos-frontend/dev/docker-compose.yml
sudo docker-compose up -d
ssh -L 3000:localhost:3000 [email protected]
and on browser i open localhost:3000 i asked to put password and username but it show this up..
Please help. Thank you
from ownphotos.
Related Issues (20)
- Delete Photos HOT 1
- Complex passwords cannot be logged in HOT 1
- "Can't find a suitable configuration file..." HOT 4
- Can't save any (admin) settings HOT 10
- Error connecting to websocket on login page HOT 3
- Scan Folder crash HOT 3
- Project abandoned HOT 64
- ignore please. wrong repo
- Timestamps are (presumably) based on file names and not metadata, so photos are out of order HOT 1
- docker-free installation process? HOT 8
- Nextcloud scan scans entire server / scan stuck at 75 photos HOT 4
- ... HOT 1
- nextcloud scan is running forever HOT 2
- Problem getting frontend and backend to run on OMV HOT 2
- Choose a directory from below not working in /admin HOT 2
- Normal installation without docker HOT 1
- demo.ownphotos.io domain is expired HOT 1
- Archive repository in light of LibrePhotos? HOT 1
- Demo instance is offline HOT 2
- Upload and download feature HOT 1
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 ownphotos.