Konstanius / MineCICD

Git for Minecraft Servers! Track changes, speed up development, rollback changes, and much more!
GNU General Public License v3.0
13 stars 1 forks source link

Github repository is existing, and the tokens are valid. #1

Closed lokiixczz closed 4 months ago

lokiixczz commented 1 year ago

Hi! I always get an issue. It seems like MineCICD cant locate my repository it always Error checking out branch: repository not found

Screenshot Config Screenshot

Please respond thank you!

Konstanius commented 1 year ago

The command output you're getting means that the local repository has not yet been initialized. This does not matter, which is noticeable since the line directly after that in the command output says "You might still be able to continue using the plugin", since the /cicd clone command will initialize it, similar to using git in a normal environment.

lokiixczz commented 1 year ago

Hi there thanks for your reply

So after that I successfully connected to my repository. But the thing is whenever i add /git add files on my repository it does not appear on my repo. It just add the commit message on my repository but no files. I had check personal token permission and i did set it up correctly.

On Wed, Jul 5, 2023 at 5:25 PM Konstanius @.***> wrote:

The command output you're getting means that the local repository has not yet been initialized. This does not matter, which is noticeable since the line directly after that in the command output says "You might still be able to continue using the plugin", since the /cicd clone command will initialize it, similar to using git in a normal environment.

— Reply to this email directly, view it on GitHub https://github.com/Konstanius/MineCICD/issues/1#issuecomment-1621374283, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAOX24G7IYSLRQJMCVJOBRLXOUXJVANCNFSM6AAAAAAZ47CJDU . You are receiving this because you authored the thread.Message ID: @.***>

Konstanius commented 1 year ago

Can you please check which version of the plugin are running and upgrade to 1.3 if necessary?

lokiixczz commented 1 year ago

Hi im sorry for the late reply. So I was able to update it and it seems like when i git add my files it doesnt really upload the files to the repository.

Thanks.

On Fri, Jul 7, 2023 at 12:26 AM Konstanius @.***> wrote:

Can you please check which version of the plugin are running and upgrade to 1.3 if necessary?

— Reply to this email directly, view it on GitHub https://github.com/Konstanius/MineCICD/issues/1#issuecomment-1623968112, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAOX24FSWP2OA4CAL5APKZLXO3RJZANCNFSM6AAAAAAZ47CJDU . You are receiving this because you authored the thread.Message ID: @.***>

Lorias-Jak commented 1 year ago

Hey, we have the same bug. It says it uploaded the files and nothing on the repo changes. In other direction, if i pull files from repo, it doesnt applies on the server. I cant find it in the repo folder

Konstanius commented 1 year ago

Please both of you download the latest version, and share your /minecicd debug pastes. Also share your server jar, version, and operating system.

Lorias-Jak commented 1 year ago

git-paper 1.19.4-533 java 17 debian 10 debug paste: https://mclo.gs/caRVqbh

im on latest version 1.3-Release

Konstanius commented 1 year ago

I'm sorry i made a mistake with the plugins debug command, please invalidate your github token and refresh it.

It will be omitted from the next update forward

Lorias-Jak commented 1 year ago

Its okay, its deleted now. Thank you for letting me know

Konstanius commented 1 year ago

Otherwise based on the debug command, can you please check the entire console log for any errors produced by the plugin, and can you do /minecicd reload and check if that produces any errors.

Lorias-Jak commented 1 year ago
image

on startup

image

on reload

image

on pull (didnt saw the issue until now)

no issue on push, but it doesnt come up on github

image

when i use clone command, but all files show up in repo folder

Lorias-Jak commented 1 year ago

unfortunately I have to go to sleep now too, I'm going on vacation for a week tomorrow. Can unfortunately only answer again afterwards. I will look in here again when I'm back, for that time i can unfortunally not test things

Konstanius commented 1 year ago

First, but not relevant to this discussion, issue is, that your 8080 port is already used by something, you can find this out using the netstat command on Linux. You can also just change the port to something that is not in use.

The other issue appears to be something deeper, I will look into that.

Lorias-Jak commented 1 year ago

Im back alive!

Ahhh i know whats on port 8080, thats a good call, thank you. I'll change it in minecicd soon

found something on the other issue?

Konstanius commented 1 year ago

I am still investigating, but it seems more and more obscure as I progress.

I think it might as well have to do with file permissions per your host. Could you give me some insight on:

Lorias-Jak commented 1 year ago

I host at Hetzner, I'm using debian and even with the rekursive set 777 perm it does not work and the errors appear in the console

Konstanius commented 1 year ago

Since the repo clone command does successfully clone some / most of the files into the local repository, I assume there is limited functionality? So what happens if you try to use the plugin in a normal use case, by just modifying some files in GitHub and then pulling the changes.

Lorias-Jak commented 1 year ago

It wont pull the changes, there is still an error and nothing changes. I need to clone the repo again and then the changes are there

JamesBacon commented 1 year ago

Hey, sorry to post on such an old issue, but I'm also having the same problem. What would be sufficient information to post to help remedy it? Errors are:

[01:42:35 INFO]: [MineCICD] Error checking out branch: repository not found: /home/minecraft/minecraft/plugins/MineCICD/repo [MineCICD] You might still be able to continue using the plugin.

minecicd push InitialCommit [01:44:42 INFO]: [MineCICD] Error pushing repo: Repo folder does not exist.

Konstanius commented 1 year ago

Hey, sorry to post on such an old issue, but I'm also having the same problem. What would be sufficient information to post to help remedy it? Errors are:

[01:42:35 INFO]: [MineCICD] Error checking out branch: repository not found: /home/minecraft/minecraft/plugins/MineCICD/repo [MineCICD] You might still be able to continue using the plugin.

minecicd push InitialCommit [01:44:42 INFO]: [MineCICD] Error pushing repo: Repo folder does not exist.

Could you please try to initially do /minecicd clone and then add the files you want to add using /minecicd add <files> It appears that this is a separate issue of your side and might be due to invalid usage.

I am still tracking the other issue, although progress is slow as I am barely able to spend time on it.

Konstanius commented 4 months ago

As information for those interested into this issue / plugin, the plugin is currently back under active development and is being rewritten in its entirety. All issues will be fixed and marked as closed with the new release, which improves stability, compatibility, performance and enables more features.

Konstanius commented 4 months ago

Fixed alongside MineCICD 2.0 Release See https://github.com/Konstanius/MineCICD/commit/92dbd0e6daf093352b5790524a930f5ce87fbc22 for changes