flipswitchingmonkey / gitea-spk Goto Github PK
View Code? Open in Web Editor NEWThis project forked from alexandregz/gogs-spk
spk (Synology package) to install gitea into Synology NAS
License: MIT License
This project forked from alexandregz/gogs-spk
spk (Synology package) to install gitea into Synology NAS
License: MIT License
Hey and thanks for the great work with the synology package.
I'm running Gitea 1.6.1 on my Synology Diskstation and I would like to upgrade to the latest release of Gitea. How can I do that without risking any data loss on the Diskstation?
Do I just have to stop the running instance of Gitea and install a "new" package manually?
Thanks and best regards,
@aljole
Does it still works with the new DSM 7 beta ?
I have a DS416play (braswell) and I was required to update the arch.desc, while at it I reviewed the amd64 supported architectures and added to it accordingly. Here is a gist https://gist.github.com/JeremyVV/4d8b62d68293e20ae0428cf6b0490ebd
# Maps Gitea platforms to Synology arch values, see
# https://developer.synology.com/developer-guide/appendix/index.html
# https://github.com/SynologyOpenSource/pkgscripts-ng/blob/master/include/platforms
386 x86
amd64 cedarview bromolow denverton apollolake avoton braswell grantley broadwell dockerx64 kvmx64 x64
arm-5 88f6281 88f6282
arm-7 armada370 armada375 armada38x armadaxp alpine/alpine4k comcerto2k monaco
arm64 rtd1296
Installation fails on DS216j (DSM 6.1.4-15217 Update 2) and Gitea 1.3 (ARM v7 Package)
I used your script some days ago and set up gitea 1.2.0rc2.
I had to manually edit the config file because the automatic path for the .ssh user folder was wrong.
It pointed to "/usr/local/gitea/gitea/.ssh" (the package folder) instead of "/usr/local/gitea/.ssh" (the user folder).
sudo vi /usr/local/gitea/gitea/custom/conf/app.ini
insert at the bottom of the [server] section
SSH_ROOT_PATH=/usr/local/gitea/.ssh
And i also had to edit the "/etc/passwd" file to allow login for the gitea user.
sudo vi /etc/passwd
old: gitea: ... :/var/packages/Gitea/target:/sbin/nologin
new: gitea: ... :/var/packages/Gitea/target:/bin/sh
But some security function or whatever seems to overwrite the passwd file from time to time so i need to do this change again. I'm trying to figure out why this happens.
Maybe you can include these two steps in the description.
current version is 1.10.3
pleace update README since people tend to copy-paste things
Hello
I installed a gitea 1.8.0-rc1 on my DS918+, everything seems to run smoothly but I'm unable to use SSH to interact with it.
After following the steps from your wiki the SSH option on repositories is simply gone, I assume because of the DISABLE_SSH = true
line which looks to me like it just disables SSH globally.
If I set this to false, the package then fails to start with the following error
[...a/modules/ssh/ssh.go:124 listen()] [E] Failed to start SSH server: listen tcp :909: bind: permission denied
Any idea how to solve this ?
Thank you :)
The project description says "spk (Synology package) to install gogs into Synology NAS".
This should be changed.
Hi,
i succesfully installed gitea on a DS718+
It is working fine but after some time gitea dies and i have to restart it manually from the package manager.
Any ideas how to fix this ?
Perhaos it helps but the URL shown in the package manager is not the URL gitea is running on
THX and best wishes
Niels
I would like to access the files of my gitea installation. But to do so, the password for user "gitea" (created by this package) is required.
Where do I find this password?
The current build script is a bit lacking in that you have to download the matching gitea binary manually. This should be part of the script.
When running on a DiskStation, the necessary binary can be determined automatically. On other platforms you have to provide the desired package arch or Gitea platform for the download via parameters.
With this feature it's possible to setup a local package server that can be used for fully automated updates or update notification.
If you can agree, I will send a PR. I've redone the script in Python as shell scripting is too awkward.
Is there any way this can be used on Windows?
The .sh script seems to be made for *nix systems, not Windows...
Used Computer: Windows 10 machine
User Synology: RS217
Steps to reproduce:
$ git clone https://github.com/flipswitchingmonkey/gitea-spk.git
$ cd gitea-spk
download https://github.com/go-gitea/gitea/releases/download/v1.2.1/gitea-1.2.1-linux-arm-7
$ ./create_spk.sh
Install Git-Server
Enable SSH
Start Git-Server
Go to Manual Installation
Choose: gitea-1.2.1-linux-arm-7.spk
After pressing next, it shows an error message that the paket is not compatible with the DSM-Version.
Any thoughts?
Thank you for putting this together with a great guide! I'm unable to install on my DS414 (amardaxp ARM7). I've packaged up various versions of gitea and tried to manually install. It always looks like all is going well, I get the "Installing" progress prompt for a minute or two, but then I always get the message 'Failed to install "Gitea".'
I have pulled the logs from my DS414 (/var/log/packages/gitea.log and /var/log/synopkg.log) and the only lines shown are:
2019/07/28 22:35:57 install Gitea 1.8.3 Begin preinst
2019/07/28 22:35:57 install Gitea 1.8.3 End preinst ret=[1]
2019/07/28 22:35:57 install Gitea 1.8.3 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2019/07/28 22:35:57 install Gitea 1.8.3 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2019/07/28 22:35:57 install Gitea 1.8.3 failed
Any help would be very much appreciated.
Hi,
got a problem upgrading to a newer wersion. I originally installed gitea-1.11.4-linux-arm64 creating .spk with Your tool and everything is working fine. Now, I downloaded gitea-1.11.5-linux-arm64 from gitea github and created new .spk. I created buckup using ./gitea backup, stopped Gitea packet in packet center and tried manual upgrade. Everytime it says "Failed to upgrade package".
Here some logs:
/var/log/packages/gitea.log
Stopping Gitea ...
2020/05/20 13:34:20 stop Gitea 1.11.4 End start-stop-status stop ret=[0]
2020/05/20 13:35:25 upgrade Gitea 1.11.4 Begin preupgrade
2020/05/20 13:35:25 upgrade Gitea 1.11.4 End preupgrade ret=[1]
2020/05/20 13:35:25 upgrade Gitea 1.11.5 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2020/05/20 13:35:25 upgrade Gitea 1.11.5 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2020/05/20 13:35:42 start Gitea 1.11.4 Begin start-stop-status start
Starting Gitea ...
/var/log/synopkg.log
2020/05/20 13:34:17 stop Gitea: begin to stop version 1.11.4
2020/05/20 13:34:18 stop Gitea 1.11.4 Begin start-stop-status stop
2020/05/20 13:34:20 stop Gitea 1.11.4 End start-stop-status stop ret=[0]
2020/05/20 13:34:20 stop Gitea 1.11.4 Begin unload apparmor
2020/05/20 13:34:20 stop Gitea 1.11.4 End unload apparmor ret=[0]
2020/05/20 13:34:20 stop Gitea: stop version 1.11.4 successfully, result 0
2020/05/20 13:35:25 upgrade Gitea 1.11.4 Begin preupgrade
2020/05/20 13:35:25 upgrade Gitea 1.11.4 End preupgrade ret=[1]
2020/05/20 13:35:25 upgrade Gitea from 1.11.4 to 1.11.5 failed
2020/05/20 13:35:25 upgrade Gitea 1.11.5 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2020/05/20 13:35:25 upgrade Gitea 1.11.5 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2020/05/20 13:35:41 start Gitea: begin to start version 1.11.4
2020/05/20 13:35:42 start Gitea 1.11.4 Begin pre-load apparmor
2020/05/20 13:35:42 start Gitea 1.11.4 End pre-load apparmor ret=[0]
2020/05/20 13:35:42 start Gitea 1.11.4 Begin start-stop-status start
2020/05/20 13:35:42 start Gitea 1.11.4 End start-stop-status start ret=[0]
2020/05/20 13:35:44 start Gitea: start version 1.11.4 successfully, result 0
Any idea what is causing the problem?
Does anyone tried to run this on 216 Play? I tried with the ARMv7 binary but SDM says that it isn't compatible.
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.