Unable to connect with Netlify server
- This topic has 13 replies, 3 voices, and was last updated 2 years, 2 months ago by .
March 1, 2021 at 1:38 pm #5262xinaes
I have previously set up Publii with Netlify (as well as S3) without problems, but for some reason now I’m trying to connect a new site to a new Netlify account and I keep getting “Error! Application was unable to connect with your server.”. At some point it was timing out rather than giving this particular error.
As it happens, I was also trying to associate it with a GitLab repository earlier and it kept saying that the repository didn’t exist (whether it was public or not).
It seems like this new site that I’ve made just doesn’t want to connect to any servers. I’ve gone back and tested connection with existing sites and all seems fine.
I’m running Publii 0.37.3 (updated from 0.37.1 which was previously installed, didn’t seem to make much difference), Mac OS 10.15.7.
Any clues greatly appreciated.
PeterMarch 1, 2021 at 1:50 pm #5263xinaes
Small update: I thought I’d try uploading the site in case the ‘test connection’ button was having trouble but the actual connection was somehow ok. That lead to a couple of prompts from Mac OS asking whether I should allow Publii access to keychain items for Netlify, but allowing that doesn’t seem to’ve changed much – the website synchronization will prepare all the files but predictably fail and suggest I check server settings.
I also tried changing to a different theme just in case that was somehow relevant.March 1, 2021 at 3:31 pm #5264xinaes
Problem persists in Windows 10 (wasn’t expecting different behaviour).March 4, 2021 at 8:06 pm #5290Tomasz Dziuda
To be honest – I have no idea what can cause such issues. Do you have any messages under Tools -> Log viewer in the deployment-* logs?
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!March 4, 2021 at 8:54 pm #5293xinaes
The only thing I see is in deployment-process.log:
[Mon, 01 Mar 2021 13:49:50 GMT] Netlify ERROR: TypeError: Cannot read property ‘id’ of undefined
I guess that was when I was trying various different permutations of value for the fields, or perhaps pressed the button with an empty field at some point. (edit: from the time-stamps it looks as though it was shortly after I posted the first message on this thread, and that is the only entry I see – I guess you clear the logs moderately often).
Thanks for looking into it. It does seem a bit of an odd one – can’t think of anything else particularly salient, will let you know if I do.March 4, 2021 at 9:02 pm #5294xinaes
Ooops, thought I’d just made a second edit to the above post, I think it’s gone to the state after edit #1 (I’m a bit tired, so excuse any incoherence). It looks as though that log messages originates from when I tried to upload without first pressing ‘test connection’.March 6, 2021 at 12:19 pm #5310Tomasz Dziuda
At this moment I have no idea what can cause the issue in your case – maybe if it is a more common issue more users will report it and then I will be able to fix it
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!March 6, 2021 at 12:19 pm #5311Tomasz Dziuda
BTW – please remember that you can use manual deploy to generate a ZIP package of your website and then you can upload it manually on the Netlify UI 🙂
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!March 10, 2021 at 9:14 am #5319xinaes
Thanks, I’m afraid deploying via ZIP probably won’t quite cut it here as I’m trying to set up a blog for a non-technical user. I think I may end up going with some other SSG & NetlifyCMS – still evaluating various options (probably prefer to use something else for my own more technical uses anyway, figuring out whether NetlifyCMS or something similar will be a good fit for the user in this case).
I have been quite happy with Publii for a couple of other sites, so many thanks for your work on it. I’ve made a very small donation now as thanks FWIW.
If I spend any more time looking into this and make any more progress I’ll let you know. I might experiment with another dummy site from scratch & share again if I reproduce the error (or report if I don’t), then again maybe not.March 11, 2021 at 5:33 pm #5331ratio
I would like to add my experience with this issue. I have a test website I’ve worked on in the last few months. I set it up to sync with a private gitlab repo. when selectig “sync your website”, everything worked fine.
More than two month ago I stopped working on it. In this time a friend has used it to add and sync some posts and everytime it worked. After some time (about a month ago), when trying to sync, it stopped working.
The website was developed on a linux machine and the sync process always worked. The deployment however was done on a windows machine: the gitlab settings were exactly the same, same secret token, and again it worked fine. What is funny is that when it stopped working, it stopped on both machines. Right now I cannot manage to get any new website to pass the “test connection” process with the this gitlab repository. On the other hand, I created a new repository “test1.net” and it works correctly keeping all the settings the same except the repository name.
At this point I don’t know if is something related to gitlab’s settings or what.March 11, 2021 at 5:39 pm #5332Tomasz Dziuda
@xinaes – if you will be able to provide some more details about your issue – let us know
@ratio – yes, there is a Gitlab issue – most probably due changes in their API – the upcoming Publii v.0.38 (I suppose we will release it at Monday) should fix this issue. The problem is connected with merging branch where Publii stores all changes – when you visit your Gitlab repository, most probably you will be able to merge branch with your changes to master manually what can temporary solve your issue.
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!March 11, 2021 at 5:46 pm #5334ratio
Thank you for the reply.
For everyone else, the error message I get when I test the connection is: “Error! Application unable to connect with your server: Selected repository does not exist”.
Publii version: v.0.37.3 (build 13870) beta
I tried to edit my previous comment to add this information but it seems it didn’t work.March 11, 2021 at 5:50 pm #5335Tomasz Dziuda
@ratio – when we will release Publii v.0.38 – please let me know here if the problem is solved. I have fixed many issues in the GitLab sync, but maybe something is left, and then we will release v.0.38.1 with some patches 🙂
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!March 25, 2021 at 11:13 am #5469xinaes
I just got back to this and it is now working. I think I will indeed use Publii for this after all.
I suspect it was user-error on my part. The particular mistake I think I made was generating an OAuth token in Netlify rather than Personal Access Token as clearly explained in the Netlify documentation. I thought I’d tried various permutations of different things – (and indeed that it was very likely to be something trivial I was getting wrong)… in fact I still think it’s possible that I did actually try it, but saw an OAuth token on my account today as an artefact of trying different things after it didn’t work, I remember generating a token and needing to make a safe copy of it (and seeing that the token really wasn’t visible in Netlify at later stages)…
Anyway, never mind. Yet another one to chalk up to reading comprehension failure on my part.
- The topic ‘Unable to connect with Netlify server’ is closed to new replies.