timeoff-management / timeoff-management-application

Simple yet powerful absence management software for small and medium size business (community edition)
https://TimeOff.Management
MIT License
921 stars 565 forks source link

Installation on Synology-NAS #429

Open Ethratian opened 4 years ago

Ethratian commented 4 years ago

Hello,

I tried to install Timeoff-Managment on my Synology NAS (Node is installed, for SQLite there is no package available for Synology) via PuTTy and received the following errors:

NAS:/volume1/web# git clone https://github.com/timeoff-management/app lication.git timeoff-management Cloning into 'timeoff-management'... remote: Enumerating objects: 7744, done. remote: Total 7744 (delta 0), reused 0 (delta 0), pack-reused 7744 Receiving objects: 100% (7744/7744), 2.32 MiB | 3.65 MiB/s, done. Resolving deltas: 100% (5378/5378), done. NAS:/volume1/web# cd timeoff-management NAS:/volume1/web/timeoff-management# npm install npm ERR! code Z_DATA_ERROR npm ERR! errno -3 npm ERR! zlib: invalid distance too far back

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-03-08T12_25_12_772Z-debug.log NAS:/volume1/web/timeoff-management# npm start

Any suggestions?

BeckeBauer commented 4 years ago

I was not able to "regularily" install the app on my Synology (lots of error messages). I use Docker and with a modified Dockerfile, its up and running now. If it is an option for you, I can send you my dockerfile

Ethratian commented 4 years ago

@BeckeBauer that would be really nice.

Could you send it to valedictorian@sol.at?

Thanks!

saschafoerster commented 4 years ago

@BeckeBauer Would you maybe publish it as well? I am searching for a solution as well.

BeckeBauer commented 4 years ago

The dockerfile working for me looks like:

FROM node:12

EXPOSE 3000

RUN adduser --system app --home /app
USER app
WORKDIR /app

# clones timeoff-management into the folder timeoff - relevant if you mount your config folder
RUN git clone https://github.com/timeoff-management/application.git timeoff
WORKDIR /app/timeoff

RUN npm install

# MySQL and MariaDB driver - if do not want to use sqlite
RUN npm install --save mysql

CMD npm start
DannyL404 commented 3 years ago

The dockerfile working for me looks like:

FROM node:12

EXPOSE 3000

RUN adduser --system app --home /app
USER app
WORKDIR /app

# clones timeoff-management into the folder timeoff - relevant if you mount your config folder
RUN git clone https://github.com/timeoff-management/application.git timeoff
WORKDIR /app/timeoff

RUN npm install

# MySQL and MariaDB driver - if do not want to use sqlite
RUN npm install --save mysql

CMD npm start

Does this work on Windows 10?

BeckeBauer commented 3 years ago

Haven't tried it on windows so I can't tell... sorry

DannyL404 commented 3 years ago

ok, do you have any suggestions on how to get it working for me, I can't get the program to send emails regardless of what I try. I can host it on any operating system I can install on a pc, or Raspberry Pi. I am a beginner when it comes to this kind of stuff and would appreciate any help that I can get.

Thank you.

BeckeBauer commented 3 years ago

For me, emails worked after I modified the app.json

{
  "allow_create_new_accounts" : false,
  "send_emails"              : true,
  "application_sender_email" : "noreply@your.domain",
  "email_transporter" : {
    "host" : "mail.your.domain",
    "port" : 587,
    "auth" : {
      "user" : "your-email-username",
      "pass" : "your-email-password"
    }
  },
  "ga_analytics_on" : false,
  "crypto_secret" : "39letterssymbolsnumbers",
  "application_domain" : "https://timeoff.your.domain",
  "promotion_website_domain" : "https://timeoff.your.domain"
}

Assume you tried it?

DannyL404 commented 3 years ago

Yes, which email provider did you use, I've tried Gmail and Hotmail, but office 365 would be the ideal. I want to try getting it working on a webserver as it running through localhost might be the issue. However, that is proving to be a pain, I am happy to install a dedicated thing to an old laptop or raspberry Pi to host it on. What do you suggest I try and if possible what to google to get me looking in the right direction. Thank you so much for your help.

BeckeBauer commented 3 years ago

I do not use an email provider, but I would have assumed that you just need to input the correct credentials... have you checked the logs?

DannyL404 commented 3 years ago

Ahhh okay thank you, any suggestions on a web server to use? Again, thank you so much for your help :)

zecbmo commented 3 years ago

https://hub.docker.com/r/leen15/timeoff-management/

We used this Docker and did a lot for us

DannyL404 commented 3 years ago

https://hub.docker.com/r/leen15/timeoff-management/

We used this Docker and did a lot for us

It won't download on my windows 10 pc, what OS did you use? All I am trying to do is host it across our network...

zecbmo commented 3 years ago

https://hub.docker.com/r/leen15/timeoff-management/ We used this Docker and did a lot for us

It won't download on my windows 10 pc, what OS did you use? All I am trying to do is host it across our network...

Set it up directly using Docker on DSM

DannyL404 commented 3 years ago

Ok, I'll check it out.

Thank you -- Sent from my iPhone

BeckeBauer commented 3 years ago

https://hub.docker.com/r/leen15/timeoff-management/

We used this Docker and did a lot for us

Does it let you connect with an external DB (I am using MariaDB and would like to keep the data)?